- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · runs shell
- What's inside
The option
| Option | AConfig · v0.43.0Apache Burr core state machine |
|---|---|
| How you use it | A setting in your project |
| What it can do | installs software · writes files · network · runs shell |
| What's inside |
What this thread does
Do first: Install the core framework in a virtual environment, then run the state and application checks below.
What it is
Apache Burr connects Python functions into state machines.
Use it when
Use it to express application decisions and transitions in Python.
Not for
Burr does not tell you how to query model APIs or manage your data; it helps tie these together.
Install
1. PREREQUISITE: Python >=3.9, as specified by apache-burr on PyPI. 2. In an empty working directory:
Our recipe (not an upstream command):
python3 -m venv .venv && .venv/bin/python -m pip install apache-burr==0.43.0
Registry record for the pinned version: PyPI apache-burr 0.43.0.
Check
The first check updates a State value while retaining the original value.
Our recipe (not an upstream command):
.venv/bin/python -c 'from burr.core import State
s = State({"count": 1})
t = s.update(count=2)
assert s["count"] == 1 and t["count"] == 2
print("immutable state update: OK")'
The second check builds an application whose Result action returns a value from state.
Our recipe (not an upstream command):
.venv/bin/python -c 'from burr.core import ApplicationBuilder
from burr.core.action import Result
app = ApplicationBuilder().with_actions(result=Result("count")).with_state(count=2).with_entrypoint("result").build()
assert app.run(halt_after=["result"])[1] == {"count": 2}'
Limits
The core install supplies the framework; CLI and tracking/UI dependencies are separate extras.
These checks exercise state mechanics and a result action, rather than model responses.
Sources
- Apache Software Foundation: Burr overview, installation, State implementation, Result action.
- PyPI / Apache Burr maintainers: package metadata.
- Apache Software Foundation: 0.43.0-incubating release.
- License file at the pinned commit
Started from a post by @apache, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.