Skip to main content

No project description provided

Project description

TurboTerm

⚡ A high-performance terminal styling and CLI toolkit for Python, written in Rust 🦀

Example output

Styled output, tables, and argument parsing — all three from a single Rust-backed import. TurboTerm covers 90% of CLI use cases in a single package and aims to provide the fastest possible performance with the smallest possible footprint.

Import time comparison

Performance vs Rich

Installation

pip install 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turboterm-0.1.2.tar.gz (86.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

turboterm-0.1.2-cp311-abi3-win_amd64.whl (274.2 kB view details)

Uploaded CPython 3.11+Windows x86-64

turboterm-0.1.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (349.7 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

turboterm-0.1.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (332.8 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

turboterm-0.1.2-cp311-abi3-macosx_11_0_arm64.whl (318.1 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

turboterm-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl (336.4 kB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file turboterm-0.1.2.tar.gz.

File metadata

  • Download URL: turboterm-0.1.2.tar.gz
  • Upload date:
  • Size: 86.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.4

File hashes

Hashes for turboterm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1744f21a0ce4a7ac9e7bdaba8e7a128b8d0798f6c033a5c0f586d1ca7c1d3911
MD5 c176d457f8bd8a76b5da1a07348738a8
BLAKE2b-256 0421fddec886fc3fd3ce2d05305c8cc1d15c84d3439081991575f258380a6c72

See more details on using hashes here.

File details

Details for the file turboterm-0.1.2-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: turboterm-0.1.2-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 274.2 kB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.4

File hashes

Hashes for turboterm-0.1.2-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5b9464984d0ecf7c585ae3962d1bdbc780e2ffac05baf7123e8185356f3d22ac
MD5 5810d4be7580dcc435d632279c24a3c7
BLAKE2b-256 eec79762bbe5fe9b2373c76c14e627bdf12075f8f46a6a35f652768b781d48fc

See more details on using hashes here.

File details

Details for the file turboterm-0.1.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for turboterm-0.1.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb7d029a4a51dd94c0a0974258ebfcd7bf3f08419c1023ed12069293066fdd7d
MD5 626c7578e9b37fee811beab0cc163df9
BLAKE2b-256 0d6ab7bc89fbc13795f5c23cf7e813508f1a3268ab68cd6ff597e141a161e04b

See more details on using hashes here.

File details

Details for the file turboterm-0.1.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for turboterm-0.1.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 673792f7b631c73c6c1d2a08849e119b53546e562f4852489ac2501b77a1129d
MD5 438000cef7bd43c1722a47c4ae213cfd
BLAKE2b-256 1adce6b71980be8d52ac7fcd36568643c740096fa65be2811a552dda6e985106

See more details on using hashes here.

File details

Details for the file turboterm-0.1.2-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for turboterm-0.1.2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f0e2f4d7a24c02a84bc7f4d9d191ee27ea0337405056bfa8da950705bd2df09
MD5 6da161eb3e5b20c8aed994fed91b9edd
BLAKE2b-256 b408e8510a2f07debd3b4d7446fb2c95022f91464d26e53d70a07e3d4bf0e79e

See more details on using hashes here.

File details

Details for the file turboterm-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for turboterm-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b772dfa09f76e096a38998cfbf502d1f5b187ef4f71803b9ea5491d1ff526107
MD5 7f16cf54e1ab13dc27dd5b39f8899683
BLAKE2b-256 44073c01106c9c7b821fc293164e5881336ad4b5cfc8e4fcaddb40476748b293

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page