https://github.com/wallneradam/py_pckg_autoloader
Automatically load all modules in a package
https://github.com/wallneradam/py_pckg_autoloader
Last synced: about 1 month ago
JSON representation
Automatically load all modules in a package
- Host: GitHub
- URL: https://github.com/wallneradam/py_pckg_autoloader
- Owner: wallneradam
- License: apache-2.0
- Created: 2019-10-02T13:08:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-18T16:13:16.000Z (over 5 years ago)
- Last Synced: 2025-02-01T05:25:20.866Z (3 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py_pckg_autoloader
Automatically load all modules in a package
## Usage
Content of `__init__.py` of your package:
```python
from py_pckg_autoloader import load_all_modules()load_all_modules()
```After this call, your package will have all the modules loaded in the directory and the
`__all__` property will contain the module names as well.