Skip to main content

url2env

Turns Heroku-style database URLs into shell environment variables.

Currently only produces psql-compatible envs from postgres:// URLs.

Example:

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

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

$ env $(url2env $SOME_DB_URL) psql

Installation instructions

$ pip install url2env

Distribution instructions

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

Metadata

Release files for url2env 1.1

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

Built distribution (wheel)

Table of built distributions (wheels) for url2env 1.1
File Interpreter ABI Platform
url2env-1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / url2env-1.1-py2.py3-none-any.whl

Download URL url2env-1.1-py2.py3-none-any.whl
Size 3.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3409ad26186ff54dfd05ba8e834c2e8f9fde1321031977a31a99e731038275fc
BLAKE2b-256 checksum
How to use checksums
05510a3eb2ac55ce0ebd802c5c03980368d7fdfa9f0561bb2436145fb8e40d82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

1.0

1 release file

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