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.3.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for cfenv-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af072e6b015d4b70b23d148e0bbb1d763ec6841c6e59865ab3e2f01f392b7e46 |
|
MD5 | 8df883550221b9513de9665f5ccbdbf4 |
|
BLAKE2b-256 | 92a59e7bda6452a07c68d7e34f538f45573e372b5f80be62d4dedb3384888bdd |