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.1

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.1
File Size Uploaded Provenance Actions
wfc_client-0.3.1.tar.gz 7.8 kB Without provenance Details for wfc_client-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 17.3 kB

Release files / wfc_client-0.3.1.tar.gz

Download URL wfc_client-0.3.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
56902e24ac311a6428ac9fd28429695724dffb0405a6276ddef67e3fa88e2252
BLAKE2b-256 checksum
How to use checksums
d9604b5249a3092fc5bf33b5cd75bc1f17730df50424b38fdf44678e8f0e602d
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.1-py3-none-any.whl

Download URL wfc_client-0.3.1-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99360dedafcef1ddc3e4ba2abaf6a735ee50d5be2e7b4ccfaade79199bb8b4b7
BLAKE2b-256 checksum
How to use checksums
c825477e4209feb7c16e6f40fa3566e33d4c2b6ca0da37ed2965d42be430ad4e
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.1

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