Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

symantex-0.1.0.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

symantex-0.1.0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

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

Hashes for symantex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 54243fa1cb9ab133dae0f10336fbd7c1bc57ee935357ab483ef20a4ef79b1853
MD5 f9e492d913137019f7962a19cd8d37d4
BLAKE2b-256 a8800710a578d108c43416ac703880122a88fa4f28adab175b578b70d55ada42

See more details on using hashes here.

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

Hashes for symantex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f62dcaddb45e3f5ce620264b33bc666d139013aeb7cce6a63868384afe0f4c4f
MD5 319c076187b2cdaf8cdfe9da485f8cbe
BLAKE2b-256 688530672b7848ff937e8f8718b22be2e21d91d6ec4f5b0c7f86ed93a4024212

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page