edu-math
edu-math is a Python package for math education workflows.
The PyPI distribution is osl-edu-math; the import package remains edumath.
The project is in its initial scaffold stage. The repository includes packaging,
testing, linting, documentation, release automation, and GitHub workflow
infrastructure adapted from the Open Science Labs Incubator Python package
template used by prisma-flow.
Installation
pip install osl-edu-math
Symbolic equation solving
edumath.solvers provides SymPy-backed equation solving with structured
solution steps. The math is computed locally and can be used without any API
key:
from edumath.core import parse_equation
from edumath.solvers import solve_equation_steps
equation = parse_equation("2(x - 3) + 4 = 10")
solution = solve_equation_steps(equation)
print(solution.answer)
print(solution.render_text())
Optional AI tutor explanations can be enabled through edumath.settings. The AI
text is added after SymPy/edumath has solved and checked the equation, so the
symbolic result remains the source of truth:
from edumath.core import parse_equation
from edumath.settings import configure
from edumath.solvers import solve_equation_steps
configure(openai_api_key="YOUR_OPENAI_API_KEY")
equation = parse_equation("2(x - 3) + 4 = 10")
solution = solve_equation_steps(equation, explain=True)
print(solution.explanation)
Development
conda env create -f conda/dev.yaml
conda activate edumath
poetry config virtualenvs.create false
poetry install --extras "dev"
Run checks through Makim:
makim tests.linter
makim tests.unit
makim package.build
makim docs.build
Project layout
src/edumath/: Python package sourcetests/: pytest test suitedocs/: Quarto documentation websiteconda/: development and release environment files.github/: issue templates and GitHub Actions workflows
Metadata
Release files for osl-edu-math 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| osl_edu_math-0.4.4.tar.gz | 82.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| osl_edu_math-0.4.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 208.0 kB
Release files / osl_edu_math-0.4.4.tar.gz
| Download URL | osl_edu_math-0.4.4.tar.gz |
|---|---|
| Size | 82.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0102b42ef82ef15a31eadb822c3d593f2d33bb57f566e1a668f394ddbe0ec6f
|
|
BLAKE2b-256 checksum How to use checksums |
b815b02017310005859e3b06671b6b0830a4403a5b54a59341dadacf1f921dce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.14 Linux/6.17.0-1018-azure
|
Release files / osl_edu_math-0.4.4-py3-none-any.whl
| Download URL | osl_edu_math-0.4.4-py3-none-any.whl |
|---|---|
| Size | 125.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aad84852743c98ed3243fdd4299c32bf36b80fc1917946dec742ddeebfe3df81
|
|
BLAKE2b-256 checksum How to use checksums |
b90963d4ca59c68d64f4508824d8b4de078c7a2f4029beba32e50f7dd7e8f1f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.1 CPython/3.13.14 Linux/6.17.0-1018-azure
|