Name | buildz JSON |
Version |
0.5.3
JSON |
| download |
home_page | https://github.com/buildCodeZ/buildz |
Summary | a json-base file format's read and write code by python, and codes to read and product object from configure file in such format |
upload_time | 2024-04-28 15:58:16 |
maintainer | None |
docs_url | None |
author | Zzz |
requires_python | None |
license | Apache License 2.0 |
keywords |
buildz
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# buildz
```
1,在json格式基础上加了点东西,让配置文件写起来更简单,模块在buildz.xf下
2,基于xf格式写了个ioc控制反转配置文件读取的程序,模块在buildz.ioc下
3,其他工具模块:
buildz.fz: 文件夹查找
buildz.pyz: 简化python __import__调用
buildz.argx: 按格式读命令行参数
buildz.tz: 加些工具,目前只有myerse diff字符串比较算法
buildz.demo: 使用参考,运行"python -m buildz"会用这个模块
代码关系:
buildz.xf, buildz.pyz, buildz.argx, buildz.fz, buildz.tz都是独立的模块
buildz.ioc需要buildz.xf和buildz.pyz
buildz.demo需要其他全部模块
运行python -m buildz查看帮助
PS: 对比了下json.loads(修改了下json的scanner.py,让它在纯python下运行,不然json.loads会更快)和目前的xf.loads(buildz.xf.readz.loads)的速度,xf.loads比json.loads慢7倍,可能是读字符串更频繁,方法调用更多(为了代码更结构化和容易修改),其实有一版更慢(buildz.xf.read.loads,废弃代码,后面看情况删掉),慢100倍,因为只考虑结构化,没考虑列表增减开销
1, a profile file format base on json, make it easy to write profile file, module is in buildz.xf
2, a ioc profile file read function base on xf format, module is in buildz.ioc
3, other tools module:
buildz.fz: file search
buildz.pyz: make it easier to use python's __import__ function
buildz.argx: read command argument in special format
buildz.demo: example codes to use buildz, run "python -m buildz" will use this module
code relationship:
buildz.xf, buildz.pyz, buildz.argx, buildz.fz, buildz.tz is independent
buildz.ioc use buildz.xf and buildz.pyz
buildz.tz: some tools, only contains "myerse diff algorithm" now
buildz.demo use all other modules
run python -m buildz to see help
PS: testing speed on json.loads(has modified scanner.py in json module to make it purely run on Python, which make it run slower) and xf.loads(real func is buildz.xf.readz.loads), xf.loads takes 7 times longer than json.loads, it may cost by more func calls and more string cutting and reading(to make codes more structuring and easier to update)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/buildCodeZ/buildz",
"name": "buildz",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "buildz",
"author": "Zzz",
"author_email": "1309458652@qq.com",
"download_url": "https://files.pythonhosted.org/packages/71/cc/7eb51044d2bb1fdd7c150cd9fe1c9dc657693d99896ca14d3120e8c57983/buildz-0.5.3.tar.gz",
"platform": "any",
"description": "# buildz\r\n```\r\n1\uff0c\u5728json\u683c\u5f0f\u57fa\u7840\u4e0a\u52a0\u4e86\u70b9\u4e1c\u897f\uff0c\u8ba9\u914d\u7f6e\u6587\u4ef6\u5199\u8d77\u6765\u66f4\u7b80\u5355\uff0c\u6a21\u5757\u5728buildz.xf\u4e0b\r\n2\uff0c\u57fa\u4e8exf\u683c\u5f0f\u5199\u4e86\u4e2aioc\u63a7\u5236\u53cd\u8f6c\u914d\u7f6e\u6587\u4ef6\u8bfb\u53d6\u7684\u7a0b\u5e8f\uff0c\u6a21\u5757\u5728buildz.ioc\u4e0b\r\n3\uff0c\u5176\u4ed6\u5de5\u5177\u6a21\u5757\uff1a\r\n buildz.fz: \u6587\u4ef6\u5939\u67e5\u627e\r\n buildz.pyz: \u7b80\u5316python __import__\u8c03\u7528\r\n buildz.argx: \u6309\u683c\u5f0f\u8bfb\u547d\u4ee4\u884c\u53c2\u6570\r\n buildz.tz: \u52a0\u4e9b\u5de5\u5177\uff0c\u76ee\u524d\u53ea\u6709myerse diff\u5b57\u7b26\u4e32\u6bd4\u8f83\u7b97\u6cd5\r\n buildz.demo: \u4f7f\u7528\u53c2\u8003\uff0c\u8fd0\u884c\"python -m buildz\"\u4f1a\u7528\u8fd9\u4e2a\u6a21\u5757\r\n\u4ee3\u7801\u5173\u7cfb:\r\n buildz.xf, buildz.pyz, buildz.argx, buildz.fz, buildz.tz\u90fd\u662f\u72ec\u7acb\u7684\u6a21\u5757\r\n buildz.ioc\u9700\u8981buildz.xf\u548cbuildz.pyz\r\n buildz.demo\u9700\u8981\u5176\u4ed6\u5168\u90e8\u6a21\u5757\r\n\r\n\u8fd0\u884cpython -m buildz\u67e5\u770b\u5e2e\u52a9\r\n\r\nPS: \u5bf9\u6bd4\u4e86\u4e0bjson.loads\uff08\u4fee\u6539\u4e86\u4e0bjson\u7684scanner.py\uff0c\u8ba9\u5b83\u5728\u7eafpython\u4e0b\u8fd0\u884c\uff0c\u4e0d\u7136json.loads\u4f1a\u66f4\u5feb\uff09\u548c\u76ee\u524d\u7684xf.loads(buildz.xf.readz.loads)\u7684\u901f\u5ea6\uff0cxf.loads\u6bd4json.loads\u61627\u500d\uff0c\u53ef\u80fd\u662f\u8bfb\u5b57\u7b26\u4e32\u66f4\u9891\u7e41\uff0c\u65b9\u6cd5\u8c03\u7528\u66f4\u591a\uff08\u4e3a\u4e86\u4ee3\u7801\u66f4\u7ed3\u6784\u5316\u548c\u5bb9\u6613\u4fee\u6539\uff09\uff0c\u5176\u5b9e\u6709\u4e00\u7248\u66f4\u6162(buildz.xf.read.loads\uff0c\u5e9f\u5f03\u4ee3\u7801\uff0c\u540e\u9762\u770b\u60c5\u51b5\u5220\u6389)\uff0c\u6162100\u500d\uff0c\u56e0\u4e3a\u53ea\u8003\u8651\u7ed3\u6784\u5316\uff0c\u6ca1\u8003\u8651\u5217\u8868\u589e\u51cf\u5f00\u9500\r\n\r\n1, a profile file format base on json, make it easy to write profile file, module is in buildz.xf\r\n2, a ioc profile file read function base on xf format, module is in buildz.ioc\r\n3, other tools module:\r\n buildz.fz: file search\r\n buildz.pyz: make it easier to use python's __import__ function\r\n buildz.argx: read command argument in special format\r\n buildz.demo: example codes to use buildz, run \"python -m buildz\" will use this module\r\ncode relationship:\r\n buildz.xf, buildz.pyz, buildz.argx, buildz.fz, buildz.tz is independent\r\n buildz.ioc use buildz.xf and buildz.pyz\r\n buildz.tz: some tools, only contains \"myerse diff algorithm\" now\r\n buildz.demo use all other modules\r\n\r\nrun python -m buildz to see help\r\n\r\nPS: testing speed on json.loads(has modified scanner.py in json module to make it purely run on Python, which make it run slower) and xf.loads(real func is buildz.xf.readz.loads), xf.loads takes 7 times longer than json.loads, it may cost by more func calls and more string cutting and reading(to make codes more structuring and easier to update)\r\n```\r\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "a json-base file format's read and write code by python, and codes to read and product object from configure file in such format",
"version": "0.5.3",
"project_urls": {
"Homepage": "https://github.com/buildCodeZ/buildz"
},
"split_keywords": [
"buildz"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "71cc7eb51044d2bb1fdd7c150cd9fe1c9dc657693d99896ca14d3120e8c57983",
"md5": "2dd3138d2c541306dc0d8456651720f8",
"sha256": "84c11883de8e2d23f827d0dbb754abdcc419542bf6d846ba21acd853331373a0"
},
"downloads": -1,
"filename": "buildz-0.5.3.tar.gz",
"has_sig": false,
"md5_digest": "2dd3138d2c541306dc0d8456651720f8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 53070,
"upload_time": "2024-04-28T15:58:16",
"upload_time_iso_8601": "2024-04-28T15:58:16.333828Z",
"url": "https://files.pythonhosted.org/packages/71/cc/7eb51044d2bb1fdd7c150cd9fe1c9dc657693d99896ca14d3120e8c57983/buildz-0.5.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-28 15:58:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "buildCodeZ",
"github_project": "buildz",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "buildz"
}