Skip to main content

Config for ini

Project description

读配置的库

示例

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")

特色功能

  • 如果字符串里包含~,自动展开

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zcfg-2024.10.6-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file zcfg-2024.10.6-py3-none-any.whl.

File metadata

  • Download URL: zcfg-2024.10.6-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.16

File hashes

Hashes for zcfg-2024.10.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f30fecc4a1c0cc33d7ed2ed182061cd23228b5f8ab655af48ab92760d31e87f7
MD5 2a2f8f4a59e1341a58455a97bc578c4d
BLAKE2b-256 abb4f1193f3a1f2a9e69003fe53ea90819449c2eb605f53ecddd7cd2a4ab526e

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