| Name | zcfg JSON |
| Version |
2024.10.8
JSON |
| download |
| home_page | None |
| Summary | Config for ini |
| upload_time | 2024-10-21 02:11:19 |
| maintainer | None |
| docs_url | None |
| author | Xin-Xin Ma |
| requires_python | None |
| license | GPL |
| keywords |
|
| VCS |
|
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# 读配置的库
## 示例
```python
from zcfg import Config
cfg = Config("./example.ini")
# 获取配置的参数
a = cfg.get_value("section.opt", "default-value")
# 监控配置文件是否改变
if cfg.update_config():
new_a = cfg.get_value("section.opt", "default-value")
```
## 特色功能
* 如果字符串里包含`~`,自动展开
Raw data
{
"_id": null,
"home_page": null,
"name": "zcfg",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Xin-Xin Ma",
"author_email": null,
"download_url": null,
"platform": null,
"description": "# \u8bfb\u914d\u7f6e\u7684\u5e93\n## \u793a\u4f8b\n```python\nfrom zcfg import Config\n\ncfg = Config(\"./example.ini\")\n# \u83b7\u53d6\u914d\u7f6e\u7684\u53c2\u6570\na = cfg.get_value(\"section.opt\", \"default-value\")\n\n# \u76d1\u63a7\u914d\u7f6e\u6587\u4ef6\u662f\u5426\u6539\u53d8\nif cfg.update_config():\n new_a = cfg.get_value(\"section.opt\", \"default-value\")\n```\n\n## \u7279\u8272\u529f\u80fd\n* \u5982\u679c\u5b57\u7b26\u4e32\u91cc\u5305\u542b`~`\uff0c\u81ea\u52a8\u5c55\u5f00\n\n",
"bugtrack_url": null,
"license": "GPL",
"summary": "Config for ini",
"version": "2024.10.8",
"project_urls": {
"Source": "https://gitee.com/SIZXSN6/zcfg"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9154d4a0568d7d1f76bd1948545715f6d063ea914a5d21b67eeab49f566bd495",
"md5": "02e5bc0c578b26b4605251ed88f24260",
"sha256": "8a0b663857943fb7c1d41905c9bde0e9557165047cd9e7c0c166253c42a80fc8"
},
"downloads": -1,
"filename": "zcfg-2024.10.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "02e5bc0c578b26b4605251ed88f24260",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 27096,
"upload_time": "2024-10-21T02:11:19",
"upload_time_iso_8601": "2024-10-21T02:11:19.207207Z",
"url": "https://files.pythonhosted.org/packages/91/54/d4a0568d7d1f76bd1948545715f6d063ea914a5d21b67eeab49f566bd495/zcfg-2024.10.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-21 02:11:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "zcfg"
}