Skip to main content

Hueprint

Summary

Hueprint is a simple package that allows the usage of colour and text effects in Python console applications.

Data Types

The package introduces two simple enums: EColour and EEffect.

Functions

  • cprint: allows using EColour and EEffect for easy text style customization.
  • sprint: "success" style; green, no effect.
  • eprint: "error" style; red, no effect.
  • wprint: "warning" style; yellow, no effect.
  • nprint: "notification" style; blue, no effect.
  • iprint: a wrapper to the pprint function (from the pprint package).

Example

cprint is the only function that differs from print in terms of number or arguments required, so this example will focus on that:

    from hueprint import cprint
    from hueprint.types import EColour, EEffect

    text = "Hello, World!"
    colour = EColour.CYAN
    effect = EEffect.ITALIC

    cprint(text, colour, effect)  # This will print the specified text in cyan and italic.

Metadata

Release files for hueprint 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hueprint 1.0.1
File Size Uploaded
hueprint-1.0.1.tar.gz 4.2 kB Details

Release files / hueprint-1.0.1.tar.gz

Download URL hueprint-1.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
831123e73308f43e04d57ce35d2dc04964635f5093672553ee5f20ab83ab6772
BLAKE2b-256 checksum
How to use checksums
ddb1dc83717e7c5914b29df5b0c565fb514b755344303ab0da28684c5d243442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page