cfenv
Python wrapper for Cloud Foundry environments
Decision gist · record as of 2026-08-14
No, unless you are maintaining a legacy Cloud Foundry application that already uses this package. The project is abandoned (last commit 2019-01-23), classified as Pre-Alpha, and has not been tested against modern Python versions. If you are starting a new Cloud Foundry project, investigate current Cloud Foundry Python tooling or parse VCAP_SERVICES directly; if you must use this, pin it and test thoroughly in your environment.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Cloud Foundry environment with VCAP_SERVICES and VCAP_APPLICATION environment variables set; will not function meaningfully outside a deployed CF app.
- Low install friction with a single dependency (furl).
- However, the package is abandoned—last commit was 2019-01-23, over six years ago, and it is classified as Pre-Alpha.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or redistribution in your own projects.
last release 2017-06-09 (3353 days) · last repo commit 2019-01-23 · 31 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 96,642 downloads/mo, #13,202 on PyPI
Alternatives
Verify before relying
pip install cfenv
from cfenv import AppEnv
env = AppEnv()
app_name = env.name
app_port = env.port
redis_service = env.get_service(label='redis')
redis_url = redis_service.get_url(host='hostname', password='password', port='port')- Whether the package works reliably with modern Python versions (classifiers list only up to 3.5, released 2015–2017).
- Whether furl's current API remains compatible with cfenv's usage patterns.
- Active maintenance status or community forks that may have superseded this project.
What it is and what it does
py-cfenv is a lightweight wrapper around Cloud Foundry's environment variable conventions, designed to make it easier to read app metadata and service credentials in Python applications running on CF. It parses the VCAP_SERVICES and VCAP_APPLICATION JSON structures that Cloud Foundry injects into deployed apps, exposing them through a simple object interface so you can retrieve your app's name, port, and bound service credentials without manual JSON parsing.
The package depends only on furl for URL manipulation and installs with low friction. However, it has been abandoned since early 2019 and is marked Pre-Alpha; it was never intended for production use. Its classifiers list support only up to Python 3.5, and there is no indication of ongoing maintenance or compatibility with modern Python versions or Cloud Foundry API changes.
Use it for
- Extract app name and port from VCAP_APPLICATION in a Cloud Foundry-deployed Python app.
- Retrieve database connection credentials for a bound PostgreSQL or MySQL service by label.
- Build a service URL from parsed credentials (e.g., redis://user:pass@host:port).
- Simplify environment variable parsing in a legacy Cloud Foundry application still in production.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, unless you are maintaining a legacy Cloud Foundry application that already uses this package.
The project is abandoned (last commit 2019-01-23), classified as Pre-Alpha, and has not been tested against modern Python versions. If you are starting a new Cloud Foundry project, investigate current Cloud Foundry Python tooling or parse VCAP_SERVICES directly; if you must use this, pin it and test thoroughly in your environment.
Install
cfenv on PyPI
Before you install
Low install friction with a single dependency (furl). However, the package is abandoned—last commit was 2019-01-23, over six years ago, and it is classified as Pre-Alpha. Use only if you are already committed to Cloud Foundry and have no alternative.
Requires a Cloud Foundry environment with VCAP_SERVICES and VCAP_APPLICATION environment variables set; will not function meaningfully outside a deployed CF app.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or redistribution in your own projects.
Quickstart
pip install cfenv
from cfenv import AppEnv
env = AppEnv()
app_name = env.name
app_port = env.port
redis_service = env.get_service(label='redis')
redis_url = redis_service.get_url(host='hostname', password='password', port='port')
Verify before relying
- Whether the package works reliably with modern Python versions (classifiers list only up to 3.5, released 2015–2017).
- Whether furl's current API remains compatible with cfenv's usage patterns.
- Active maintenance status or community forks that may have superseded this project.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagefurl |
| Maintenance | Abandoned 3,353 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 96,642 / month, #13,202 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5 |
Evidence: cfenv-0.5.3-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cloud foundry environment variables”
- cfenvParses Cloud Foundry environment variables and service credentials…
- cloudfoundry-clientA Python client library for interacting with Cloud Foundry platforms…
- agent-framework-foundry-localIntegrates Microsoft Agent Framework with Foundry Local, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also cloudfoundry-client · foundry-platform-sdk · redis-cli · redis-entraid · foundry-local-sdk · alibabacloud-credentials-api · python-nmap · port-for · agent-framework-azure-ai · cloudauthz