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)
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
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!
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.
Metadata
Release files for barbara 2.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| barbara-2.4.0.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| barbara-2.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.7 kB
Release files / barbara-2.4.0.tar.gz
| Download URL | barbara-2.4.0.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9c8a878218ec9173d0125ca946ccd3fcde0950d797ce70582a4432d0c1cf616
|
|
BLAKE2b-256 checksum How to use checksums |
4250195b3b8d0015056236b8d56f0da6967278da0c301096e1c91e09dd626a26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency logRelease files / barbara-2.4.0-py3-none-any.whl
| Download URL | barbara-2.4.0-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0a5ddda1be32dab469bd97decad5b435e967d7dca6ae0c232fcfad6b5fc3d71
|
|
BLAKE2b-256 checksum How to use checksums |
bc6ccfb17b002760d99814ffe5a1cdcacec3cab800c8baf48efee86c65a6e491
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 11, 2026.
Transparency log