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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mizue-0.2.9.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.9.tar.gz
Algorithm Hash digest
SHA256 76915f43d2df865f2cb8cf2f59e12403f1456db2bc73e934ced7c2cde043a016
MD5 5a9ec37dfd9dd2c053cf8de5fc354f5b
BLAKE2b-256 05f26e61406b7a44ea671ff9553bb2a722a967dda7a3ab49fa6f1125e86a4d63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mizue-0.2.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6dcebeb63b7ea52298914059acba938ef2bc5883fddd55bb851e95c58ca78529
MD5 61020e38adc33f1c250e314c8bfaa66d
BLAKE2b-256 b19bb0f7a99332cca74edbdf4561d4512b15f16b0334f622d244b138f897ca57

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