⚡ A high-performance, ultra-concise CLI and styling toolkit for Python, written in Rust 🦀
TurboTerm is minimal and efficient by all means:
- Less code: Concise CLI syntax, ~50% less lines of code compared to Python's argparse.
- Faster import: Lightweight import and loading times, multiple times faster than
rich,clickortyper. - Faster runtime: Every formatting/rendering logic is implemented in Rust, and optimized for performance.
- No additional dependencies: TurboTerm is installed as a single wheel, without depending on any other Python package.
- No feature bloat: TurboTerm focuses on the essentials: Decorators for minimal CLI, styled output, tables, and argument parsing.
pip install turboterm
# or
uv add turbotermfrom turboterm import console
from turboterm.cli import Option, command, run
@command
def greet(
name: str = Option(["--name", "-n"], default="World"),
):
"""Greet someone."""
console.print(f"[bold]Hello, {name}![/bold]")
if __name__ == "__main__":
run()python app.py --name Alice
# Hello, Alice!
python app.py --help
For the full API reference see USAGE.md.
git clone https://github.com/valentinstn/turboterm.git
cd turboterm
uv run maturin developuv run python -m unittest discover testsuv run python scripts/benchmark.py # full benchmark + regenerate chartsMIT License
