modern local environment management
Project description
_
___| |__ ___ _ ____ __
/ __| '_ \ / _ | '_ \ \ / /
| (__| | | | __| | | \ V /
\___|_| |_|\___|_| |_|\_/ . modern local environment management
This command-line interface creates and manages local .env files from various sources.
Coupled with python-dotenv for python, or dotenv for node.js development, it provides better, more consistent environment variable management and developement.
Installation
To install chenv, run this command in your terminal:
$ pip install --user chenv
Also make sure that your $PATH
includes $HOME/.local/bin
.
If not, add this line to your .bashrc
/ .zshrc
:
export PATH=$HOME/.local/bin:$PATH;
Usage
chenv’s usage looks like:
$ chenv COMMAND [ARGS]
Commands currently include:
blank
Choose to set .env as a new, blank, .env.blank file.
heroku
Choose to set .env from a remote heroku app config-vars, as .env.[app-name].
- -t <team>, --team <team>
Pre-fill team name
- -a <app>, --app <app>
Pre-fill app name
local
Choose to set .env from a local, pre-exsiting .env.* file.
- filename
Pre-fill file-suffix name
Project Configurations
chenv also provides two file types that manipulate the output of new .env.* files being set.
.envignore
Specifies intentionally unwanted environment-variables. Each line in a envignore file specifies a pattern.
When deciding whether to ignore an environment variable, chenv checks it’s key against the list of patterns described in this file.
- Pattern:
.envignore uses the unix filename pattern matching, similar to .gitignore’s, and as specified at https://docs.python.org/3/library/fnmatch.html
.envmerge
Sepecifies environment variables to merge / override after any input is chosen. This provides consistency to preffered settings such as the logging-level, or NODE_ENV for local development usage in node.js.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for chenv-0.2.3.dev1610457034.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333173500a49500df974c70668913aba2476a6f775cfb7a048115966b56d5a16 |
|
MD5 | 27f19ec2b51b4c61bd8b6cb9e336a311 |
|
BLAKE2b-256 | 4e9def0655066a5bb9c8b9b52c6f2b10a50a09ade94464aadf926cbad9522837 |
Hashes for chenv-0.2.3.dev1610457034-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d97ceb23f1e9d8cb044c9f4315f05a401d858204b04690e3ba1261bc8b9c20b8 |
|
MD5 | c2c85eb469e4af3cbfc4a4541145b805 |
|
BLAKE2b-256 | 57c10006b0e9a0784ddd872ff71a15a3018f2c08479744377a0a6f95a8d1c4e0 |