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.5.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for cfenv-0.5.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 500c58960b4d7624ae70cec5d2fd47a467d9880d54b8c9f240189af0f1adb701 |
|
MD5 | 0fb96c823dcf04fd9bc2521c4f055725 |
|
BLAKE2b-256 | 1a174e4fa1b7553cbd7ee8958a701e630fabb7bd65d0243acc1126b7669e4f07 |