Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Lib to dump environment variables into a configuration file

Project description

Latest Version Latest version

A binary to dump environment into a file (Tested on python 2.7 & 3.5)

Quickstart

First, install cdumay-env2cfgfile using pip:

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.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cdumay-env2cfgfile, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size cdumay-env2cfgfile-0.0.2.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page