Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

🎨 Fluxura - A Styler For Terminal Outputs 🖌️

⚠️ FLUXURA IS IN THE ALPHA STAGE OF DEVELOPMENT, EXPECT BUGS ⚠️

Current Stage: v0.1.1-alpha0

GitHub License GitHub last commit PyPI - Downloads

Fluxura is a Python library that provides terminal styling and coloring options for enhancing the appearance of command-line applications. With support for text styles like bold, italic, underline, and strikethrough, as well as foreground and background colors (including custom RGB colors), Fluxura gives the power to customize the look of terminal output with ease.

🔦 Features

  • Text Styles: Apply styles like BOLD, ITALIC, DIM, UNDERLINE, and STRIKETHROUGH to terminal text.
  • Colors: Choose from predefined color options for foreground and background text colors.
  • Custom RGB Colors: Set custom RGB background colors for a more personalized look.
  • Gradient (hoping to develop): Apply gradients to text using two colors.
  • Simple API: Easy-to-use functions for styling and coloring text in the terminal.

📦 Installation

You can install Fluxura using pip from PyPI.

From PyPI:

pip install fluxura

4. Example Usage:

Once installed, you can start using Fluxura to style terminal text.

```python
from fluxura import Color, Style, flux

# Example 1: Apply bold and red color to text
print(flux("Hello, World!", Style.BOLD, Color.fore.RED))

# Example 2: Apply italic and blue color to text
print(flux("This is a test!",  Style.ITALIC, Color.fore.BLUE))

# Example 3: Use a custom RGB background color
print(flux("Custom background colour!",  Style.ITALIC, Color.Back.CUSTOM(255, 165, 0)))

# Example 4: Combine multiple styles and colors
print(flux("Bold, underlined, and green text",  Style.BOLD, Style.UNDERLINE, Color.Fore.GREEN))

For more examples, check test_fluxura.py in the tests folder.

🎨 Customization

Fluxura can customize the foreground and background colors using built-in colors or by specifying RGB values. It can also customise the styles of the text in multiple ways.

  • Colours

    • Predefined colors:
      • Classic Variants: BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE.
      • Light Variants: LIGHT_BLACK, LIGHT_RED, LIGHT_GREEN, LIGHT_YELLOW, LIGHT_BLUE, LIGHT_MAGENTA, LIGHT_CYAN, LIGHT_WHITE.
    • To use a custom RGB color, pass the RGB values to the Color.____.CUSTOM() method like this:
      Color.Fore.CUSTOM(255, 165, 0)  # RGB values for orange foreground
      Color.Back.CUSTOM(255, 165, 0)  # RGB values for orange backgroun
      
  • Styles!

    • Style Variants: BOLD, BRIGHT, DIM, ITALIC, STRIKETHROUGH

🔨MANY MORE FEATURES ARE EXPECTED TO COME SOON🔨


Banner Broothers Logo (White) Banner Broothers Logo (Black)

Metadata

Release files for fluxura 0.1.1a2

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

Source distribution (sdist)

Source distribution for fluxura 0.1.1a2
File Size Uploaded
fluxura-0.1.1a2.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fluxura 0.1.1a2
File Interpreter ABI Platform
fluxura-0.1.1a2-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / fluxura-0.1.1a2.tar.gz

Download URL fluxura-0.1.1a2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
879b2d94487c95920d5b22f4a4e491f6bd53bf1abb88555c552c1dfc87c1f23c
BLAKE2b-256 checksum
How to use checksums
9842c440110f8bc8adb0bf633380cddd96f1694c5a3bb2c7b340ed762a66bbc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / fluxura-0.1.1a2-py3-none-any.whl

Download URL fluxura-0.1.1a2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ec3c84996cd4ace3d3c891bc9db797cb175444524e8d51eec6df2fda01ae342
BLAKE2b-256 checksum
How to use checksums
f8e2cd361fe6446411e78af10454c0db2916bf5457de41692bf2f165d77eb6ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3
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