Metadata-Version: 2.4
Name: tokengarden
Version: 0.1.0
Summary: A small, consistent Python interface to multiple language model providers.
License-Expression: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx<1,>=0.27
Dynamic: license-file

# tokengarden

`tokengarden` is an early prototype for making text requests to several language
model providers through one small Python API.

```python
import tokengarden

answer = tokengarden.generate(
    provider="openai",
    api_key="your-key",
    model="your-model",
    content="Explain what a Python dataclass is in one sentence.",
)
print(answer.text)
```

Pass `stream=True` to receive an iterator of text fragments. Provider APIs and
model capabilities change, so this prototype validates options at provider
level, not for every individual model.

Supported provider names: `openai`, `anthropic`, `google`, `deepseek`,
`mistral`, `zai`, and `alibaba` (also accepted: `z.ai`, `zhipu`, `qwen`).

`thinking=True` is mapped for Anthropic, Google, and Z.AI. Z.AI thinking is
disabled by default to avoid reasoning-only output on reasoning models. These
flags are provider-level checks; individual model support can still vary.

Install with `pip install tokengarden`. This library uses the providers' HTTP
APIs directly and does not yet include retries, async methods, tool calling,
multimodal content, or provider-specific SDKs.
