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.2.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

snakenv-1.2.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file snakenv-1.2.1.tar.gz.

File metadata

  • Download URL: snakenv-1.2.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for snakenv-1.2.1.tar.gz
Algorithm Hash digest
SHA256 ba36bab034767fc72694c33ddb1b399386489e8800c242696204244477583740
MD5 a1cad0d6e8b0cfd9468daf90f1f70dc9
BLAKE2b-256 cad8e34c7892814a027986c5ae6bb017dc99aac2312c65e4f8bb39416adeddf2

See more details on using hashes here.

File details

Details for the file snakenv-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: snakenv-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for snakenv-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbba54194e6fb803987d5c5479c43c880b7f40ab39308aa5792fcd5938881489
MD5 7939587d214d9b3db9052df691d0bfb0
BLAKE2b-256 fa99d0d1e80791e6c71334f220dd96e08c8d32585f32822a58dd6101c85504bc

See more details on using hashes here.

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