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
Release files for xy-configure 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xy_configure-1.0.5.tar.gz | 21.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xy_configure-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.0 kB
Release files / xy_configure-1.0.5.tar.gz
| Download URL | xy_configure-1.0.5.tar.gz |
|---|---|
| Size | 21.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c030e2c22053ba5c849a7361aa781bd748fe5dcb60d17f29f791b31d3d93b3b4
|
|
BLAKE2b-256 checksum How to use checksums |
2a176859fee2a784c0309a2ab3b4e8e8aa787043d6d6d7cae9c4a4e6590641ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|
Release files / xy_configure-1.0.5-py3-none-any.whl
| Download URL | xy_configure-1.0.5-py3-none-any.whl |
|---|---|
| Size | 28.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0973bb51443e1ad3e90d05b7b32ddff5a5962ac6ccfce45b1a1c7ed604f6f245
|
|
BLAKE2b-256 checksum How to use checksums |
8f9614a537a12f8d4c779a5fd3ec7cb511c69da5e9f601996745f7c2de5b7d00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.3
|