Install & Compatibility
Where this runs
tested against v3.1.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 304.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 10.2s · import 0.000s · 295MB
229MB installed
● package 229MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
calculator
✓ from calc import calculator
✗ from calc import calculator
CaselessLiteral
✓ from calc import CaselessLiteral
DEFAULT_FUNCTIONS
✓ from calc import DEFAULT_FUNCTIONS
Simple arithmetic evaluation using the calculator function.
from openedx_calc import calculator
expr = "2 + 2"
result = calculator(expr)
print(result) # 4
Upgrade
Version history
5.0.0latest on PyPI · released Mar 13, 2026
Audit
Dependencies
sympyrequiredCore dependency for symbolic mathematics
numpyoptionalUsed for numerical calculations