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.11.tar.gz (17.6 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.11-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mizue-0.2.11.tar.gz
  • Upload date:
  • Size: 17.6 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.11.tar.gz
Algorithm Hash digest
SHA256 fe591f7c8ff5f7e6c130ecdc6774e9b611de9dbc2fc5b00b07c0f1b3df2d6e49
MD5 d61d6f77f909eda1c98d61a2222a6e53
BLAKE2b-256 e683118a14631970758940060dfd01e60ef0823eb1d2c772e167ec2dd00688f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mizue-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 24.5 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 7711717cdcb4dad4aac2cdaed3c6a10746a9a1c137b1bd3b622e215c54ccacec
MD5 2fac5ac39410a2d0c68b1a7be11a7262
BLAKE2b-256 3930c8f2fc7715e75db0ebcceac83b2826310ca3421780d5a2bc645410a464f9

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