buildz


Namebuildz JSON
Version 0.9.2 PyPI version JSON
download
home_pagehttps://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_time2025-07-08 18:15:30
maintainerNone
docs_urlNone
authorZzz
requires_pythonNone
licenseApache 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.

使用此代码库发现bug或者有需求需要开发都可联系(QQ或邮箱联系,QQ就是邮箱号)

邮箱1:1174534295@qq.com

邮箱2:1309458652@qq.com

```
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查看帮助


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/50/af/11aeb1ad55e3780cec2d7baa82f7ee2e3ef531923458bdee0d81427d5de3/buildz-0.9.2.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\n\u4f7f\u7528\u6b64\u4ee3\u7801\u5e93\u53d1\u73b0bug\u6216\u8005\u6709\u9700\u6c42\u9700\u8981\u5f00\u53d1\u90fd\u53ef\u8054\u7cfb(QQ\u6216\u90ae\u7bb1\u8054\u7cfb\uff0cQQ\u5c31\u662f\u90ae\u7bb1\u53f7)\r\n\r\n\u90ae\u7bb11:1174534295@qq.com\r\n\r\n\u90ae\u7bb12:1309458652@qq.com\r\n\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\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.9.2",
    "project_urls": {
        "Homepage": "https://github.com/buildCodeZ/buildz"
    },
    "split_keywords": [
        "buildz"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50af11aeb1ad55e3780cec2d7baa82f7ee2e3ef531923458bdee0d81427d5de3",
                "md5": "b0d7a1c67c2c748a3b2fea52b566989f",
                "sha256": "e1ad08b5b62c47d37f95ea1b77805d1827772e6ab39542fb1a8ee9f535c394d2"
            },
            "downloads": -1,
            "filename": "buildz-0.9.2.tar.gz",
            "has_sig": false,
            "md5_digest": "b0d7a1c67c2c748a3b2fea52b566989f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 205850,
            "upload_time": "2025-07-08T18:15:30",
            "upload_time_iso_8601": "2025-07-08T18:15:30.541122Z",
            "url": "https://files.pythonhosted.org/packages/50/af/11aeb1ad55e3780cec2d7baa82f7ee2e3ef531923458bdee0d81427d5de3/buildz-0.9.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-08 18:15:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "buildCodeZ",
    "github_project": "buildz",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "buildz"
}
        
Zzz
Elapsed time: 0.62660s