Skip to main content

luminance

LuminanceCLI is a versatile Python library designed to enhance console interactions across a wide range of Python language versions.

Installation

  • Stable version:
git clone https://github.com/reslaid/luminance.git
  • Unreleased version:
git clone -b dev https://github.com/reslaid/luminance.git

Usage

from luminance import AnsiConsole

# Create an instance of AnsiConsole
console = AnsiConsole()

# Styling text
console.printf(
    "Hello, AnsiConsole!",
    style=[
        console.Styles.BOLD,
        console.Styles.UNDERLINE,
        console.Colors.Fore.GREEN,
        console.Colors.Back.WHITE
    ]
)

# Gradient printing
console.grd_printf(
    "Gradient Text",
    color1="#FF0000",
    color2="#00FF00"
)

# Get user input with styled prompt
user_input = console.inputf(
    "Enter something:",
    style=[
        console.Styles.BOLD,
        console.Colors.Fore.CYAN
    ]
)

# Get password input with styled prompt
password = console.passf(
    "Enter password:",
    style=[
        console.Styles.BOLD,
        console.Colors.Fore.YELLOW
    ]
)

# Clear the console
console.clearf()

# Set console title
console.titlef("My Console App")

Metadata

Release files for luminance 0.1.4

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

Source distribution (sdist)

Source distribution for luminance 0.1.4
File Size Uploaded Provenance Actions
luminance-0.1.4.tar.gz 6.9 kB Without provenance Details for luminance-0.1.4.tar.gz

Release files / luminance-0.1.4.tar.gz

Download URL luminance-0.1.4.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d4a95ae6c4ce19201f108cbbd19616176614297977c70b77795e5c0d64e05f08
BLAKE2b-256 checksum
How to use checksums
2ed5c6656c87e2ce48c2397923d25c5b57ee5d1b211863fe7cb9ed35bf1fe16d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for luminance 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file No provenance

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