Skip to main content

Assist in parsing cli options and parameters

Project description

# 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. 默认值

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

confmanager-0.0.3-py3-none-any.whl (5.6 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