A state machine for data projects
Project description
Burr
What is Burr?
Burr is a state machine for data/AI projects. You can (and should!) use it for anything where managing state can be hard. Hint: managing state is always hard!
Link to documentation.
Burr is:
- A (dependency-free) python library that enables you to build and manage state machines with simple python functions
- A server that can run your state machines and provide a UI to track execution/debug
What can you do with Burr?
Burr can be used for a variety of applications. Burr can build a state machine to orchestrate, express, and track:
And a lot more!
Using hooks and other integrations you can (a) integrate with any of your favorite vendors (LLM observability, storage, etc...), and (b) build custom actions that delegate to your favorite libraries.
Burr will not tell you how to build your models, how to query APIs, or how to manage your data. It will help you tie all these together in a way that scales with your needs and makes following the logic of your system easy. Burr comes out of the box with a host of integrations including tooling to build a UI in streamlit and watch your state machine execute.
Why the name Burr?
Burr is named after Aaron Burr, founding father, third VP of the United States, and murderer/arch-nemesis of Alexander Hamilton. We imagine a world in which Burr and Hamilton lived in harmony and saw through their differences. We originally built Burr as a harness to handle state between executions of Hamilton DAGs, but realized that it has a wide array of applications and decided to release it.
Getting Started
``
To get started, install from pypi
, using your favorite package manager:
pip install "burr[start]"
This includes the dependencies for the tracking server (see next step) -- alternatively if you want the core library only then just run pip install burr
.
Then, run the server and check out the demo projects:
$ burr
2024-02-23 11:43:21.249 | INFO | burr.cli.__main__:run_server:88 - Starting server on port 7241
This will start a server and open up a browser window with a few demo projects preloaded for you to play with.
Next, see the documentation for getting started, and follow the example. Then read through some of the concepts and write your own application!
Roadmap
While Burr is stable and well-tested, we have quite a few tools/features on our roadmap!
- Various efficiency/usability improvements for the core library (see planned capabilities for more details). This includes:
- Fully typed state with validation
- First-class support for retries + exception management
- More integration with popular frameworks (LCEL, LLamaIndex, Hamilton, etc...)
- Cloud-based checkpointing/restart (save state to db and replay/warm start, backed by a configurable database)
- Tooling for hosted execution of state machines, integrating with your infrastructure (Ray, modal, FastAPI + EC2, etc...)
If you want to avoid self-hosting the above solutions we're building Burr Cloud. To let us know you're interested sign up here for the waitlist to get access.
Contributing
We welcome contributors! To get started on developing, see the developer-facing docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file burr-0.4.0rc2.tar.gz
.
File metadata
- Download URL: burr-0.4.0rc2.tar.gz
- Upload date:
- Size: 259.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 082620ebcc2f5fe46af51737a7a9bab538cc810aa39bd48af5b0633b8ddf702e |
|
MD5 | ff7289968ef92b0c9e920fe09578557c |
|
BLAKE2b-256 | 34500db0e5a9428e44795ff403373ce8894c9c0a95a5bb198d87ef954f3c958d |
File details
Details for the file burr-0.4.0rc2-py3-none-any.whl
.
File metadata
- Download URL: burr-0.4.0rc2-py3-none-any.whl
- Upload date:
- Size: 153.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ef112e7c699548d32e51a087775cca40c9bcf73ca0c04ddb0ca52b0781382cc |
|
MD5 | 83d9db8ca262dd463b2cf430aeb8b253 |
|
BLAKE2b-256 | 01b02166782003e0b88e58ba4aeb96c10f2b6f6fa1558f18a6eeab7421d35f43 |