π xos
June 5, 2026 Β· View on GitHub
A new standard library for python (π xpy π), it's cross-platform (+iosπ±) comes with built-in viewports (better than just matplotlib), audio drivers, pretrained ai models, optimized tensor compute operators/kernels, graphics primitives, text rasterization, networking, meshes, authentication, and more.
YouTube @xlateai β’ X/Twitter @xlateai β’ Discord xlateai β’ Docs xlate.ai/docs
π§ Release Status
- Current line:
v0.3.19-pre - Project maturity: roughly 30% toward v1.0
- APIs are actively evolving between prereleases
β‘ Quick Start
1) Prerequisites
- Rust toolchain: rustup.rs
Optional by target:
- Linux build/audio deps:
sudo apt-get update && sudo apt-get install -y pkg-config libasound2-dev - WASM:
rustup target add wasm32-unknown-unknown cargo install wasm-pack - iOS: macOS + Xcode + iOS device with Developer Mode
2) Install CLI
cargo build --release
cargo install --path src/crates/xos-cli --force
Installs xos, xpy, and xrs.
3) Run Something
xpy ./example-scripts/ball_lines.py
π§° Core Commands
xos -v
xpy <file.py>
xos app <python-app-name>
xrs <rust-app-subcommand>
xos compile
xos compile --wasm
xos compile --java
xos compile --ios
xos test
xos test --wasm
xos path
xos path --cli-exe
xpy <file>==xos py <file>xrs <subcommand>==xos rs-app <subcommand>xos compile --wasmoutputs bundle artifacts undertarget/wasm/main/
π± iOS
- Connect device by USB and enable Developer Mode
- Configure signing in
src/crates/xos-ios - Run:
xos rs-app ios_sensors --ios
π§ͺ Testing
- Native:
xos test - Browser/WASM:
xos test --wasm