The Python SDK for Tatolab streams. To get started, install the Tatolab app: see tatolab.com/docs/install
Actively maintained. Last release today, commits in 22 of the last 26 weeks. A safe choice.
pip install tatolab-streamREADME as published on PyPI with version 0.71.26.
tatolab-stream
The Python SDK for Tatolab, which turns cameras, microphones, screens, models and your own code into realtime streams that browsers, other streams and AI agents can read.
Looking to get started? Install the Tatolab app first, not this package.
tatolab-streamis the library you write streams with. It doesn't run them: the Tatolab runtime on your machine does, and it comes with the app.
- macOS (Apple silicon, macOS 26 or later):
brew install --cask tatolab/tap/tatolab, thenopen -a Tatolab- Linux (x86_64 with a Vulkan GPU):
curl -fsSL https://get.tatolab.com/install.sh | shThen follow the Quickstart.
tatolab newcreates a project that already depends on this package, so you rarelypip installit yourself.
What it is
A stream is an ordinary Python project. You write nodes as Python classes and connect them in a
function decorated @graph_generator:
from tatolab.camera import CameraSource
from tatolab.stream import StreamBuilder, graph_generator
from nodes.halftone_lens_effect import HalftoneLensEffect
@graph_generator
def main(stream_builder: StreamBuilder) -> None:
camera = stream_builder.add(CameraSource)
effect = stream_builder.add(HalftoneLensEffect)
stream_builder.connect(camera.output("video"), effect.input("video_from_upstream"))
CameraSource comes from the tatolab-camera module, a dependency the project adds like any
other. tatolab dev runs it in the runtime. Each node runs in its own process, so one slow node never
blocks another. Tato Studio's viewer shows any node's output on the machine, and the
tatolab-moq gateway nodes send one to a MoQ relay, where other streams and machines read it.
A generator may add another generator as it adds a node class, its keyword arguments the inputs
the inner generator promotes. The inner graph is stored as a fragment, whose GraphInput and
GraphOutput nodes are its ports, and it runs flattened under its path of names ().