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
Release history Release notifications | RSS feed
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.11.1-py3-none-any.whl
(27.4 kB
view details)
File details
Details for the file zcfg-2024.11.1-py3-none-any.whl
.
File metadata
- Download URL: zcfg-2024.11.1-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8b701324e27e30b6d5f45915c5e93d27accf6c8a39aa5c80615197f1b2012ab |
|
MD5 | 8372a4d81f3657fc7403e3cc5394a457 |
|
BLAKE2b-256 | 147fe4b354d8e60d8f8ee92a203acba506005c46768d1742b8aec29604c81d3f |