Metadata-Version: 2.4
Name: k8math
Version: 0.1.1
Summary: Generate math word problems with AI
Keywords: k8math,ai,math,math word problem,generator
Author: ram
Author-email: ram <hi@colima.press>
License-Expression: MIT
License-File: LICENSE.md
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Education
Requires-Dist: anthropic>=1.2.0
Requires-Dist: simpleeval>=1.0.7
Maintainer: ram
Maintainer-email: ram <hi@colima.press>
Requires-Python: >=3.12
Project-URL: Repository, https://gitlab.com/perritotuerto/codigo/k8math
Project-URL: Changelog, https://gitlab.com/perritotuerto/codigo/k8math/-/blob/main/CHANGELOG.md
Project-URL: Releases, https://gitlab.com/perritotuerto/codigo/k8math/-/releases
Description-Content-Type: text/markdown

# K8Math

Generate math word problems with AI.

**NOTE**. Requires Anthropic API key.

## Usage

Generate wit CLI:

```
uv run k8math -k $ANTHROPIC_API_KEY -l english "3 + 4 = 7"
```

Print help:

```
uv run k8math -h
```

Import as a module:

```
import os
from k8math import K8Math

k8m = K8Math(
  expressions=["3 + 4 = 7"],
  api_key=os.environ.get("ANTHROPIC_API_KEY"),
  language="english",
)
k8m.generate()
```

## Development

Clone:

```
git clone TODO
```

Format:

```
uv run ruff format .
uv run isort .
```

Check:

```
uv run ruff check .
```

Test:

```
uv run python -m pytest -s --durations 0
```

Tag version:

```
git tag v1.0.0
git push origin tag v1.0.0
```
