OSProfile
这是一个用来在跨平台开发应用时,解决应用的配置文件在Windows及类Unix系统中存放路径的问题。 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’))
# 从文件获取配置, 返回字典 osp.read_profile()
# 更新配置文件, 传入字典,对已存在的键值进行覆盖,不存在的进行添加 kwargs = dict(options1=’12345’, options2=’11111’) osp.update_profile(kwargs)
Metadata
Release files for osprofile 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| osprofile-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for osprofile-0.2.1-py3-none-any.whl |
Release files / osprofile-0.2.1-py3-none-any.whl
| Download URL | osprofile-0.2.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35e40114761eff0e0f66ed08628ccc730db65431f9f1c52a293cfc0a0443ccfe
|
|
BLAKE2b-256 checksum How to use checksums |
ad0ad9e131bf73315fbb17d1b555c8066cd1e8cea57c58f71718b7fd9cb67623
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Security for osprofile 0.2.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.