Skip to main content

wfc-client

Tier-1 sugar for writing Workflow Canvas (wfc) methods.

wfc-client is the opt-in ergonomic way to write a wfc method. The canonical interface is the Tier-2 env-var + file contract — wfc-client is a thin wrapper over it with one small dependency, axiom-annotations, whose markers narrate wfc.run(). It never installs wfc, pandas, or a scientific stack into your environment, and it never copies, reads, or serializes your data bytes: it is a metadata recorder.

import wfc_client as wfc

@wfc.method
def qc(ctx):
    clean_path = ctx.workdir / "clean.csv"
    # ... write your file with whatever library you like ...
    ctx.save_artifact("clean", clean_path)
    ctx.log_metric("kept_rows", 100)

if __name__ == "__main__":
    wfc.run()

The ctx surface

Member Purpose
ctx.input(slot) The file connected to an input, as a Path (None when an optional input has nothing connected). For an input declared multiple: true, a list[Path]. A single path also answers [0], so scripts written for the list keep working. Naming an input the method does not declare raises an error that lists the declared inputs.
ctx.params Parsed params dict.
ctx.workdir Scratch dir at WFC_RUN_DIR/_workdir/ (auto-created).
ctx.run_dir WFC_RUN_DIR (advanced).
ctx.save_artifact(name, path) Record that path is the declared output name. Path only.
ctx.log_metric(name, value) Record a scalar metric.

At wfc.run() exit, wfc-client writes one _wfc_results.json manifest of {outputs, metrics} with run-dir-relative paths. The host reads it.

Exactly one @wfc.method per method module is required.

Metadata

Release files for wfc-client 0.3.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 wfc-client 0.3.0
File Size Uploaded Provenance Actions
wfc_client-0.3.0.tar.gz 7.7 kB Without provenance Details for wfc_client-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wfc-client 0.3.0
File Interpreter ABI Platform Actions
wfc_client-0.3.0-py3-none-any.whl Python 3 none any Details for wfc_client-0.3.0-py3-none-any.whl

Total release size: 17.1 kB

Release files / wfc_client-0.3.0.tar.gz

Download URL wfc_client-0.3.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e364e7bed321081317e5b8249a6a4001548916f3483a415802aa87d799c16c28
BLAKE2b-256 checksum
How to use checksums
adf21d663fd2675a39f9c04a796b9718b8bc4c557d70a85ba0165931735dbf73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.9 Windows/10

Release files / wfc_client-0.3.0-py3-none-any.whl

Download URL wfc_client-0.3.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d44d078f6ea63a49a595517bb6c94501ff5220e9552ab338ca4b485a3ebeee07
BLAKE2b-256 checksum
How to use checksums
197774694a21572d40e7abf36d3ecd82d1a27108b40e0fcfc38193e387f34d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.9 Windows/10

Security for wfc-client 0.3.0

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