Skip to main content

# conf_man Python程序的配置处理

## 安装

pip install confmanager

## 使用

  1. 显示设置的值

  2. 环境变量

    可以设置前缀 如果设置前缀prefix,那么绑定xxx之后,将会查找PREFIX_XXX的环境变量 如果没有设置前缀,那么绑定xxx之后,将会查找XXX的环境变量

  3. CLI选项

    仅仅支持选项flag的绑定,不支持参数绑定 绑定xxx之后,将会映射到–xxx的值

  4. 配置文件

    可以多个配置文件,每个配置文件在不同目录,但是文件名称必须一致,文件类型仅仅支持JSON JSON文件内容格式需要满足{str: str},不支持嵌套

  5. 默认值

Release files for confmanager 0.0.3

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 confmanager 0.0.3
File Interpreter ABI Platform
confmanager-0.0.3-py3-none-any.whl Python 3 none any Details

Release files / confmanager-0.0.3-py3-none-any.whl

Download URL confmanager-0.0.3-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d658a8dea12550fe8bde6ebd3dc68d719206c79f7a955eee569f4df4177caa6a
BLAKE2b-256 checksum
How to use checksums
caa715f6c1223146efcc79521e8811f0ec567fd4ba8b6ee3bb86b6fb8219a6d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

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