Skip to main content

colorful print command

Project description

Simple print wrapper to add color support to python's print function.

from prozt.prozt import prozt as print

Table of Contents

prozt

prozt

Simple print wrapper to add color support to python using ANSI color codes

prozt

def prozt(*values: object,
          sep: str | None = " ",
          end: str | None = "\n",
          file=None,
          flush: Literal[False] = False,
          fg_color: str | None = None,
          bg_color: str | None = None,
          style: str | None = None) -> None

Print the values to the console with ANSI color support!

Arguments:

  • sep str | None, optional - string inserted between values, default a space.
  • end str | None, optional - string appended after the last value, default a newline.
  • file type, optional - a file-like object (stream), defaults to the current sys.stdout.
  • flush Literal[False], optional - whether to forcibly flush the stream.
  • fg_color str | None, optional - ANSI Code for Foreground color of the text. Use colorama.Fore for simple colors.
  • bg_color str | None, optional - ANSI Code for Background color of the text. Use colorama.Back for simple colors.
  • style str | None, optional - ANSI Code for Style of the text. Use colorama.Style for simple colors.

prozt_rainbow

def prozt_rainbow(*values: object,
                  sep: str | None = " ",
                  end: str | None = "\n",
                  flush: Literal[False] = False)

Print something to the console in style.

Arguments:

  • sep str | None, optional - string inserted between values, default a space.
  • end str | None, optional - string appended after the last value, default a newline.
  • file type, optional - a file-like object (stream), defaults to the current sys.stdout.
  • flush Literal[False], optional - whether to forcibly flush the stream.

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

prozt-0.0.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prozt-0.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file prozt-0.0.3.tar.gz.

File metadata

  • Download URL: prozt-0.0.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for prozt-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b2303ba35632f3722624f8fdd3c6ca58180e0408bdcf8f8bdbf87283d9fafc2a
MD5 0afae6acdcc0d30c7757c92d844bbc95
BLAKE2b-256 5baa65ec6614b16e4f1b446c782211b22bc420be987d728515c39cdda465e76f

See more details on using hashes here.

File details

Details for the file prozt-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: prozt-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for prozt-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d228d49e2434c4710e41555fcea32acd20d0d0d64fdd3471548e30bb42fe7188
MD5 54bce61b01096191c0743757768c229e
BLAKE2b-256 74b4ef8c9d318bd7ff58b5251ffcb3dca802bd0c557d8aefe0acc98757ce86af

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