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
Metadata
Release files for k8math 0.1.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.1.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k8math-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / k8math-0.1.0.tar.gz
| Download URL | k8math-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f04d6a507e1435a5404c00d4aa7b7b901c9c5aaf38fef1c2dd6fb7bddb7aaa5a
|
|
BLAKE2b-256 checksum How to use checksums |
2799096814dffb0ca0237759cd169fa07bacc48723c51a0bf23ad4c1768e7bfa
|
| 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.1.0-py3-none-any.whl
| Download URL | k8math-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8fafa21f2a5dcf40ecbeed120a7fdc74c97e542acaf701cb274f490448519bd
|
|
BLAKE2b-256 checksum How to use checksums |
c0102e95ac5d85a87d6bd36b812cc2f069fa4f452f267d609872faddf774400f
|
| 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}
|