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

If you're not sure about the file name format, learn more about wheel file names.

confmanager-0.0.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file confmanager-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: confmanager-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for confmanager-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d658a8dea12550fe8bde6ebd3dc68d719206c79f7a955eee569f4df4177caa6a
MD5 ec615c51a38028b7d295b84d08e87cdb
BLAKE2b-256 caa715f6c1223146efcc79521e8811f0ec567fd4ba8b6ee3bb86b6fb8219a6d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page