Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

      _
  ___| |__   ___ _ ____   __
 / __| '_ \ / _ | '_ \ \ / /
| (__| | | |  __| | | \ V /
 \___|_| |_|\___|_| |_|\_/ . modern local environment management

Project Status PyPI Python Version License

Read the documentation at https://chenv.readthedocs.io/ Tests Codecov

pre-commit Black

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.

Metadata

Release files for chenv 0.4.1.dev1634554734

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chenv 0.4.1.dev1634554734
File Size Uploaded Provenance Actions
chenv-0.4.1.dev1634554734.tar.gz 10.9 kB Without provenance Details for chenv-0.4.1.dev1634554734.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chenv 0.4.1.dev1634554734
File Interpreter ABI Platform Actions
chenv-0.4.1.dev1634554734-py3-none-any.whl Python 3 none any Details for chenv-0.4.1.dev1634554734-py3-none-any.whl

Total release size: 24.3 kB

Release files / chenv-0.4.1.dev1634554734.tar.gz

Download URL chenv-0.4.1.dev1634554734.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7cc4c2238da9e35d849b1d97bef220e13bc7d720453e973aa120089e8564910d
BLAKE2b-256 checksum
How to use checksums
e9865c1449bd2a06fbee337aa39eb98ac8a2263ee6a1d878472a8389298adfd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / chenv-0.4.1.dev1634554734-py3-none-any.whl

Download URL chenv-0.4.1.dev1634554734-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
517f90fcf9a27a13fe0a5ffb6d849090733b27d66d0f2f84d639cd083d3f650a
BLAKE2b-256 checksum
How to use checksums
b2ae6c008dd15128301fd75e56e42903d7dc2d2d09619729c7db9aeddd434b37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Security for chenv 0.4.1.dev1634554734

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page