Skip to main content

Python wrapper for Cloud Foundry environments

Project description

Latest version Travis-CI

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.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cfenv-0.5.0-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cfenv-0.5.0.tar.gz.

File metadata

  • Download URL: cfenv-0.5.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cfenv-0.5.0.tar.gz
Algorithm Hash digest
SHA256 1c6b636583aa8220b3b8146ae75d3b639a75336815d9f9c3000895aeefc2099f
MD5 c91b1817e7155433e711fbd11697a45f
BLAKE2b-256 b6e67fac1ed8af1cf94096e733ad4467bd2a90869f67b88c225d647de36e68a9

See more details on using hashes here.

File details

Details for the file cfenv-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cfenv-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce5701c094ca6755dbcfa3a3a35e8addc0933d9a0af341ef27966ade433e25c5
MD5 3e2ac6d12239b7d15da241a23bb95419
BLAKE2b-256 c7ae0baf767ee7aa332f0d845114c9675b05d9ca41ebb157cbbe3b34104d0c67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page