Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Langflow Control Plane Python SDK

langflow-control-plane-sdk is the generated async Python 3.10+ client for the Langflow Control Plane OpenAPI contract. The import package is langflow_control_plane_sdk, which is intentionally distinct from the langflow-sdk package for Langflow's main REST API.

Install

pip install langflow-control-plane-sdk

Normal installs select stable releases. Use pip install --pre langflow-control-plane-sdk to include development and release-candidate builds, or install an exact version such as langflow-control-plane-sdk==0.1.0rc1.

Configure

Set the Control Plane base URL and its temporary pass-through x-api-key credential on the generated configuration:

import langflow_control_plane_sdk as control_plane

configuration = control_plane.Configuration(
    host="https://control-plane.example",
    api_key={"LangflowAPIKey": "replace-me"},
)

The key is sent as x-api-key; do not log it. This pass-through authentication scheme is temporary. A future authentication change can affect SDK users and is therefore treated as semver-significant.

Async CRUD

from uuid import uuid4

import langflow_control_plane_sdk as control_plane

flow_id = uuid4()
flow = control_plane.Flow(
    flow_id=flow_id,
    name="hello-world",
    payload=control_plane.FlowPayload(
        data=control_plane.FlowPayloadData(nodes=[], edges=[]),
    ),
)

async with control_plane.ApiClient(configuration) as client:
    deployments = control_plane.DeploymentsApi(client)
    created = await deployments.create_deployment(
        control_plane.CreateDeployment(project_id=uuid4(), slug="hello-world", flows=[flow]),
    )
    fetched = await deployments.get_deployment(created.id)
    updated = await deployments.replace_deployment(
        created.id,
        control_plane.ReplaceDeployment(description="updated", flows=[flow]),
    )
    patched = await deployments.patch_deployment(
        created.id,
        control_plane.PatchDeployment(description="patched"),
    )
    await deployments.delete_deployment(created.id)

List responses always contain next_cursor; it is None on the last page. Pass a non-null cursor back unchanged:

async with control_plane.ApiClient(configuration) as client:
    deployments = control_plane.DeploymentsApi(client)
    page = await deployments.list_deployments(limit=50)
    while page.next_cursor is not None:
        page = await deployments.list_deployments(
            cursor=page.next_cursor,
            limit=50,
        )

Unsuccessful responses raise ApiException. For documented responses, exception.data is a typed ErrorEnvelope:

try:
    await deployments.get_deployment(deployment_id)
except control_plane.ApiException as exception:
    if isinstance(exception.data, control_plane.ErrorEnvelope):
        print(exception.data.error.code, exception.data.error.message)
    raise

Regenerate and test

Generation requires Python 3.10+, Java 11+, and the pinned generator. If Java is unavailable, jdk4py can optionally provide a local JVM.

make openapi-install
make sdk-py-install
make openapi-test
make sdk-py-generate
make sdk-py-test
make sdk-py-build

When using jdk4py, install it in the codegen environment with sdk/openapi-generator/.venv/bin/python -m pip install jdk4py.

Generated package files must not be edited by hand. Change api/openapi.yaml, the generator options in the root Makefile, or the templates, then regenerate them.

The checked-in SDK uses the base version 0.0.0. Release builds apply the exact v-prefixed Git tag version to a temporary build copy; the OpenAPI info.version independently identifies the API contract line.

See the repository's release guide for shared service and SDK versioning and tag formats.

Metadata

Release files for langflow-control-plane-sdk 0.0.0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langflow-control-plane-sdk 0.0.0.dev2
File Size Uploaded Provenance Actions
langflow_control_plane_sdk-0.0.0.dev2.tar.gz 28.1 kB Without provenance Details for langflow_control_plane_sdk-0.0.0.dev2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langflow-control-plane-sdk 0.0.0.dev2
File Interpreter ABI Platform Actions
langflow_control_plane_sdk-0.0.0.dev2-py3-none-any.whl Python 3 none any Details for langflow_control_plane_sdk-0.0.0.dev2-py3-none-any.whl

Total release size: 84.7 kB

Release files / langflow_control_plane_sdk-0.0.0.dev2.tar.gz

Download URL langflow_control_plane_sdk-0.0.0.dev2.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
04babd1566e2b6cff6b7df8cfda899d52a83bf9c5dd6c562d71e20d0d1934a2d
BLAKE2b-256 checksum
How to use checksums
cc9fc10a0d9cc71fb92067a91245f0f168637eccaefb7e6791fe498f362c96bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / langflow_control_plane_sdk-0.0.0.dev2-py3-none-any.whl

Download URL langflow_control_plane_sdk-0.0.0.dev2-py3-none-any.whl
Size 56.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72d409b000ae276eda1b584bacd4dab458e5995ba268cd42b02b087b4a6dee29
BLAKE2b-256 checksum
How to use checksums
8d97c03fd5225c4f6a3e2be6c7e8bff2a12bcb25a4a9957fc33286427979bed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for langflow-control-plane-sdk 0.0.0.dev2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page