Skip to main content

Environment variable management

Project description

python downloads license version

Environment variable management

New in 2.0!

  • Features have been dropped: - Legacy templates aren’t supported anymore - Subvariables aren’t supported anymore - SSM support has been dropped, as there are better ways to do this

  • Schema-version has been added to document schema to make it easier for me to deprecate and change the schema if necessary


$ pip install barbara


YAML Format (.env.yml)

  1. Create an .env.yml for your project

schema-version: 2
  name: your_project
  output: env-file

  ENVIRONMENT_NAME: development
  DATABASE_URL: postgres://root@db:5432/mydb
  DEBUG: 1
  MEDIA_DIRS: media,static
  1. Run barb and you’ll be prompted for the values

$ barb
env-file does not exist. Create it? [y/N]: y
Creating environment: env-file
Skip Existing: True
DATABASE_URL [postgres://root@db:5432/mydb]: root:wordpass@
ENVIRONMENT_NAME [development]:
Environment ready!
  1. Inspect the generated file, see your values!

$ cat .env

Why barbara?

Because Barbara Liskov created the Liskov Substitution Principle and is a prolific contributor to computer science and software engineering. Barbara is one of the Newton’s metaphorical giants that enables us to see further. I humbly dedicate my project to her and her contributions and offer this project to its consumers with a license befitting that dedication.

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

barbara-2.3.0.tar.gz (18.7 kB view hashes)

Uploaded source

Built Distribution

barbara-2.3.0-py3-none-any.whl (19.6 kB view hashes)

Uploaded py3

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