semvec/pypi-packages huggingface dataset:
chat-tools 3.2
Tools for human-machine interaction based on large language models.
Requires Python: >=3.10
Keywords: Large Language Models, Artificial Intelligence, DeepSeek, Genimi, OpenAI

# chattools

The most simple tool for AI chat, such as gemini, deepseek, ollama

plz save the API keys in `.env.key` file in the current path.

## Example

run `python path/to/test.py` (deepseek)



run `python path/to/test-mistral.py`  to utilize mistral AI.


## Make CLI

create ollama-chat.py
```python
#!/usr/bin/env python3

# default model is `gpt-oss:120b`

from chat_tools import OllamaChat

description="Intelligent enough to help me for anything."
name="Asistant"

with OllamaChat(description=description, name=name) as chat:
    chat.run()
```

run `chmod` dommand and `ollama-chat.py`


## Code


```python
# import YourLLM API 
from mixin import ChatMixin
from utils import get_api_key

# api_key = get_api_key


class YourChat(ChatMixin, YourLLM):

    def __init__(self, description=None, history=[], name='Assistant', model="model-name", *args, **kwargs):
        super().__init__(api_key=api_key, *args, **kwargs)  # init method of super class
        self.description = description
        self.name = name
        self.model = model
        self.chat_params = {}

        self.history = history

    def _reply(self, messages, max_retries=100):
        """The wrapper method of the original `chat` method
        """

        k = 0
        while True:
            # try `max_retries` times
            try:
                """
                get the response of the model. such as 
                self.chat.completions.create(
                        model=self.model,
                        messages=messages,
                        **self.chat_params)
                """
            except:
                ...

```

## Commands

register a command as follows
```
from chat_tools.commands import Commands

@Commands.register("read")
def read_history(obj, path):
    # obj.history = read from `path`
    pass
```

use the command in the chat as `!read path`

---

![](pic.jpg)
ay-math 0.0.1
A small mathematics package that allow to solve the different mathematics operation such as area of circle,square,traiangle
Requires Python: >=3.1
Keywords: area of square, area of traiangle, area of circle, add two number

# My Library
This library provides simple math operations.

## Installation
pip install ay_math

## Usage
from ay_math.main import add
print(add(90, 10))
ascii-art-maker 0.8.0
A powerful ASCII art generator with CLI and importable API.
Requires Python: >=3.7

# ASCII Art Maker

A powerful ASCII art generator for terminal and Python projects.

## Features
- Text to ASCII art with font and color
- Gradient colors
- Image → ASCII (Pillow)
- Auto font suggestion
- Animated ASCII text
- Interactive menu mode
- Config file (.asciirc)
- Custom ASCII character sets
- True color (24-bit) support
- Export to HTML, SVG, PNG
- Batch processing
- Zoom and pan for large ASCII art
- ASCII watermarking
- ASCII math formula rendering (LaTeX)

## Installation
```bash
pip install .
```

## Usage
### CLI
```bash
ascii-art-maker "Hello World" --font slant --color cyan --gradient
ascii-art-maker --image path/to/image.png
ascii-art-maker --interactive
```

### Python API
```python
from ascii_art_maker import generate_ascii, gradient_ascii, image_to_ascii
print(generate_ascii("Hello World", font="slant"))
print(gradient_ascii(generate_ascii("Hello")))
print(image_to_ascii("image.png"))
```

## Advanced Features
```python
from ascii_art_maker import set_custom_charset, truecolor, export_ascii_html, export_ascii_svg, batch_process, zoom_ascii, pan_ascii, watermark_ascii, latex_to_ascii
set_custom_charset(["#", " "])
print(image_to_ascii("image.png"))
set_custom_charset(None)
print(truecolor("Hello", (255,0,0)))
print(export_ascii_html("ASCII ART", color="red"))
print(export_ascii_svg("ASCII ART", color="#ff0000"))
print(batch_process(["Hello", "World"], generate_ascii))
print(zoom_ascii("ASCII ART", factor=2))
print(pan_ascii("ASCII ART", x=0, y=0, width=10, height=2))
print(watermark_ascii("ASCII ART", "WATERMARK"))
print(latex_to_ascii("x^2 + 1"))
```

## Testing
```bash
python -m unittest discover tests
```

## License
MIT