figcon-0.0.0
توضیحات
A simple way to configure python libraries
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | figcon-0.0.0 |
| نام | figcon |
| نسخه کتابخانه | 0.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Derrick Chambers |
| ایمیل نویسنده | djachambeador@gmail.com |
| آدرس صفحه اصلی | https://bitbucket.org/smrd/figcon |
| آدرس اینترنتی | https://pypi.org/project/figcon/ |
| مجوز | BSD |
# FigCon
A simple way to configure applications using pure python files.
# Quickstart
```
# contents of default config (base_config.py)
bob = 1
harry = {0: 1, 1: 3}
# contents of secondary config (~/config.py)
bob = 2
harry = {1: 2, 3: 4}
# contents of primary config (config.py)
bill = 4
harry = {1: 6}
# now use the configuration:
from figcon import Figcon
# give figcon a path to the default config file
config = Figcon(default_path='base_config', primary_path='config.py',
secondary_path='~')
# objects are updated based on lowest priority (default) to highest (primary)
assert config.bob == 2
assert config.harry == {0:1, 1: 6, 3:4}
```
# Features
* 3 step hierarchical configuration using a default, primary, and secondary config file.
* Config files are pure python which allow lots flexibility.
* Dont use this if you don't trust your users.
نحوه نصب
نصب پکیج whl figcon-0.0.0:
pip install figcon-0.0.0.whl
نصب پکیج tar.gz figcon-0.0.0:
pip install figcon-0.0.0.tar.gz