Skip to main content

CLI library

Project description


Ashreach/ThLun


GitHub stars GitHub issues GitHub contributors

About

ThLun is a Python CLI library for stylish terminal output with ANSI colors, logging, progress bars, and spinners.

Preview

ThLun 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

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

thlun-0.1.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

thlun-0.1.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file thlun-0.1.0.tar.gz.

File metadata

  • Download URL: thlun-0.1.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for thlun-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e57471e6f1ac0732ac5e64316e50034155e9bd1b6165ab3b7ee742982e561aa9
MD5 0f92a693352b6ae87ddbca1c6ebb5885
BLAKE2b-256 0458c5a4769b7dd6dfb3a7aea3a49f5ef2145115fec948311814c331123b5167

See more details on using hashes here.

File details

Details for the file thlun-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: thlun-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for thlun-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6543b8454c35a0cbedfc65fc4a373955e9bc2ffba26f442338649f88d72cfa4f
MD5 65de2d27b8bc5f351851dc8a305f489c
BLAKE2b-256 5855323d50fd92d1eb742ab597ef116787329807b3a98251479f6ea6a8c98d52

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