About
ThLun is a Python CLI library for stylish terminal output with ANSI colors, logging, progress bars, and spinners.
Preview
Installation
pip install thlun
Quick Start
from ThLun import bprint, Logger, ProgressBar, Spinner, Spinners
import time
# Basic colored output
bprint("[GREEN]Hello world...[RESET]")
# Logging with levels
logger = Logger('DEBUG')
logger.info("Application started")
logger.error("Something went wrong")
# Progress bar
progress = ProgressBar(total=100)
for i in range(100):
progress.update(i + 1)
time.sleep(0.01)
# Spinner for loading
spinner = Spinner(Spinners.dots)
spinner.start("Loading...")
time.sleep(2)
spinner.stop()
Features
- ANSI Colors: Full color support with Fore, Back, and Style classes
- IO Module: Enhanced printing with color and style support
- Logger: Multi-level logging with colored output
- Progress Bars: Visual progress indicators
- Spinners: Loading animations with customizable styles
- Screen Control: Clear screen and cursor positioning
Colors
Release files for thlun 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| thlun-0.1.3.tar.gz | 23.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| thlun-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.1 kB
Release files / thlun-0.1.3.tar.gz
| Download URL | thlun-0.1.3.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0f148116df821f0c7d7b71f561f2e13a9f6cface38f5635b44490851bdbc335
|
|
BLAKE2b-256 checksum How to use checksums |
86a318c433dd5037321294f85233494d1f0ea20234145ef715e995b4898ea8ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / thlun-0.1.3-py3-none-any.whl
| Download URL | thlun-0.1.3-py3-none-any.whl |
|---|---|
| Size | 21.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acd8090037be9dc7e079bba48bef9a4265b649ec1056298390bb46385f0fa660
|
|
BLAKE2b-256 checksum How to use checksums |
93e777d293df0b5ea57985d9328e028bbce07cbc02c3fb6a7ce2a693d0a7ba42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|