deferred-import-0.1.0
توضیحات
Lazy import and install on demand Python packages.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | deferred-import-0.1.0 |
| نام | deferred-import |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gram |
| ایمیل نویسنده | gram@orsinium.dev |
| آدرس صفحه اصلی | https://github.com/orsinium-labs/deferred-import |
| آدرس اینترنتی | https://pypi.org/project/deferred-import/ |
| مجوز | MIT |
# deferred-import
Lazy import and install on demand Python packages.
1. Package will be loaded only when you use it in the first time. Deferring it makes module loading much faster.
1. If module is missed, the package will be automatically installed. It allows to make some project dependencies optional and install them on demand.
## Installation
```bash
python3 -m pip install --user deferred-import
```
## Usage
```python
from deferred_import import deferred_import
requests = deferred_import('requests')
attr = deferred_import('attr', package='attrs')
requests.get('http://httpbin.org/status/200')
# <Response [200]>
```
نیازمندی
| مقدار | نام |
|---|---|
| - | isort |
| - | mypy |
| - | pytest |
| - | flake8 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl deferred-import-0.1.0:
pip install deferred-import-0.1.0.whl
نصب پکیج tar.gz deferred-import-0.1.0:
pip install deferred-import-0.1.0.tar.gz