Skip to main content

Produces env vars from Heroku-style database URLs

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

url2env-1.1-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file url2env-1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for url2env-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3409ad26186ff54dfd05ba8e834c2e8f9fde1321031977a31a99e731038275fc
MD5 1b7b7aec7d431aead75566390b2aa698
BLAKE2b-256 05510a3eb2ac55ce0ebd802c5c03980368d7fdfa9f0561bb2436145fb8e40d82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page