urirun-flow
AI Cost Tracking
- 🤖 LLM usage: $0.5160 (30 commits)
- 👤 Human dev: ~$2928 (29.3h @ $100/h, 30min dedup)
Generated on 2026-07-05 using openrouter/qwen/qwen3-coder-next
Author urirun URI flows in a typed programming language, and convert them to/from the canonical YAML flow format — the way Pydantic gives data a typed, validated model that serializes to a schema.
A urirun flow is an ordered DAG of URI steps (query reads, command mutates),
chaining prior results. The interchange format is YAML
(see examples/17-flows); urirun-flow lets you build
and validate that flow in code, with autocompletion, and emit the exact YAML a
runner executes.
Why
YAML is great for sharing and running a flow, but a typed language gives you
control: autocompletion of step references, compile-/run-time validation of the
DAG, refactorability, and the ability to compute a flow (loops, conditionals,
parameters) instead of hand-writing YAML. urirun-flow is the bridge — round-trip
between the two.
Use (Python, Pydantic)
from urirun_flow import Flow
flow = Flow(task={"title": "Web recon"}, registry="tools.bindings.json",
allow=["httpcheck://*", "browser://*", "log://*"])
up = flow.step("httpcheck://host/url/query/status", id="up", payload={"url": URL})
read = flow.step("browser://chrome/page/query/dom", id="read",
payload={"url": URL}, after=[up])
flow.step("log://host/run/command/write", id="audit",
payload={"detail": read.ref("text")}, after=[read]) # typed reference
print(flow.to_yaml()) # canonical urirun flow YAML
Flow.from_yaml(text) # parse + validate back into the model
.step() returns the typed Step, so a later step references its output with
step.ref("field") — a checked <id>.<field> chain rather than a magic string.
The model validates on every build: URIs are well-formed, depends_on resolves to a
real step, and the graph is acyclic. kind (query/command) is derived from the URI.
CLI
urirun-flow to-yaml web_recon:flow # import a Python flow object → YAML
urirun-flow validate flow.yaml # DAG / deps / URIs
urirun-flow from-yaml flow.yaml # parse + re-emit (normalize / round-trip)
urirun-flow run flow.yaml --execute # execute through urirun when the runtime is installed
The urirun_flow import package is owned by this distribution. Typed authoring
and YAML validation need only urirun-flow; execution needs the urirun runtime
installed as well.
Proposal: typed flows in any language
The flow is a language-agnostic contract ({task, registry, allow, steps:[{id, uri, payload, depends_on}]}). urirun-flow is its Python (Pydantic) model; the same
builder→dict mapping is implementable in any typed language and emits the identical
YAML — exactly how the urirun connector SDKs stay in lockstep across languages.
js/urirun-flow.js is a runnable JS/TS emitter (typed via js/urirun-flow.d.ts) that
builds the identical flow contract. make conformance builds the same reference
flow in every language and asserts they agree — like make conformance for connector
bindings. Verified: 2/2 emitters agree (Python + JS).
License
Licensed under Apache-2.0.
Metadata
Release files for urirun-flow 0.3.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 | Provenance | Actions |
|---|---|---|---|---|
| urirun_flow-0.3.0.tar.gz | 122.3 kB | Without provenance | Details for urirun_flow-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| urirun_flow-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for urirun_flow-0.3.0-py3-none-any.whl |
Total release size: 228.1 kB
Release files / urirun_flow-0.3.0.tar.gz
| Download URL | urirun_flow-0.3.0.tar.gz |
|---|---|
| Size | 122.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00d4b99e8ff46552c28a097331bc8b54822d763bb2c7f69e5ea79da4830e998e
|
|
BLAKE2b-256 checksum How to use checksums |
d5c42c7a9e127cf78095956865ea4c0762d2bcbd4512ef14b11737e64b6afbd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / urirun_flow-0.3.0-py3-none-any.whl
| Download URL | urirun_flow-0.3.0-py3-none-any.whl |
|---|---|
| Size | 105.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efd438acdf26bb54bff6ee58aa42565e6de8f989c23513367502c0ba3138d7ba
|
|
BLAKE2b-256 checksum How to use checksums |
4468a95d18b3de088b8bd36d04bd37523f516b40e9b0ba4c0d8c04a384402a7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for urirun-flow 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.