Skip to main content

os profile solution

Project description


Quick Start


from osprofile import OSProfile

# 构造
# 将在 类Unix的~/.config/myappname/myappname.json 文件中,
# 或者 在Windows下的 c:\\users\\<username>\\appdata\\Local\\myappname\\myapp.json 文件中,
# 写入默认配置 options1:'1234'
osp = OSProfile(appname='myappname', profile='myappname.json', options=dict('options1':'1234'))

# 从文件获取配置, 返回字典

# 更新配置文件, 传入字典,对已存在的键值进行覆盖,不存在的进行添加
kwargs = dict(options1='12345', options2='11111')

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

osprofile-0.1.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded 3 7

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