An open API service indexing awesome lists of open source software.

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

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.