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.1.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.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thlun-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 731a7a8fd77a6917ae6226209e4dd48fadb590d32c098a7b5807b025b29270e8
MD5 8bd0b16fa7b60a613d86d6ef9c171110
BLAKE2b-256 cbf99834ea0c28a9ad7e79fc2d3df4c13755447b433aefc13656dc622bb8182e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thlun-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b167adbf63a7b460bfe172509dda4d283b5e7ef726606af8fe240fc49c8d5b6
MD5 7cb4db5e62c9e0eff5d55a3989bed63f
BLAKE2b-256 ce3d1ecd860b801809dea1d4794b679190942fd787f825818bb7d9477f610476

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