semvec/pypi-packages huggingface dataset:
class-interference 1.1.1
Monkey patching utilities for classes
License: MIT
Requires Python: >=3.8,<4.0

# class-interference

Monkey patching utilities for classes.

## Installation

```shell
pip install class-interference
```

# Usage example

```python
from class_interference import Extension, inject, apply_extensions


class LibraryClass:
    def library_method(self, *args, **kwargs):
        return None


class LibraryClassExtension(LibraryClass, Extension):
    @inject
    def library_method(self, *args, **kwargs):
        original_value = self.super_ext.library_method(*args, **kwargs)
        if original_value is None:
            raise ValueError
        return original_value


apply_extensions(LibraryClassExtension)

if __name__ == "__main__":
    library_class_instance = LibraryClass()
    library_class_instance.library_method()  # raises ValueError

```
luminance 0.1.4
Luminance is a library for working with user output and console input
License: MIT

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

# Installation
- **Stable version:**
```bash
git clone https://github.com/reslaid/luminance.git
```

- **Unreleased version:**
```bash
git clone -b dev https://github.com/reslaid/luminance.git
```

## Usage
```python
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")
```