Skip to main content

Use env variables in python

Project description

snakenv

snakenv is a command line application to make it possible to access variables in .env file as an environment variable in python script.

Installation

For installing snakenv type:

> pip install snakenv

Usage

You can use snakenv with following syntax:

> snakenv ENV_NAME

ENV_NAME is name of env file. You can enter file name with extension or it will use .env extension for default. Example, prod is equals prod.env and prod.env equals prod.env. If you leave ENV_NAME blank, it will use .env file. If file not exist, it will create it. You can disable autocreate with --not-create flag.

Thanks for using snakenv

Project details


Download files

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

Source Distribution

snakenv-1.1.8.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

snakenv-1.1.8-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page