Thin python interface for using Large Language Models to convert LaTeX into Sympy for automatic mathematical processing
Project description
Symantex
Symantex (pronounced “semantics”) is a modular LaTeX→SymPy converter built on top of Mirascope’s structured-JSON API. It transforms arbitrary LaTeX snippets into executable SymPy Expr and Eq objects, with hooks for domain-specific operators, custom prompt engineering, and dynamic parser configuration.
🚀 Features
- Reliable JSON mode via Mirascope LLM calls
- Automatic parsing into SymPy ASTs (
Eq,Sum,Matrix, derivatives, transforms…) - Dynamic locals map lets you register new functions/symbols (e.g.
argmin,softmax,attention) - Pluggable prompt that enforces valid Sympy code (
Eq(...),Sum(...), no ellipses) - Graceful degradation: partial parse success, intelligent failure logging for diagnostics
- Customizable parser via regular-expression token discovery
📦 Installation
pip install symantex
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file symantex-0.1.0.tar.gz.
File metadata
- Download URL: symantex-0.1.0.tar.gz
- Upload date:
- Size: 27.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54243fa1cb9ab133dae0f10336fbd7c1bc57ee935357ab483ef20a4ef79b1853
|
|
| MD5 |
f9e492d913137019f7962a19cd8d37d4
|
|
| BLAKE2b-256 |
a8800710a578d108c43416ac703880122a88fa4f28adab175b578b70d55ada42
|
File details
Details for the file symantex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: symantex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f62dcaddb45e3f5ce620264b33bc666d139013aeb7cce6a63868384afe0f4c4f
|
|
| MD5 |
319c076187b2cdaf8cdfe9da485f8cbe
|
|
| BLAKE2b-256 |
688530672b7848ff937e8f8718b22be2e21d91d6ec4f5b0c7f86ed93a4024212
|