Skip to main content

操作更方便的配置文件读取模块

Project description

操作更方便的配置文件读取模块

某ini文件
[table]
data = mydata
读取代码如下
import zinifile

ini = zinifile.load(文件名)
ini = zinifile.load_text(ini内容)
print(ini.table.data)
你可以将zinifile创建的实例当做一个字典或者迭代器.
for key in ini
for key, value in ini.items()
value = ini.get('键')
value = ini['键']

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

zinifile-1.0.3.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

zinifile-1.0.3-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

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