Installation
StreamBlocks requires Python 3.13 or later.
Package name vs. import name
The package is installed as streamblocks but imported from the hother namespace:
Provider extras
The core library has no provider dependencies. Install extras for the providers you use:
| Extra | Enables |
|---|---|
gemini |
Google Gemini input adapter (google-genai) |
openai |
OpenAI input adapter (openai) |
anthropic |
Anthropic Claude input adapter (anthropic) |
all-providers |
All of the above |
structlog |
structlog logging integration |
loguru |
Loguru logging integration |
examples |
Dependencies for running the bundled examples |
Development install
To work on StreamBlocks itself or run the examples from a clone:
To build the documentation you also need the d2 diagram renderer (brew install d2).
Next step
Continue with the Quickstart.