Registry / devops / cfenv
library0.5.3pypypi✓ verified 84d ago

Python wrapper for Cloud Foundry environments, providing easy access to VCAP_SERVICES and VCAP_APPLICATION environment variables. Current version: 0.5.3, updates infrequent.

pip install cfenv
INSTALL
IMPORT
SIG · CFENV
C
cfenv
devopspythonv0.5.3
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.5.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AppEnv
from cfenv import AppEnv
from cfenv import CfApp

Basic usage of CfEnv to get Cloud Foundry app information.

from cfenv import CfEnv cfenv = CfEnv() print('App name:', cfenv.name) print('URI:', cfenv.uri) print('Port:', cfenv.port)
Debug
Known issues
gotchaCfEnv() expects VCAP_APPLICATION to be set; throws AttributeError if not in a Cloud Foundry environment.
fix
Wrap in try-except or check the environment first.
affects: all
gotchaAccessing service credentials via cfenv.get_credential() may return None if key missing.
fix
Use .get() with default or check key existence.
affects: all
deprecatedMethods like .get_service() may be renamed; prefer .get_service(name=...) over positional args.
fix
Use keyword arguments: cfenv.get_service(name='my-service')
affects: >0.5.0
Upgrade
Version history
0.5.3latest on PyPI · released Jun 9, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
cfenv — pip install cfenv · libregistry