Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor sub modules #78

Merged
merged 22 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Refactor lookup into module
  • Loading branch information
RNKuhns committed Nov 22, 2022
commit 390715ce375e68fd992567790c8a778cb69fb6fc
31 changes: 31 additions & 0 deletions skbase/lookup/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
# copyright: skbase developers, BSD-3-Clause License (see LICENSE file)
"""Tools to lookup information on code artifacts in a Python package or module.

This module exports the following functions:

package_metadata()
Walk package and return metadata on included classes and functions by module.
Users can optionally filter the information to return.
all_objects()
Lookup BaseObject descendants in a package or module. Users can optionally filter
the information to return.
"""
# all_objects is based on the sktime all_estimator retrieval utility, which
# is based on the sklearn estimator retrieval utility of the same name
# See https://github.com/scikit-learn/scikit-learn/blob/main/COPYING and
# https://github.com/sktime/sktime/blob/main/LICENSE
from typing import List

__all__: List[str] = ["all_objects", "get_package_metadata"]
__author__: List[str] = [
"fkiraly",
"mloning",
"katiebuc",
"miraep8",
"xloem",
"rnkuhns",
]

from skbase.lookup._lookup import all_objects, get_package_metadata
Loading