dirigible-0.2.7
توضیحات
Config encryption
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dirigible-0.2.7 |
| نام | dirigible |
| نسخه کتابخانه | 0.2.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Thom Neale |
| ایمیل نویسنده | tneale@massmutual.com |
| آدرس صفحه اصلی | https://github.org/massmutual/dirigible |
| آدرس اینترنتی | https://pypi.org/project/dirigible/ |
| مجوز | UNKNOWN |
Dirigible
=========
Dirigible is a minimal python package the provides two shortcuts for working
with config files:
1) it can transparently read config files encrypted with Ansible Vault, and
2) shortcuts for finding and loading configs files in common locations, like
~/.{{appname}} or /etc/{{appname}}, or looking in a location specified by
an environment variable "${{appname|upper}}_CONFIG_DIR" if defined.
Examples
++++++++
Load a basic, unencrypted config file from
from os.path import join, abspath, dirname
import digible
class MyConfig(dirigible.Config):
appname = 'testapp'
defaults = join(dirname(abspath(__file__)), 'defaults')
@CachedAttr
def cfg(self):
return self.load_config_filename('myapp.cfg')
نحوه نصب
نصب پکیج whl dirigible-0.2.7:
pip install dirigible-0.2.7.whl
نصب پکیج tar.gz dirigible-0.2.7:
pip install dirigible-0.2.7.tar.gz