Python wrapper for Cloud Foundry environments
Project description
py-cfenv is a tiny utility that simplifies interactions with Cloud Foundry environment variables, modeled after node-cfenv.
Quickstart
from cfenv import AppEnv
env = AppEnv()
env.name # 'test-app'
env.port # 5000
redis = env.get_service('redis')
redis.credentials # {'url': '...', 'password': '...'}
redis.get_url(host='hostname', password='password', port='port') # redis://pass:host
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cfenv-0.2.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for cfenv-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebb2c7aeade3408657dcaa6d13ba8a995dcfc0ffe54210c26be03c0aed757149 |
|
MD5 | 37b61619dbec2c758d5c9b394132d21e |
|
BLAKE2b-256 | 940f9acf1593b1db4a776c5d3c080d7ab513ba94cbf43f1e8ba390c8709a080d |