Name | fastode JSON |
Version |
0.1.1
JSON |
| download |
home_page | https://github.com/zbc0315/fastode |
Summary | A toolset to help make python coding faster |
upload_time | 2023-02-08 05:31:46 |
maintainer | |
docs_url | None |
author | zhang |
requires_python | >=3.5 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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'])
```
Raw data
{
"_id": null,
"home_page": "https://github.com/zbc0315/fastode",
"name": "fastode",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": "",
"keywords": "",
"author": "zhang",
"author_email": "zhangbc0315@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/30/37/f7c6e5dc0fa03bfb2879fb3ff2955b79e1407059674bd278a5a5838b651c/fastode-0.1.1.tar.gz",
"platform": null,
"description": "# Fastode\r\n\r\nA toolset to help make python coding faster\r\n\r\n## INSTALL\r\n\r\n```bash\r\npip install fastode\r\n```\r\n\r\n## 1. FastLog\r\n\r\n```python\r\nfrom fastode import FastLog\r\nflog = FastLog(log_fp='log.txt', log_level='INFO')\r\n# These values can be selected for log_level: \r\n# 'CRITICAL','FATAL','ERROR','WARN','WARNING','INFO','DEBUG','NOTSET'\r\nflog.logger.debug(\"this is a debug\")\r\nflog.logger.info(\"this is a info\")\r\nflog.logger.warning(\"this is a warning\")\r\nflog.logger.error(\"this is a error\")\r\nflog.logger.fatal(\"this is a fatal\")\r\nflog.logger.critical(\"this is a critical\")\r\n```\r\n\r\n## 2. FastXML\r\n\r\n```python\r\nfrom fastode import FastXML\r\ndom = FastXML.parse_string(\"<root><A><B>b</B><C>c</C></A><A1 upper='A1'>a1</A1></root>\")\r\ndic = FastXML.xml_to_json(dom)\r\n\r\nFastXML.get_token_tag_pairs_and_attrs(dom, ['A'], ['upper'])\r\n```\r\n",
"bugtrack_url": null,
"license": "",
"summary": "A toolset to help make python coding faster",
"version": "0.1.1",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3037f7c6e5dc0fa03bfb2879fb3ff2955b79e1407059674bd278a5a5838b651c",
"md5": "98b4236ef4178428fe28e4177f943f66",
"sha256": "8b0317459ff45d6e15203f82ea1f2f3ee0cc5b2e1aa33d016ae4342fdc2840bf"
},
"downloads": -1,
"filename": "fastode-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "98b4236ef4178428fe28e4177f943f66",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 4990,
"upload_time": "2023-02-08T05:31:46",
"upload_time_iso_8601": "2023-02-08T05:31:46.503126Z",
"url": "https://files.pythonhosted.org/packages/30/37/f7c6e5dc0fa03bfb2879fb3ff2955b79e1407059674bd278a5a5838b651c/fastode-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-08 05:31:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "zbc0315",
"github_project": "fastode",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "fastode"
}