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.4.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.4-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mizue-0.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 c31567c67be1370ec559b470077f7e8740c3f8ac80d4cd8787cebba439dbfd38
MD5 93f4583a6d52a956e64558ce71626d1b
BLAKE2b-256 6a177e96050affee3e886a1bf7f1a65cd9826959d8256306c4d5a6ccf953482e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mizue-0.2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 23ef28d81ba1bbb8fba62e6127c407df0abba4946a7e5bb1bbfd1d4020395365
MD5 4ba15d793a28312c167135781cd4c4ca
BLAKE2b-256 68ae377d7b59b185c7254323ea06e49bdf5a33979d158cb4766a8f22954fd28c

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