Skip to main content

AceTeam workflow nodes for local execution

Project description

aceteam-nodes

PyPI version License: MIT Python 3.12+

AceTeam workflow nodes for local CLI execution. Run AceTeam workflows on your own machine with any LLM provider.

Install

pip install aceteam-nodes

Quick Start

# Run a workflow
python -m aceteam_nodes.cli run examples/hello-llm.json --input '{"prompt":"Explain AI in one sentence"}'

# List available nodes
python -m aceteam_nodes.cli list-nodes

# Validate a workflow file
python -m aceteam_nodes.cli validate examples/hello-llm.json

Configuration

Create ~/.ace/config.yaml to configure API keys and defaults:

default_model: gpt-4o-mini

Set your API key via environment variable:

export OPENAI_API_KEY=sk-...
# or
export ANTHROPIC_API_KEY=sk-ant-...

How It Works

Workflow JSON ──> AceTeamWorkflow (load + validate)
                       │
                       ▼
              workflow-engine (DAG execution)
                       │
                       ▼
              AceTeamNode.run() per node
                  │         │
                  ▼         ▼
              litellm    httpx/jinja2
            (100+ LLMs)  (API calls)
  1. A workflow JSON file defines nodes and their connections as a directed acyclic graph
  2. AceTeamWorkflow validates the file and resolves node references
  3. The aceteam-workflow-engine executes nodes in topological order
  4. Each node type implements run() — LLM nodes call litellm, API nodes use httpx, etc.
  5. Results flow through the graph until all outputs are produced

Available Nodes

Node Description
LLM AI text generation via litellm (100+ providers)
APICall HTTP requests with Jinja templating
TextInput Static text source
DataTransform Data transformation
CSVReader CSV data source
Equal, NotEqual, GreaterThan, LessThan, And, Or, Not Comparison/logic operators

Development

# Setup
uv sync --extra dev

# Test
uv run pytest

# Lint & format
uv run ruff check && uv run ruff format

# Type check
uv run pyright

# Build
uv build

Related

  • Ace CLI — TypeScript CLI that wraps this package for a streamlined user experience
  • Workflow Engine — The DAG execution engine used under the hood

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aceteam_nodes-0.3.1.tar.gz (125.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aceteam_nodes-0.3.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file aceteam_nodes-0.3.1.tar.gz.

File metadata

  • Download URL: aceteam_nodes-0.3.1.tar.gz
  • Upload date:
  • Size: 125.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for aceteam_nodes-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0027cc7a729620e057c6e310df34ecd6acaf33dfdda78725e6b84769e0e5fa51
MD5 660efb8f30823cdc4a9042708a5b3ac9
BLAKE2b-256 67817c202af8af381a85893abe34931c88e7a45b34f3b41284cceb89fd4529d7

See more details on using hashes here.

File details

Details for the file aceteam_nodes-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: aceteam_nodes-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for aceteam_nodes-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfe033ac260ca16e34dc4ef55afbada566fa8403fabcaba1d7292baab8141268
MD5 889b0fcc77540632d8b00bf2ea9cf602
BLAKE2b-256 cb1673160abbef33f18ebbcae75b2685d88c962ada60f19265acb601e3e9cf2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page