Skip to main content

glorix

Glorix is a Python library written in Rust for rich text and beautiful formatting in the terminal.

Screehshots

Benchmark: Glorix vs Rich

Building glorix for Python

  1. Clone this repo
  2. Install Python (3.10+)
  3. Create a virtual environment - python3 -m venv env
  4. Activate the environment - . env/bin/activate
  5. Update pip if needed - pip install -U pip
  6. Install maturin - pip install -r requirements.txt
  7. Build the crate and python wrapper - maturin develop

The last step will compile the Rust crate and create a Python wheel and install glorix in the virtual environment.

Installing glorix from PyPi

  1. Install Python (3.10+)
  2. Create a virtual environment - python3 -m venv env
  3. Activate the environment - . env/bin/activate
  4. Update pip if needed - pip install -U pip
  5. Install glorix - pip install glorix

The last step will compile the Rust crate and create a Python wheel and install glorix in the virtual environment.

Usage

from glorix import print as lprint

lprint("Hello, [bold][underline yellow]World[/underline yellow][/bold]!")
lprint("Hello, [bold green]World[/bold green]! [italic red]This is italic red[/italic red].")
lprint("Hello, [i][b cyan]World[/b cyan][/i]! Color shoud be white")
lprint("Hello, [strike]World[/strike]!")
lprint("Hello, [i][b red][strike]World[/strike][/b red][i]! [s]Example for strike[/s]")

Metadata

Release files for glorix 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glorix 1.0.0
File Size Uploaded Provenance Actions
glorix-1.0.0.tar.gz 141.9 kB Without provenance Details for glorix-1.0.0.tar.gz

Release files / glorix-1.0.0.tar.gz

Download URL glorix-1.0.0.tar.gz
Size 141.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5f77f89766423e333d09ca969e0d01ee19f55f227c2e5ffab1bcc7ef63a6e3b5
BLAKE2b-256 checksum
How to use checksums
e0fe4a0480c712f8ee7d0875f88c44b2a5cd85dc9f97a27df242b4ae08af9326
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.7.1

Security for glorix 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page