Metadata-Version: 2.5
Name: ageha
Version: 0.1.0
Summary: A Python toolkit with shared chat and multi-provider TTS interfaces.
Project-URL: Homepage, https://github.com/IceyWu/ageha-python
Project-URL: Repository, https://github.com/IceyWu/ageha-python
Project-URL: Issues, https://github.com/IceyWu/ageha-python/issues
Author: Lev Wu
License-Expression: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: requests>=2.31
Provides-Extra: breeze
Requires-Dist: breeze-blue>=0.21.1; extra == 'breeze'
Description-Content-Type: text/markdown

<div align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="assets/brand/ageha-mark-light.svg">
    <source media="(prefers-color-scheme: light)" srcset="assets/brand/ageha-mark.svg">
    <img src="assets/brand/ageha-mark.svg" alt="Ageha butterfly mark" width="128" height="128">
  </picture>
  <h1>Ageha</h1>
  <p><strong>One Python namespace for reusable AI clients.</strong></p>
  <p>Created and maintained by Lev Wu.</p>
  <p><a href="#development">Development</a> · <a href="#documentation">Documentation</a></p>
  <p><a href="README.md">English</a> · <a href="README.zh-CN.md">简体中文</a></p>
  <p>
    <a href="https://github.com/IceyWu/ageha-python/actions/workflows/ci.yml"><img src="https://github.com/IceyWu/ageha-python/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
    <a href="https://github.com/IceyWu/ageha-python/actions/workflows/preview.yml"><img src="https://github.com/IceyWu/ageha-python/actions/workflows/preview.yml/badge.svg?branch=main" alt="Preview Release"></a>
    <img src="https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&amp;logo=python&amp;logoColor=white" alt="Python 3.11+">
    <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-555555?style=flat-square" alt="MIT license"></a>
  </p>
</div>

---

Ageha is a Python toolkit by **Lev Wu**, currently under development. It provides one OpenAI-compatible chat client and one TTS API for MiniMax, Doubao, BreezeBlue, and Fish Audio.

## Installation

~~~bash
pip install ageha
~~~

## Development

Requires **Python 3.11+** and [uv](https://docs.astral.sh/uv/).

~~~bash
git clone https://github.com/IceyWu/ageha-python.git
cd ageha-python
uv sync --locked
~~~

~~~bash
uv run ruff check src tests scripts
uv run pytest -q
uv build
~~~

## Chat

Use one client with any OpenAI-compatible endpoint. Streaming and function tool calls are available through the same client.

~~~python
from ageha import Chat

chat = Chat(api_key="...", base_url="https://api.deepseek.com/v1", model="deepseek-chat")
reply = chat.complete([{"role": "user", "content": "Hello from Ageha"}])
~~~

## Text to speech

Choose a provider when creating the client, then use the same synthesis and audio result API:

~~~python
from ageha import TTS

tts = TTS(
    provider="minimax",
    api_key="...",
    model="speech-2.8-hd",
    voice="...",
)

audio = tts.synthesize("Hello from Ageha", emotion="calm", format="mp3")
audio.save("hello.mp3")
~~~

Use `provider="doubao"`, `"breezeblue"`, or `"fish"` to select another provider. BreezeBlue requires its optional SDK dependency: `pip install "ageha[breeze]"`. Audio is returned in memory, so callers can also pass `audio.data` to their own processing or concatenation workflow.

## Documentation

- [Release guide](docs/publishing.md)
- [Releases](https://github.com/IceyWu/ageha-python/releases)
- [Issues](https://github.com/IceyWu/ageha-python/issues)

## License

[MIT](LICENSE) · **Lev Wu**
