Parse Docker links into values useful for Django settings.
Project description
Parse Docker links into values useful for Django settings.
Free software: BSD license
Documentation: https://docker_links.readthedocs.org.
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docker_links-0.1.0.tar.gz
(12.4 kB
view details)
File details
Details for the file docker_links-0.1.0.tar.gz
.
File metadata
- Download URL: docker_links-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 167b0dd8bf7f803343f224793c0768d80ea67e6715d4a032e0f39678ecb53204 |
|
MD5 | 8b6fe7ecdb3a039c76586b9292d40321 |
|
BLAKE2b-256 | 946d4152815eae8dd149baff077fefa42145e35fbffef49a16488b9d8424f06e |