Skip to main content

CLI library

Project description

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.2.tar.gz (23.2 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.2-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for thlun-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f55aac1965f70787b44e47ac28e14e80ef7ff48444b328f42714236cc6cd706f
MD5 6aeb3cfa98e45365279adc7ab9ac6e8a
BLAKE2b-256 bb2473f09b24e48960f59f5e0018abd32117802e1708cd2caf470c7043c63434

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for thlun-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b8d01de02bb22869812638f2030883b5e4cc3730469b3e79716dce7caf04e26
MD5 988e4d65cc4609c2f5dec555a8b0e919
BLAKE2b-256 d889d3c250f62db0986e9d864844bfc1c54c07fe1e8e31ab5996b538927675b2

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