配置解析模块
Project description
xy_configure
说明
通用配置模块.
源码仓库
安装
# bash
pip install xy_configure
使用
# Python Interpreter.
from xy_configure.Configure import Configure
from xy_configure.Pair.Section import Section
configure = Configure()
configure['key_1'] = "value_1"
configure["key_2"] = "value_2"
print(configure)
# {"key_1":"value_1", "key_2":"value_2"}
configure = Configure()
section = Section()
section.set_value("key_1","value_1")
configure.set_section(section)
print(configure)
# {'SECTION': {'key_1': 'value_1'}}
section.set_name("section_1")
configure.set_section(section)
print(configure)
# {'SECTION': {'key_1': 'value_1'}, 'section_1': {'key_1': 'value_1'}}
configure.del_section("SECTION")
print(configure)
# {'section_1': {'key_1': 'value_1'}}
许可证
xy_configure 根据 <木兰宽松许可证, 第2版> 获得许可。有关详细信息,请参阅 LICENSE 文件。
捐赠
如果小伙伴们觉得这些工具还不错的话,能否请咱喝一杯咖啡呢?
联系方式
微信: yuyangiit
邮箱: yuyangit.0515@qq.com
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xy_configure-1.0.5.tar.gz
(21.6 kB
view details)
Built Distribution
File details
Details for the file xy_configure-1.0.5.tar.gz
.
File metadata
- Download URL: xy_configure-1.0.5.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c030e2c22053ba5c849a7361aa781bd748fe5dcb60d17f29f791b31d3d93b3b4 |
|
MD5 | 55f147209b7e17be0783bfb9abef50de |
|
BLAKE2b-256 | 2a176859fee2a784c0309a2ab3b4e8e8aa787043d6d6d7cae9c4a4e6590641ac |
File details
Details for the file xy_configure-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: xy_configure-1.0.5-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0973bb51443e1ad3e90d05b7b32ddff5a5962ac6ccfce45b1a1c7ed604f6f245 |
|
MD5 | aa618fed3409e5f6871d65200c5e1ac5 |
|
BLAKE2b-256 | 8f9614a537a12f8d4c779a5fd3ec7cb511c69da5e9f601996745f7c2de5b7d00 |