cdumay-env2cfgfile-0.0.2
توضیحات
Lib to dump environment variables into a configuration file
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cdumay-env2cfgfile-0.0.2 |
| نام | cdumay-env2cfgfile |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Cedric DUMAY |
| ایمیل نویسنده | cedric.dumay@gmail.com |
| آدرس صفحه اصلی | https://github.com/cdumay/cdumay-env2cfgfile |
| آدرس اینترنتی | https://pypi.org/project/cdumay-env2cfgfile/ |
| مجوز | MIT |
==================
cdumay-env2cfgfile
==================
.. image:: https://img.shields.io/pypi/v/cdumay-env2cfgfile.svg
:target: https://pypi.python.org/pypi/cdumay-env2cfgfile/
:alt: Latest Version
.. image:: https://travis-ci.org/cdumay/cdumay-env2cfgfile.svg?branch=master
:target: https://travis-ci.org/cdumay/cdumay-env2cfgfile
:alt: Latest version
A binary to dump environment into a file (Tested on python 2.7 & 3.5)
Quickstart
==========
First, install cdumay-env2cfgfile using `pip <https://pip.pypa.io/en/stable/>`_::
pip install -U cdumay-env2cfgfile
Example
=======
The given example dump all environment QT variables in a json file::
$ ./env2cfg --prefix '^QT_' json /tmp/myenv.json
$ cat /tmp/myenv.json
{
"QT_ACCESSIBILITY": "1",
"QT_IM_MODULE": "",
"QT_LINUX_ACCESSIBILITY_ALWAYS_ON": "1",
"QT_STYLE_OVERRIDE": "gtk"
}
.. note::
prefix expression are `regular expression <https://docs.python.org/3.5/howto/regex.html#regex-howto>`_.
License
=======
MIT License
نحوه نصب
نصب پکیج whl cdumay-env2cfgfile-0.0.2:
pip install cdumay-env2cfgfile-0.0.2.whl
نصب پکیج tar.gz cdumay-env2cfgfile-0.0.2:
pip install cdumay-env2cfgfile-0.0.2.tar.gz