Skip to main content

读配置的库

示例

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

特色功能

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

Metadata

Release files for zcfg 2024.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for zcfg 2024.11.1
File Interpreter ABI Platform Actions
zcfg-2024.11.1-py3-none-any.whl Python 3 none any Details for zcfg-2024.11.1-py3-none-any.whl

Release files / zcfg-2024.11.1-py3-none-any.whl

Download URL zcfg-2024.11.1-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8b701324e27e30b6d5f45915c5e93d27accf6c8a39aa5c80615197f1b2012ab
BLAKE2b-256 checksum
How to use checksums
147fe4b354d8e60d8f8ee92a203acba506005c46768d1742b8aec29604c81d3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.12

Security for zcfg 2024.11.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page