This release is a pre-release and may not be stable for production use.
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.1b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wfc_client-0.3.1b1.tar.gz | 7.8 kB | Without provenance | Details for wfc_client-0.3.1b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wfc_client-0.3.1b1-py3-none-any.whl | Python 3 | none | any | Details for wfc_client-0.3.1b1-py3-none-any.whl |
Total release size: 17.3 kB
Release files / wfc_client-0.3.1b1.tar.gz
| Download URL | wfc_client-0.3.1b1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4defc1a6d3ad3b9e9678eb19c50426f840d19544db8ac1802d4d1e6afaf999e0
|
|
BLAKE2b-256 checksum How to use checksums |
be5945607b80b90dc87a4448864767db6e66b1a87ab396a0259fde80cc3e0239
|
| 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.1b1-py3-none-any.whl
| Download URL | wfc_client-0.3.1b1-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad543a7530c80f7e7488d2e49f4d414fb4ccfa1a786505d4bb0ca59f4d76e489
|
|
BLAKE2b-256 checksum How to use checksums |
2b1426b71c2868295e0470f67035938cf60c54f063a56e3ba7c5fc7243f02d90
|
| 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.1b1
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.