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)
| File | Size | Uploaded | |
|---|---|---|---|
| coflux-0.12.0.tar.gz | 78.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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