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.0.tar.gz (18.0 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.0-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mizue-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fbb0b3eb111412b79820768daeee9e4e8c16afb731efe49820027e4de483190b
MD5 abd3ebc00ab5ddc813a9713477cea364
BLAKE2b-256 8cab720a57bb11a441f060c3983fd6d7e0a15d03fb1f529d93c5796c0c5ba7b9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mizue-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cd7596a84650de010cb73600af4415bb4627f6d811a910cc544f29097df8929
MD5 f28279c046083245e317a0fc8c3c2ee6
BLAKE2b-256 8ed6cf15e10d8ed68c221689ec57612646b6373d9a9344959f6282f5cf9b542b

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