filelog-1.0.2
توضیحات
json supported easy debugger for python, in files. can also read.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | filelog-1.0.2 |
| نام | filelog |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Emin Bugra Saral |
| ایمیل نویسنده | eminbugrasaral@me.com |
| آدرس صفحه اصلی | https://github.com/ebsaral/filelog |
| آدرس اینترنتی | https://pypi.org/project/filelog/ |
| مجوز | BSD |
# filelog 1.0.2
Hello.
I am an easy debugger which prints into files. I can also read. In case you need me ever.
Simplicity within a certain complexity.
# Install
`pip install filelog`
# Documentation
## param: filename
Name of the file. The extension `.log` will be added.
Default: `debug`
ENV name: `READABLE_GLOBAL_VARIABLE_NAME`
## param: debug
If set True, prints what's going on.
Default: True
## param: json
If set True, it will enable json conversion
Default: True
## param: callback
If set (a function), the function gets executed with the path of created file.
Default: None
## Example
```code=python
from filelog import Writer, Reader
Writer() >> {'allah': 'birdir'}
# creates a file called debug.log and saves into
>>> {"allah": "birdir"}
test = Reader() # reads from debug.log
print test
>>> {'allah': 'birdir'}
# delete callback
import os
Writer(callback: lambda x: os.remove(x)) >> {'test': 'callback'} # deletes the file
```
نحوه نصب
نصب پکیج whl filelog-1.0.2:
pip install filelog-1.0.2.whl
نصب پکیج tar.gz filelog-1.0.2:
pip install filelog-1.0.2.tar.gz