configlib-2.0.4
توضیحات
wrapper for ConfigParser allowing for simple get calls to set options.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | configlib-2.0.4 |
| نام | configlib |
| نسخه کتابخانه | 2.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jeff Bryner |
| ایمیل نویسنده | jeff@jeffbryner.com |
| آدرس صفحه اصلی | https://github.com/jeffbryner/configlib |
| آدرس اینترنتی | https://pypi.org/project/configlib/ |
| مجوز | - |
configlib
=========
simple python wrapper for .conf file get, set, delete operations.
Use thusly:
.conf file:
```
[options]
somesetting=aDifferentValue
```
python code:
```
from configlib import getConfig,OptionParser
def initConfig():
#initialize config options
#sets defaults or overrides from config file.
options.something=getConfig('somesetting','defaultvalue',options.configfile)
if __name__ == "__main__":
parser=OptionParser()
parser.add_option("-c", dest='configfile' , default='', help="configuration file to use")
(options,args) = parser.parse_args()
initConfig()
```
pip install configlib
نیازمندی
| مقدار | نام |
|---|---|
| ==0.9 | everett |
نحوه نصب
نصب پکیج whl configlib-2.0.4:
pip install configlib-2.0.4.whl
نصب پکیج tar.gz configlib-2.0.4:
pip install configlib-2.0.4.tar.gz