fastode-0.1.2
توضیحات
A toolset to help make python coding faster
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fastode-0.1.2 |
| نام | fastode |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | zhang |
| ایمیل نویسنده | zhangbc0315@outlook.com |
| آدرس صفحه اصلی | https://github.com/zbc0315/fastode |
| آدرس اینترنتی | https://pypi.org/project/fastode/ |
| مجوز | - |
# Fastode
A toolset to help make python coding faster
## INSTALL
```bash
pip install fastode
```
## 1. FastLog
```python
from fastode import FastLog
flog = FastLog(log_fp='log.txt', log_level='INFO')
# These values can be selected for log_level:
# 'CRITICAL','FATAL','ERROR','WARN','WARNING','INFO','DEBUG','NOTSET'
flog.logger.debug("this is a debug")
flog.logger.info("this is a info")
flog.logger.warning("this is a warning")
flog.logger.error("this is a error")
flog.logger.fatal("this is a fatal")
flog.logger.critical("this is a critical")
```
## 2. FastXML
```python
from fastode import FastXML
dom = FastXML.parse_string("<root><A><B>b</B><C>c</C></A><A1 upper='A1'>a1</A1></root>")
dic = FastXML.xml_to_json(dom)
FastXML.get_token_tag_pairs_and_attrs(dom, ['A'], ['upper'])
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl fastode-0.1.2:
pip install fastode-0.1.2.whl
نصب پکیج tar.gz fastode-0.1.2:
pip install fastode-0.1.2.tar.gz