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

Uploaded Source

Built Distribution

snakenv-1.1.4-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: snakenv-1.1.4.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for snakenv-1.1.4.tar.gz
Algorithm Hash digest
SHA256 2c5b13464d1923063c9a9f9edba667ea40b5295a44e27d514acd8ec2f57a797f
MD5 dc9301b6f006254ce0167720139082fe
BLAKE2b-256 aab113d8aa24456aef49cd9ab383fcdffef66755247bfe35efe83db50d24d11f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: snakenv-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for snakenv-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fa57a5e94c4e24da51d5bacd4bf8baebbd16c34071964ad44dfb4b930d88bb87
MD5 975f4882fdedcf93806d2bdd58937862
BLAKE2b-256 b3aed38fd44e89d30b72a7a00fb7f18996b6fef8980cc0a1a53a88adcef397d4

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