K8Math
Generate math word problems with AI.
NOTE. Requires Anthropic API key.
Usage
Install CLI:
uv tool install k8math
Generate wit CLI:
k8math -k $ANTHROPIC_API_KEY -l english "3 + 4 = 7"
Print help:
k8math -h
Install as a library:
uv add k8math
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 task format
Check:
uv run task check
Test:
uv run task test
See more tasks:
uv run task -l
Tag version:
git tag v1.0.0
git push origin tag v1.0.0
Metadata
Release files for k8math 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| k8math-0.2.0.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k8math-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / k8math-0.2.0.tar.gz
| Download URL | k8math-0.2.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac7e6d0af7a2b56d2a613417af5e8d439c0d8642a364bbd1e93e137e5b55e1bc
|
|
BLAKE2b-256 checksum How to use checksums |
50033fe39d4859e013a9fddf880349e9f653e48a026c55cc56a7fd7c5e0829fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / k8math-0.2.0-py3-none-any.whl
| Download URL | k8math-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2714a3f8321cc540a5a250434e97b18005a1596f0a04a4a1853e0ba52b4e5829
|
|
BLAKE2b-256 checksum How to use checksums |
4a3088308054c9d699f7842f97128cdea6a006d21260431325f786c4ef457429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|