Catalog PyPI
PACKAGE EXPLORERView in registry

a3s-flow

PyPI

Python bindings for A3S Flow workflow engine

agentaiautomationdagworkflow
Versions collected1
Direct dependencies0From release 0.3.4
Last observed20 Oct, 16:41 UTC

README

Version 0.3.4 documentation

A3S Flow Python SDK

Python bindings for the A3S Flow workflow engine.

Installation

pip install a3s-flow

Quick Start

from a3s_flow import FlowEngine

# Create a flow engine
engine = FlowEngine()

# Define a simple workflow
definition = {
    "nodes": [
        {"id": "start", "type": "noop"},
        {"id": "process", "type": "noop"}
    ],
    "edges": [
        {"source": "start", "target": "process"}
    ]
}

# Start the flow
execution_id = engine.start(definition, {})

# Check the state
state = engine.state(execution_id)
print(f"Status: {state.status}")

# Pause and resume
engine.pause(execution_id)
engine.resume(execution_id)

# Terminate
engine.terminate(execution_id)

API Reference

FlowEngine

FlowEngine()

Create a new flow engine with default built-in nodes.

start(definition: dict, variables: dict = None) -> str

Start a new flow execution.

  • definition: Flow definition with "nodes" and "edges"
  • variables: Initial variables (optional)
  • Returns: Execution ID as a string

pause(execution_id: str)

Pause a running flow execution.

resume(execution_id: str)

Resume a paused flow execution.

terminate(execution_id: str)

Terminate a running flow execution.

state(execution_id: str) -> ExecutionState

Get the current state of a flow execution.

node_types() -> list[str]

List all registered node types.

ExecutionState

  • status: "running", "paused", "completed", "failed", or "terminated"
  • result: FlowResult (only present when status is "completed")
  • error: Error message (only present when status is "failed")

FlowResult

  • execution_id: Unique ID for this execution run
  • outputs: Per-node outputs, keyed by node ID
  • completed_nodes: IDs of all nodes that were processed
  • skipped_nodes: IDs of nodes that were skipped
  • context: Final snapshot of the shared mutable context

Development

Build from source

cd sdk/python
pip install maturin
maturin develop

Run tests

pytest

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.411 Mar 20260

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
a3s-lab/flow

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:41 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:5e0e9a0409f0947c1d7e241dc75e65610fb20d7d303a0c9998c467d156c3dbbb