Skip to main content

url2env

Turns database URLs into shell environment variables.

Usage:

$ url2env psql://joebloggs:secret@db.example.com:4433/blog
PGUSER=joebloggs
PGPASSWORD=secret
PGHOST=db.example.com
PGPORT=4433
PGDATABASE=blog

With all options:

$ url2env --engine --export --prefix=DB_ psql://joebloggs:secret@db.example.com:4433/blog
export DB_ENGINE=psql
export DB_USER=joebloggs
export DB_PASSWORD=secret
export DB_HOST=db.example.com
export DB_PORT=4433
export DB_DATABASE=blog

The output could be used in conjunction with eval, e.g.::

$ eval $(url2env $DATABASE_URL)

Installation

$ pip install zerotk.url2env

Distribution

$ git tag <x.y>
$ make build upload

Metadata

Release files for zerotk.url2env 1.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zerotk.url2env 1.3.8
File Size Uploaded Provenance
zerotk_url2env-1.3.8.tar.gz 3.0 kB Without provenance Details

Release files / zerotk_url2env-1.3.8.tar.gz

Download URL zerotk_url2env-1.3.8.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2159b124e3ce8a4fbe2837c389c75f5edefea94e6abdeb37d589f5da5dd35f96
BLAKE2b-256 checksum
How to use checksums
1c381304905e85872cba37fb2e84887a293ceca87618c6ab63228bf36fd17a78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Security for zerotk.url2env 1.3.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page