Skip to main content

a tool helps manage environment variable portably and safely

Project description

a tool helps manage environment variable portably and safely


pip install flyenv


usage: [-h]

a tool helps manage environment variable portably and safely

positional arguments:

optional arguments:
  -h, --help            show this help message and exit

Usage in Django or Flask or others

  1. In the same directory with, create a file name “flyenv.txt”, then you can add environment variables in this file directly with this format “name=value”, one key-value pair a line, this file allow empty lines and comment lines starts with “#”. You can also set environment variables in the command line.
  2. In any source file you want to use environment variables
from flyenv import set_env, get_env

set_env(name, val)
  1. You can encrypt your env file to protect sensitive data. In the command line:
$flyenv encrypt secret_key[a string with length 16]

flyenv will remove “flyenv.txt” and generate a file name “flyenv_encrypt.txt” with encrypted environment variables in it. Then you can add this file to your git repository.

  1. When you want to use the encrypted environment variables, you can decrypt the file in command line:
$flyenv descrypt secret_key[a string with length 16]

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 flyenv, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size flyenv-0.0.1.tar.gz (4.5 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