Autodiscover modules in python
Project description
Auto Discover
Auto Discover modules in python
Installing
Install with pip:
$ pip install autodiscover
Usage
from pathlib import Path
from autodiscover import AutoDiscover
path = Path('path/to/module')
autodiscover = AutoDiscover(path)
autodiscover()
With pattern
from pathlib import Path
from autodiscover import AutoDiscover
path = Path('path/to/module')
autodiscover = AutoDiscover(path, pattern="models.py")
autodiscover()
it will import all models.py from given path
Tests
$ python -m unittest
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
autodiscover-0.0.3.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for autodiscover-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5971355ace8052e9108563afc7b982c8125553abebebd926b1894cda21bf78eb |
|
MD5 | ea1f59c9d2b216bf91034b526fc83739 |
|
BLAKE2b-256 | 48e777f8ff6dc4de44833073563c84bc50df59e5a6557df070d3b9d31b2771e0 |