Skip to content

Repository files navigation

TurboTerm

⚡ 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, click or typer.
  • 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.

Example

Example output

Benchmarks

Import time comparison

Performance vs Rich

Installation

pip install turboterm
# or
uv add turboterm

Quickstart

from 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.

Development

git clone https://github.com/valentinstn/turboterm.git
cd turboterm
uv run maturin develop

Running tests

uv run python -m unittest discover tests

Running benchmarks

uv run python scripts/benchmark.py    # full benchmark + regenerate charts

License

MIT License

About

The blazingly fast, oxidized CLI toolkit for Python. 10x faster than other tools, zero dependencies, sub-5ms import time.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages