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.

Documentation: Available at FormuLearn Docs


🚀 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.2.0.tar.gz (27.1 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.2.0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file symantex-0.2.0.tar.gz.

File metadata

  • Download URL: symantex-0.2.0.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for symantex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cb61e75ab6ca781223d6eb153bc7059db4f026ef78957b38938535a0181ed7d5
MD5 15ddb81cea712b71181e568e4680fcd9
BLAKE2b-256 55870452f3f529be079a6ff9b842a409b37f18429846eff22817985dc583b874

See more details on using hashes here.

File details

Details for the file symantex-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: symantex-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f37ecd797934b8ed21fa53d859d45445a95afb59059510137a6d77012ab31d4
MD5 446dc465f0ce1667a583345c9ce5088c
BLAKE2b-256 cdf2409216f99ae1a6edaeadafd46cb8e668161c1b9408ad7f09d2acfcf16798

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