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.1
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.1.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k8math-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / k8math-0.1.1.tar.gz
| Download URL | k8math-0.1.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd6588ed81a18097b1b924d27f0160de8460b8334e355a232fb83e9c12e25d45
|
|
BLAKE2b-256 checksum How to use checksums |
d288816ab1b9a4f4e0a6737f7672f3451096b4e218a02e2611cd774ed42f119d
|
| 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.1-py3-none-any.whl
| Download URL | k8math-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a248ead0d2925cfe62a2c61c5c3eb708c214a4384280b9f8cf768dd1931df845
|
|
BLAKE2b-256 checksum How to use checksums |
3d2e5f63f1a6f26d01a2f442e942d73d5bcbd2a2c7471f3f8ad4965e2306fda8
|
| 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}
|