Skip to main content

A Python package for various utilities

Project description

A simple package containing various command-line utilities.

Installation

  pip install mizue

Usage

Printer

from mizue.printer import Printer, TerminalColors as Color

Printer.print_ansi("Hello World!")
Printer.print_ansi("Hello World!", Color.RED)
Printer.print_ansi("Hello World!", Color.RED, bold=True, underlined=True)

The Printer class is a simple wrapper around the print function. It allows you to print colored text to the terminal. The TerminalColors class contains a list of colors that can be used with the Printer class. The Printer class also provides the following methods:

from mizue.printer import Printer, TerminalColors as Color
Printer.error("Hello World!")
Printer.warning("Hello World!")
Printer.success("Hello World!")
Printer.info("Hello World!")

It is possible to prevent the new line character from being printed at the end of the line:

from mizue.printer import Printer, TerminalColors as Color

Printer.prevent_newline(True)
Printer.print_ansi("Hello World!", Color.RED)

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

mizue-0.2.13.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

mizue-0.2.13-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file mizue-0.2.13.tar.gz.

File metadata

  • Download URL: mizue-0.2.13.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for mizue-0.2.13.tar.gz
Algorithm Hash digest
SHA256 5182b5335807cb4a6a584eb6a4d682c2fc12000eb1d92a061c6e5befb0c5e9c1
MD5 bb37fdce570f5fc8d17500dcf366a06e
BLAKE2b-256 6c5daebf8fdbd53ae28043d67dc2e15ad18ee84445273f3537dc9d7039a004ad

See more details on using hashes here.

File details

Details for the file mizue-0.2.13-py3-none-any.whl.

File metadata

  • Download URL: mizue-0.2.13-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for mizue-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 3554f29fb3159252b803d81e13234472f27d8a0600b6c6f8de9e50c0bbfc40d4
MD5 6a4d54cfb33d40095b8491241c80740b
BLAKE2b-256 d3f791205f7c4bba704b41c68824cf65c339005b8b8dd2c39cc662c819431bb0

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