Skip to main content

Parse Docker links into values useful for Django settings.

Project description

https://badge.fury.io/py/docker_links.png https://travis-ci.org/wlonk/docker_links.png?branch=master https://pypip.in/d/docker_links/badge.png

Parse Docker links into values useful for Django settings.

Usage

Docker links provide environment variables for processes that look like this:

DB_PORT_5432_TCP=tcp://172.17.0.5:5432

That’s nice, but not quite right for, say, use in a Django settings file.

So this provides a function that reads an environment variable, and updates it with overrides you specify:

BROKER_URL = docker_links.docker_link('AMQP_PORT_6379_TCP', overrides={
    "scheme": "redis",
    "path": "/0",
})

History

0.1.0 (2014-10-26)

  • First release on PyPI.

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
docker_links-0.1.0.tar.gz (12.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page