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.4.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for cfenv-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4be23758a81d4c8d5ee5ed238c1cd041c5bf40c4f61b5d599fb489d842cad933 |
|
MD5 | 6845ddbcbc33c37cd24c70c6a85ee896 |
|
BLAKE2b-256 | e5b10c1c84de6fa1189041aa0ea655f6d45048e619b4c99bb16303d6def8775d |