Name | fastode JSON |
Version |
0.1.5
JSON |
| download |
home_page | https://github.com/zbc0315/fastode |
Summary | A toolset to help make python coding faster |
upload_time | 2024-04-12 03:14:11 |
maintainer | None |
docs_url | None |
author | zhang |
requires_python | >=3.5 |
license | None |
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": null,
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": null,
"keywords": null,
"author": "zhang",
"author_email": "zhangbc0315@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/8a/ab/8cbe3b746ad27e2ada8001fb203d9e17aecc70c6705ffdabc2ef47dea17c/fastode-0.1.5.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": null,
"summary": "A toolset to help make python coding faster",
"version": "0.1.5",
"project_urls": {
"Homepage": "https://github.com/zbc0315/fastode"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8aab8cbe3b746ad27e2ada8001fb203d9e17aecc70c6705ffdabc2ef47dea17c",
"md5": "602ec6a1f6ec78b9b54faab5681a3325",
"sha256": "2932b751a3610d69585c55e01d6849bdf6f8e74aa2c75b95e420750f27af2f70"
},
"downloads": -1,
"filename": "fastode-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "602ec6a1f6ec78b9b54faab5681a3325",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 5620,
"upload_time": "2024-04-12T03:14:11",
"upload_time_iso_8601": "2024-04-12T03:14:11.584265Z",
"url": "https://files.pythonhosted.org/packages/8a/ab/8cbe3b746ad27e2ada8001fb203d9e17aecc70c6705ffdabc2ef47dea17c/fastode-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-12 03:14:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zbc0315",
"github_project": "fastode",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "fastode"
}