semvec/pypi-packages huggingface dataset:
aibrix 0.5.0
AIBrix, the foundational building blocks for constructing your own GenAI inference infrastructure.
License: Apache-2.0
Requires Python: <3.13,>=3.10

# AI Runtime
A versatile sidecar enabling metric standardization, model downloading, and management.

## Quick Start
### Installation
AI Runtime can be installed by `pip`.

```sh
pip install aibrix
```

### Model download
The AI Runtime supports model downloading from the following storage backends:
* HuggingFace
* S3
* TOS

For more details on model downloading, please refer to our [Runtime docs](https://github.com/vllm-project/aibrix/blob/main/docs/source/features/runtime.rst#model-downloading).

### Integrate with inference engines
The AI Runtime hides various implementation details on the inference engine side, providing a universal method to guide model management, as well as expose inference monitoring metrics.

At present, `vLLM` engine is supported, and in the future, `SGLang` and other inference engines will be supported.

For more details on integration with `vLLM`, please refer to our [Runtime docs](https://github.com/vllm-project/aibrix/blob/main/docs/source/features/runtime.rst#metric-standardization).

## Contributing
We welcome contributions from the community! Check out our [contributing guidelines](https://github.com/vllm-project/aibrix/blob/main/CONTRIBUTING.md) to see how you can make a difference.

### Build from source

```bash
# This may take several minutes
pip install -e .
```

### Lint, Format and Type Check

Before contributing your code, please run the following commands to ensure that your code passes the tests and linting checks.

```bash
# install dependencies
poetry install --no-root --with dev

# linting, formatting and type checking
bash ./scripts/format.sh
```

## License

AI Runtime is licensed under the [APACHE License](https://github.com/vllm-project/aibrix/LICENSE.md).
img2hbirc 1.0.1
Image to Half-block ANSI art with IRC color codes.
License: Apache-2.0
Requires Python: >=3.9

# img2hbirc

Image to Half-block ANSI art with IRC color codes.

# Installation

## As a CLI app

```
pipx install img2hbirc
```

## As a module

```
pip install img2hbirc
```

# CLI Usage

Simply convert using

```
img2hbirc image.png
```

Output will look weird in terminal, so you can also put it in a file

```
img2hbirc -o image.txt image.png
```

Then you can upload it so an IRC bot can output it.

Flags:
- `--nearest -n` uses nearest neighbor to resize the image. (useful if antialiasing makes the output look bad)
- `--posterize -p` uses 4-bit posterization on the image. (useful if the image has a lot of different colors)
- `--legacy-palette -l` uses the legacy 16-color mIRC color palette instead of the 84 other colors.
- `--width <int> -s <int>` set the width of the image (default: 64), a high number might cause the IRC network to truncate your message.

# Module usage

## Convert RGB color to IRC control code

```python
from img2hbirc import rgb2irc

# Regular way
print( rgb2irc(255, 0, 0) )

# mIRC palette
print( rgb2irc(255, 0, 0, legacy=True) )
```

You only get the color number as a string, so you have to embed it like

```python
f"\x03{rgb2irc(255, 0, 0)}This text is red!\x01"
```

## Convert Image

```python
from img2hbirc import convert
from io import BytesIO

print( convert("path") )

# The path can be anything Pillow supports, so BytesIO works as well
print( convert(BytesIO(b"....")) )

# With all the default values included
print(
    convert(
        "path",
        nearest=False,
        post=False,
        legacy=False,
        size=64
    )
)

# Works the same way the CLI does, I don't need to document the parameters again.
```