Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.
/ url2env Public archive

Turn Heroku-style database URLs into shell envs

Notifications You must be signed in to change notification settings

harto/url2env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url2env

Turns Heroku-style database URLs into shell environment variables.

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

Example:

$ url2env psql://joebloggs:[email protected]: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

About

Turn Heroku-style database URLs into shell envs

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published