🐍 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

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 --wasm outputs bundle artifacts under target/wasm/main/

πŸ“± iOS

  1. Connect device by USB and enable Developer Mode
  2. Configure signing in src/crates/xos-ios
  3. Run: xos rs-app ios_sensors --ios

πŸ§ͺ Testing

  • Native: xos test
  • Browser/WASM: xos test --wasm

πŸ“š Docs