config-parser-0.0.1
توضیحات
Configuration library wrappers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | config-parser-0.0.1 |
| نام | config-parser |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matthew Paletta |
| ایمیل نویسنده | mattpaletta@gmail.com |
| آدرس صفحه اصلی | https://github.com/mattpaletta/configs |
| آدرس اینترنتی | https://pypi.org/project/config-parser/ |
| مجوز | GNU GPLv3 |
# configparser
Simplified runtime configs for Python
[](https://travis-ci.com/mattpaletta/configparser)
Examples can be seen in `examples/`
To use configparser:
`pip install git+git://github.com/mattpaletta/configparser.git`
You can call it in your program using:
```
p = Parser(argparse_file = "argparse.yml").get()
```
The paramters are:
- argparse_file: your argparse definitions, layed out in JSON or yaml files.
- config_file_key: a string to the optional config file key in the argparse file to use to allow the user to run custom runtime config files.
- environ_key_mapping: a dictionary containing the config file key to the environment key (bash environment)
The arguments will be applied on top of each other in the following order:
1. defaults
2. config files (in the order defined)
3. environment variables
4. runtime
This order cannot be modified at this time.
نیازمندی
| مقدار | نام |
|---|---|
| >=4.2b1 | PyYAML |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl config-parser-0.0.1:
pip install config-parser-0.0.1.whl
نصب پکیج tar.gz config-parser-0.0.1:
pip install config-parser-0.0.1.tar.gz