dyndebug-0.2.0
توضیحات
A library to dynamically enable debug through configuration
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dyndebug-0.2.0 |
| نام | dyndebug |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | aurecon |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dyndebug/ |
| مجوز | MIT |
# DynDebug - Dynamic Debug
This library provides the ability to dynamically enable or disable debug through environment configuration.
## Usage
Use the factory method to create a debug instance. You provide a `context` value which is used to enable/disable debug through configuration.
```
debug = Debug('MyContext1')
```
Use the debug instance to produce debug content
```
debug('This is some debug')
```
Enable the debug at run time by setting the DEBUG environment property to the list of contexts for which you want debug enabled.
```
export DEBUG=MyContext1,MyContext2,...
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.5.3,<0.6.0 | loguru |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl dyndebug-0.2.0:
pip install dyndebug-0.2.0.whl
نصب پکیج tar.gz dyndebug-0.2.0:
pip install dyndebug-0.2.0.tar.gz