Skip to main content

Autodiscover modules in python

Project description

Auto Discover

Supported Versions PyPI version Maintainability CircleCI

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)

Uploaded Source

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