Skip to main content

Environment variable management

Project description

https://repository-images.githubusercontent.com/131429006/7eb3f680-8572-11e9-8c3d-68b1476c50e8#

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

Installation

$ pip install barbara

Usage

YAML Format (.env.yml)

  1. Create an .env.yml for your project

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

environment:
  ENVIRONMENT_NAME: development
  DATABASE_URL: postgres://root@db:5432/mydb
  DEBUG: 1
  MEDIA_DIRS: media,static
  CSRF_COOKIE_SECURE: 0
  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@127.0.0.1:5432/sample
ENVIRONMENT_NAME [development]:
Environment ready!
  1. Inspect the generated file, see your values!

$ cat .env
DATABASE_URL=root:wordpass@127.0.0.1:5432/sample
ENVIRONMENT_NAME=development

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file barbara-2.3.0.tar.gz.

File metadata

  • Download URL: barbara-2.3.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.8.0 Darwin/20.3.0

File hashes

Hashes for barbara-2.3.0.tar.gz
Algorithm Hash digest
SHA256 693272994153d58c573b5033bcc3bec18fc67aab005f723ecb62d9ce84bcee21
MD5 8ee0bcb2cfe37cd1d2a6fa5262f34845
BLAKE2b-256 02436d5f0b2db83a020b1291ba8bd728a7fa3ed84605bab86baf2b9bfee710de

See more details on using hashes here.

File details

Details for the file barbara-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: barbara-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.8.0 Darwin/20.3.0

File hashes

Hashes for barbara-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09d5876d5317de153a964190993fa9bb196462bfb2ee7a3e14bd94469b07fe7d
MD5 97c7a52ab37e0cfc382d140067c9c36f
BLAKE2b-256 f96b69190d5dad44afa9c2a61acf3058d70f86b8da3d7acb86528e2a0323d935

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