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.1.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for cfenv-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eccfb645bf3355395b32f3641c83271648b8219075caef1b6c590ca35026d153 |
|
MD5 | 800557d179f235e178e4353dfc428fca |
|
BLAKE2b-256 | 1640ebfa8ca33ee99c48984de5391188cea94392fed776e655f5fcda7d587939 |