Skip to main content

Lightweight terminal utilities

Project description

tooly

Lightweight terminal utilities for Python developers.

Installation

pip install tooly-dev

Usage

import tooly
import time

colors = tooly.ColorSystem() # recommended
wait_time = 0.5

print(colors.info("Welcome to Tooly!")) # Color example

tooly.typewrite(colors.info("Example text"), delay=0.05) # Typewrite example

with tooly.measure("Example measure"):
    # Do something
    time.sleep(wait_time)

with tooly.spinner("Example spinner", done_msg="Exaple spinner done"):
    #Do something
    time.sleep(wait_time)

text = "Some interesting text with keywords"
print(colors.highlight(text, ["keywords", "text"], "yellow")) # text, keywords, color

# You can use indent for file tree for exaple
print(colors.indent("Example folder/", 0))
print(colors.indent("Example python file", 1))
print(colors.indent("Example readme file", 1))
print(colors.indent("Example subfolder/", 1))
print(colors.indent("howtodoerrors.txt", 2))
print(colors.indent("Example file", 0))

License

MIT

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

tooly_dev-1.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

tooly_dev-1.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file tooly_dev-1.1.0.tar.gz.

File metadata

  • Download URL: tooly_dev-1.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for tooly_dev-1.1.0.tar.gz
Algorithm Hash digest
SHA256 126d2ed60e693fb011e480b23f99c453e5702a815e4ae62a9183ef0eb0a6a0f0
MD5 8b7d2af20917c12e6fc12883dd7024f2
BLAKE2b-256 cdb326dee02ad32d31b85914f2a66d6211185d92d792ede27c86e2052b5782b0

See more details on using hashes here.

File details

Details for the file tooly_dev-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tooly_dev-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for tooly_dev-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6acc6150ce74463bbb21efbd2d59e5b38abc43750391cc542eda72e3d315d9d9
MD5 f68d90996f36a6278bbb7710c6f4e938
BLAKE2b-256 a11d06987de96820c9198925f8f08dfd70343c884f55cd309b45be4bbf267116

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