Name | buildz JSON |
Version |
0.6.41
JSON |
| download |
home_page | https://github.com/buildCodeZ/buildz |
Summary | 配置读写(基于json格式进行简化)、ioc、以及其他工具代码。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(ioc), and other tool codes |
upload_time | 2025-01-08 15:53:23 |
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
声明:
禁止将本项目代码用于ai训练
declaration:
Codes of this project are not allowed to be used for AI training or any other form of machine learning processes.
```
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.db: sql集成工具,自用,里面import了其他sql库,使用运行"python -m buildz.db 配置文件路径"
buildz.base: 封装了一个基础类,继承它可以少写一些代码
buildz.html: xml(html)内容读取和解析
buildz.auto: 自动化操作(主要是做自动化测试方便些,如果不怕写一堆配置文件的话)
代码关系:
buildz.xf, buildz.pyz, buildz.argx, buildz.fz, buildz.tz都是独立的模块
buildz.ioc需要buildz.xf和buildz.pyz
buildz.db需要buildz.xf
buildz.demo需要其他全部模块
运行python -m buildz查看帮助
持续更新中。。。
2024/12/22:
增加pathz模块,方便处理路径,修改ioc和db
2024/12/18:
增加数据映射xz,数据库db增加类似orm功能以及表和索引结构查询功能(目前只写了mysql,oracle,sqlite3的查询),配置文件读写xf的输出增加对ListMap的支持(dumpx, dumpxf)
2024/11/11:
新增buildz.tz.xfind,对json做查询用的,功能类似jsonpath,自己实现的原因是好玩,以及不想为了用jsonpath去学对应的语法
2024/10/08:
增强auto配置功能,在auto增加数据库使用的封装,后续考虑出文档。。。如果有时间
2024/09/25:
修复bug,增强html的搜索功能,增强auto配置功能
auto里加了个request的demo,里面用的requests库,可以直接配置来进行http调用
2024/09/24:
增加模块html:html页面解析
增加模块auto:自动化调用
2024/09/09
ioc:
加修饰器
加配置refs
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倍,因为只考虑结构化,没考虑列表增减开销(获得的经验教训是别直接用python的列表list当堆栈做append和pop,特别慢!)
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
continue updating...
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/07/a3/0f6cf50c7f039ae6c921716af31037cd1dd89af6e13b8c4223a4a2b20e7c/buildz-0.6.41.tar.gz",
"platform": "any",
"description": "# buildz\r\n\u58f0\u660e:\r\n\u7981\u6b62\u5c06\u672c\u9879\u76ee\u4ee3\u7801\u7528\u4e8eai\u8bad\u7ec3\r\ndeclaration:\r\nCodes of this project are not allowed to be used for AI training or any other form of machine learning processes.\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 buildz.db: sql\u96c6\u6210\u5de5\u5177\uff0c\u81ea\u7528\uff0c\u91cc\u9762import\u4e86\u5176\u4ed6sql\u5e93\uff0c\u4f7f\u7528\u8fd0\u884c\"python -m buildz.db \u914d\u7f6e\u6587\u4ef6\u8def\u5f84\"\r\n buildz.base: \u5c01\u88c5\u4e86\u4e00\u4e2a\u57fa\u7840\u7c7b\uff0c\u7ee7\u627f\u5b83\u53ef\u4ee5\u5c11\u5199\u4e00\u4e9b\u4ee3\u7801\r\n buildz.html: xml\uff08html\uff09\u5185\u5bb9\u8bfb\u53d6\u548c\u89e3\u6790\r\n buildz.auto: \u81ea\u52a8\u5316\u64cd\u4f5c\uff08\u4e3b\u8981\u662f\u505a\u81ea\u52a8\u5316\u6d4b\u8bd5\u65b9\u4fbf\u4e9b\uff0c\u5982\u679c\u4e0d\u6015\u5199\u4e00\u5806\u914d\u7f6e\u6587\u4ef6\u7684\u8bdd\uff09\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.db\u9700\u8981buildz.xf\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\n\u6301\u7eed\u66f4\u65b0\u4e2d\u3002\u3002\u3002\r\n2024/12/22:\r\n\u589e\u52a0pathz\u6a21\u5757\uff0c\u65b9\u4fbf\u5904\u7406\u8def\u5f84\uff0c\u4fee\u6539ioc\u548cdb\r\n2024/12/18:\r\n\u589e\u52a0\u6570\u636e\u6620\u5c04xz\uff0c\u6570\u636e\u5e93db\u589e\u52a0\u7c7b\u4f3corm\u529f\u80fd\u4ee5\u53ca\u8868\u548c\u7d22\u5f15\u7ed3\u6784\u67e5\u8be2\u529f\u80fd\uff08\u76ee\u524d\u53ea\u5199\u4e86mysql,oracle,sqlite3\u7684\u67e5\u8be2\uff09\uff0c\u914d\u7f6e\u6587\u4ef6\u8bfb\u5199xf\u7684\u8f93\u51fa\u589e\u52a0\u5bf9ListMap\u7684\u652f\u6301(dumpx, dumpxf)\r\n2024/11/11:\r\n\u65b0\u589ebuildz.tz.xfind\uff0c\u5bf9json\u505a\u67e5\u8be2\u7528\u7684\uff0c\u529f\u80fd\u7c7b\u4f3cjsonpath\uff0c\u81ea\u5df1\u5b9e\u73b0\u7684\u539f\u56e0\u662f\u597d\u73a9\uff0c\u4ee5\u53ca\u4e0d\u60f3\u4e3a\u4e86\u7528jsonpath\u53bb\u5b66\u5bf9\u5e94\u7684\u8bed\u6cd5\r\n2024/10/08:\r\n\u589e\u5f3aauto\u914d\u7f6e\u529f\u80fd\uff0c\u5728auto\u589e\u52a0\u6570\u636e\u5e93\u4f7f\u7528\u7684\u5c01\u88c5\uff0c\u540e\u7eed\u8003\u8651\u51fa\u6587\u6863\u3002\u3002\u3002\u5982\u679c\u6709\u65f6\u95f4\r\n2024/09/25:\r\n\u4fee\u590dbug\uff0c\u589e\u5f3ahtml\u7684\u641c\u7d22\u529f\u80fd\uff0c\u589e\u5f3aauto\u914d\u7f6e\u529f\u80fd\r\nauto\u91cc\u52a0\u4e86\u4e2arequest\u7684demo\uff0c\u91cc\u9762\u7528\u7684requests\u5e93\uff0c\u53ef\u4ee5\u76f4\u63a5\u914d\u7f6e\u6765\u8fdb\u884chttp\u8c03\u7528\r\n2024/09/24:\r\n\u589e\u52a0\u6a21\u5757html:html\u9875\u9762\u89e3\u6790\r\n\u589e\u52a0\u6a21\u5757auto:\u81ea\u52a8\u5316\u8c03\u7528\r\n\r\n2024/09/09\r\nioc:\r\n \u52a0\u4fee\u9970\u5668\r\n \u52a0\u914d\u7f6erefs\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\uff08\u83b7\u5f97\u7684\u7ecf\u9a8c\u6559\u8bad\u662f\u522b\u76f4\u63a5\u7528python\u7684\u5217\u8868list\u5f53\u5806\u6808\u505aappend\u548cpop\uff0c\u7279\u522b\u6162\uff01\uff09\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\ncontinue updating...\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": "\u914d\u7f6e\u8bfb\u5199\uff08\u57fa\u4e8ejson\u683c\u5f0f\u8fdb\u884c\u7b80\u5316\uff09\u3001ioc\u3001\u4ee5\u53ca\u5176\u4ed6\u5de5\u5177\u4ee3\u7801\u3002a json-base file format's read and write code by python, and codes to read and product object from configure file in such format(ioc), and other tool codes",
"version": "0.6.41",
"project_urls": {
"Homepage": "https://github.com/buildCodeZ/buildz"
},
"split_keywords": [
"buildz"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "07a30f6cf50c7f039ae6c921716af31037cd1dd89af6e13b8c4223a4a2b20e7c",
"md5": "1d87580d909a42c2b17fde574c64d328",
"sha256": "77a362dbaa2042ce52ac9317f4dc8386d754c647eb93d9e71e03e550c616d6f7"
},
"downloads": -1,
"filename": "buildz-0.6.41.tar.gz",
"has_sig": false,
"md5_digest": "1d87580d909a42c2b17fde574c64d328",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 104502,
"upload_time": "2025-01-08T15:53:23",
"upload_time_iso_8601": "2025-01-08T15:53:23.730407Z",
"url": "https://files.pythonhosted.org/packages/07/a3/0f6cf50c7f039ae6c921716af31037cd1dd89af6e13b8c4223a4a2b20e7c/buildz-0.6.41.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-08 15:53:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "buildCodeZ",
"github_project": "buildz",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "buildz"
}