Skip to main content

Collect submodules from a package.

Project description

module-collector - Collect submodules from a package

Overview

module-collector is a tool designed to automatically collect submodules from a specified Python package. This tool is available as both a CLI and API.

Installation

pip install module-collector

Usage

CLI Usage

Usage: module-collecter [OPTIONS] PACKAGE
  import the `PACKAGE`, then collect its submodules and report the results.

Options:
  -v, --verbose  Give more output.
  --help         Show this message and exit.

API Usage

from module_collecter import collect_modules
# replace <ModuleType> with a module object
# (e.g. imported via `import` or `importlib.import_module`)
resp = collect_modules(<ModuleType>)
# returns ModuleCollecterResult.
print(resp.submodules) # dict[str, ModuleType]

Contributing

Contributions are welcome! Please feel free to fork the repository, make changes, and submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have questions, please open an issue on the project's GitHub page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

module_collecter-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

module_collecter-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file module_collecter-0.0.1.tar.gz.

File metadata

  • Download URL: module_collecter-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Windows/10

File hashes

Hashes for module_collecter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 82adcd614bc842446529464b95d8beefeba6729585e10b62b74de27f4f7167fc
MD5 5bd743fbb0a847f903ee0f46d65b928c
BLAKE2b-256 3ac34e5eb4e6ed4f38d490fc9645519a768d0687e440c369c296e7a5a0192bae

See more details on using hashes here.

File details

Details for the file module_collecter-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for module_collecter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddaafdbbac8ffc7fddca0e53d4949b7d7124784a4a3145d834cc9dd8cf5c8d62
MD5 17e51010df683993b03f84b425ab2000
BLAKE2b-256 718f0c972ae38214476089144529fc314628d4c0d7bf34c149aedf38d10a37c2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page