No project description provided
Project description
glorix
Glorix is a Python library written in Rust for rich text and beautiful formatting in the terminal.
Screehshots
Building glorix for Python
- Clone this repo
- Install Python (3.10+)
- Create a virtual environment -
python3 -m venv env
- Activate the environment -
. env/bin/activate
- Update pip if needed -
pip install -U pip
- Install maturin -
pip install -r requirements.txt
- 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
- Install Python (3.10+)
- Create a virtual environment -
python3 -m venv env
- Activate the environment -
. env/bin/activate
- Update pip if needed -
pip install -U pip
- 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]")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
glorix-1.0.0.tar.gz
(141.9 kB
view details)
File details
Details for the file glorix-1.0.0.tar.gz
.
File metadata
- Download URL: glorix-1.0.0.tar.gz
- Upload date:
- Size: 141.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f77f89766423e333d09ca969e0d01ee19f55f227c2e5ffab1bcc7ef63a6e3b5 |
|
MD5 | 8040828910ead31a672474b247ca10c3 |
|
BLAKE2b-256 | e0fe4a0480c712f8ee7d0875f88c44b2a5cd85dc9f97a27df242b4ae08af9326 |