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.4.tar.gz
(2.5 kB
view hashes)