Skip to main content

Coflux Python SDK

The Coflux Python SDK provides decorators and utilities for defining workflows and tasks.

Installation

pip install coflux

Or for development:

cd adapters/python
poetry install

Usage

Defining Tasks and Workflows

from coflux import task, workflow, log_info


@task()
def process_item(item_id: int) -> dict:
    log_info("Processing item {id}", id=item_id)
    return {"id": item_id, "status": "done"}


@workflow()
def batch_process(items: list[int]) -> list[dict]:
    results = []
    for item_id in items:
        result = process_item(item_id)
        results.append(result)
    return results

CLI Commands

The SDK is invoked by the Go CLI via subprocess:

# Discovery - find all @task/@workflow targets
python -m coflux discover myapp.workflows myapp.tasks

# Execution - run as executor process
python -m coflux execute

Metadata

Release files for coflux 0.12.0

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

Source distribution (sdist)

Source distribution for coflux 0.12.0
File Size Uploaded
coflux-0.12.0.tar.gz 78.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coflux 0.12.0
File Interpreter ABI Platform
coflux-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 154.2 kB

Release files / coflux-0.12.0.tar.gz

Download URL coflux-0.12.0.tar.gz
Size 78.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b3789c70425e07bc5940f7dd171783401609a64016bebaa70f24ca466df2d7ce
BLAKE2b-256 checksum
How to use checksums
a136e23775ee4bed3a23b032452b3b136e14f44cafca96997e763271766b1467
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release files / coflux-0.12.0-py3-none-any.whl

Download URL coflux-0.12.0-py3-none-any.whl
Size 75.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
267d3fa7b3a87556cb1537d9b3cb9c284879953bba27d0e3469660d66c054305
BLAKE2b-256 checksum
How to use checksums
089952b98f7081337a165d94d51e7787139afc6608ddf683498c5a613f62209e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.12.0 This release

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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