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.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for cfenv-0.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57640cee35eb6110e7717b05f0c6606226ab235ec332c0b05df11edc4d553d96 |
|
MD5 | dfa72af599a48108f92aab3f1fdbf82b |
|
BLAKE2b-256 | f91ee1bcabfccb9e3e30cb6d49e04ebad031c5431caf001a7ab923c66ce1846a |