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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mizue-0.2.12.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.12.tar.gz
Algorithm Hash digest
SHA256 2e8e06b882b53b608f0d959a52d123e72dd13fcfe6e1ae6ed99840513b9a6b67
MD5 6daa45d6facb7c4fce055b8b5be2e53e
BLAKE2b-256 d296818e464ca1c1e57a7b56d67f5cc8aa91a5e2ae2d8c39f949d82e221023f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mizue-0.2.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 eb99fb0a6b83fe550266a7ed8af4b4a1533ad55cdd3e26fb3bb6c9fda07714be
MD5 88e794c38aea28219adfa2f269caf5f0
BLAKE2b-256 ddc55b065c6097269ea5cc23f9441e4cee67e3231b5029fe9d2c726e9ead0df6

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