Lox – Oxidized Astrodynamics
Lox is an MPLv2-licensed Rust astrodynamics library with first-class Python bindings for orbital mechanics, mission analysis, and telecommunications.
lox-space is the main entry point for both the Rust and Python APIs, re-exporting all
functionality from the Lox ecosystem through a unified interface.
Python Quick Start
# Parse a UTC epoch and convert to the TDB time scale
=
# Load Earth orientation parameters
=
# Design a sun-synchronous orbit at 800 km altitude with a 10:30 LTAN
=
# Convert to Cartesian state and propagate with J2 perturbations
=
=
=
Rust Quick Start
use *;
let epoch = from_iso.unwrap.to_time.to_scale;
let provider = new.from_path.parse.unwrap;
let sso = default
.with_provider
.with_time
.with_altitude
.with_ltan
.build
.unwrap;
// Convert to Cartesian state and propagate with J2 perturbations
let state = sso.to_cartesian;
let j2 = new;
let end = epoch + from_minutes;
let trajectory = j2.propagate.unwrap;
Installation
Python
# or
Rust
Features
- Orbital Mechanics — Keplerian elements, state vectors, SSO design, Vallado/J2/SGP4 propagation, TLE parsing
- Time Systems — TAI, TT, TDB, TCB, TCG, UTC, UT1; femtosecond precision, leap-second aware
- Reference Frames — ICRF, ITRF, TEME; CIO and equinox-based transformation chains
- Ground Stations — Visibility windows, elevation masks, pass prediction
- Constellation Design — Walker Delta/Star, Street-of-Coverage, Flower
- RF Link Budgets — Antenna patterns, modulation schemes, path loss
- Python Bindings — Full API with type stubs and NumPy interop
Documentation
- Python: https://python.lox.rs
- Rust: https://docs.rs/lox-space
Status
Lox is pre-1.0. The API may change between releases.
For more information, see the main repository.