Skip to the content.

Examples

Each directory is a program that demonstrates one part of casty. They all use the uv project of this directory, which installs the local version of casty from the root of the repository.

Requires uv, Python 3.12 or later and a Rust toolchain: on the first run, uv compiles casty. The commands start from the root of the repository, and each example runs with uv run inside its directory:

cd examples/00-hello-world
uv run main.py

The examples with several nodes start them all in the same process, each on a local TCP port, and stop them when they finish. 09-docker-cluster is the exception: it runs in containers and needs only Docker.