Woxi for Python
Python bindings for Woxi, an interpreter for a subset of the Wolfram Language implemented in Rust. Woxi is a computer algebra system (CAS), so computations are solved symbolically.
pip install woxi
Python API
import woxi
woxi.interpret("Plus[1, 2]")
# => '3'
woxi.interpret("Integrate[x^2, x]")
# => 'x^3/3'
# Session state persists across calls (per thread):
woxi.interpret("x = 42;")
woxi.interpret("x + 1")
# => '43'
woxi.clear_state()
# Capture stdout, graphics, sound, and warnings:
res = woxi.evaluate('Print["hi"]; Plot[Sin[x], {x, 0, 10}]')
res.stdout # => 'hi\n'
res.graphics # => '<svg …' (SVG markup)
# Reproducible random numbers:
woxi.seed_rng(1)
# Errors raise woxi.WolframError:
try:
woxi.interpret("1 +")
except woxi.WolframError as err:
print(err)
Command line
The package also installs a woxi command:
woxi eval 'Plus[1, 2]' # Evaluate an expression
woxi run script.wls # Run a Wolfram Language file
woxi repl # Interactive session
For the full-featured native CLI (including the Jupyter kernel),
install the Rust binary instead: cargo install woxi.
Building from source
The package is built with maturin and requires a Rust toolchain:
cd woxi-py
pip install maturin
maturin develop # Build and install into the active virtualenv
Run the tests with:
python -m pytest tests/
License
AGPL-3.0-or-later
Metadata
Release files for woxi 0.3.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 | |
|---|---|---|---|
| woxi-0.3.0.tar.gz | 4.6 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| woxi-0.3.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| woxi-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| woxi-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| woxi-0.3.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
| woxi-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 130.0 MB
Release files / woxi-0.3.0.tar.gz
| Download URL | woxi-0.3.0.tar.gz |
|---|---|
| Size | 4.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f64f97dae750d2c84938730701de5496eb867fc4e3832ed9b0bba450b27e8d20
|
|
BLAKE2b-256 checksum How to use checksums |
61fa0690db4ca430786a0f3731246148ae90884193223c99238485dc357b8840
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logRelease files / woxi-0.3.0-cp310-abi3-win_amd64.whl
| Download URL | woxi-0.3.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 26.8 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ad8f8c724176a2f374b9ac36b7ffb9d77d30a2c0ac4d134d9f62943057c3dca6
|
|
BLAKE2b-256 checksum How to use checksums |
5afa1602a26bcfa4e6f3efd127b798ab60da5951be99417fda16a513d7d16f80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logRelease files / woxi-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | woxi-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 24.9 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
46fedeab967568383f3fef2da5543bcb119be92a2de7093f5a778952003c5a0b
|
|
BLAKE2b-256 checksum How to use checksums |
4ba160c8b4bd0212af758562b83bea964a8a444b5c0cc51f02c5fe20c0078a17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logRelease files / woxi-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | woxi-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 25.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
6f3bfd172a8c248eeabb0a0fa50e6b4e8269d3b2263fb0f2a5b00dcb8b589e8e
|
|
BLAKE2b-256 checksum How to use checksums |
77def9d650028d9510912a6b70a0140a85bb41daa98b97552027075e8c792c5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logRelease files / woxi-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | woxi-0.3.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 24.1 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7b02aa9f8b57df55fb18b86b4343cc0cb756905e875869bc61d0862462fb0029
|
|
BLAKE2b-256 checksum How to use checksums |
e582c06ec617ba628704e5e2ffc96a482709d09392e5962305112417fd11f51b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency logRelease files / woxi-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | woxi-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 24.4 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
bb643aca6dd5e37203c5f2d75c8fb89c9da770075cbeabab3dc018585ef6e5b6
|
|
BLAKE2b-256 checksum How to use checksums |
eef19daffa71f3cc55a9c3a949581c860fa1453a5137833c23a421eb1c551bb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 7, 2026.
Transparency log