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.3.tar.gz (23.0 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.3-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thlun-0.1.3.tar.gz
  • Upload date:
  • Size: 23.0 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.3.tar.gz
Algorithm Hash digest
SHA256 e0f148116df821f0c7d7b71f561f2e13a9f6cface38f5635b44490851bdbc335
MD5 e9d46f8266cdf99e943521965ba01d44
BLAKE2b-256 86a318c433dd5037321294f85233494d1f0ea20234145ef715e995b4898ea8ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thlun-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.2 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 acd8090037be9dc7e079bba48bef9a4265b649ec1056298390bb46385f0fa660
MD5 da93eee3eb474d70ce05686d4dccc7dd
BLAKE2b-256 93e777d293df0b5ea57985d9328e028bbce07cbc02c3fb6a7ce2a693d0a7ba42

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