Skip to main content

配置解析模块

Project description

xy_configure

说明

通用配置模块.

源码仓库

安装

pip install xy_configure

使用

python脚本
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'}}

捐赠

如果小伙伴们觉得这些工具还不错的话,能否请咱喝一杯咖啡呢?

Pay-Total

联系方式

微信: yuyangiit
邮箱: 845262968@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.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

xy_configure-1.0.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file xy_configure-1.0.2.tar.gz.

File metadata

  • Download URL: xy_configure-1.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for xy_configure-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0e881cef95936aa875b5fd70a7e6efe58fcf6ae0bbbf66fc94503ad2a154d779
MD5 83f232dcab0f90f7a8c5f78c5aaa015d
BLAKE2b-256 0219895362b8b84d6fec23af19d73cb99ca2bd1cf43f867cbd0f47bbc788cc1e

See more details on using hashes here.

File details

Details for the file xy_configure-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for xy_configure-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91310c1f45bfd87547ac3c380dd132fd539c57ce661f5383c8d0cebf339a4fc0
MD5 ba14516e09e64c7abc30162bd136d28d
BLAKE2b-256 9adbff8efe5e563eafa28e4322b4befc3591b5b180f0ccdec97ba30d06ad6987

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page