autodiscover-0.0.4
توضیحات
Autodiscover modules in python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | autodiscover-0.0.4 |
| نام | autodiscover |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nícolas Zein |
| ایمیل نویسنده | niczein@gmail.com |
| آدرس صفحه اصلی | https://github.com/nicolaszein/autodiscover |
| آدرس اینترنتی | https://pypi.org/project/autodiscover/ |
| مجوز | - |
# Auto Discover
[](https://pypi.python.org/pypi/autodiscover)
[](https://pypi.python.org/pypi/autodiscover)
[](https://codeclimate.com/github/nicolaszein/autodiscover/maintainability)
[](https://circleci.com/gh/nicolaszein/autodiscover/tree/master)
Auto Discover modules in python
Installing
----------
Install with **pip**:
```sh
$ pip install autodiscover
```
Usage
----------
```py
from pathlib import Path
from autodiscover import AutoDiscover
path = Path('path/to/module')
autodiscover = AutoDiscover(path)
autodiscover()
```
#### **With pattern**
```py
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
----------
```sh
$ python -m unittest
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl autodiscover-0.0.4:
pip install autodiscover-0.0.4.whl
نصب پکیج tar.gz autodiscover-0.0.4:
pip install autodiscover-0.0.4.tar.gz