Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A Python library evaluate mathematical expressions in the same manner as MathJS.

Project Description


mathjspy is a Python library evaluate mathematical expressions in the same manner as MathJS.

The purpose is to allow calculation of expressions in python that are consistent with what is calculated through MathJS.

Many thanks to MathJS for their hard work in developing an excellent mathematical expression interpreter.

Official documentation

The homepage is You will find:

  • every installation methods
  • the official documentation
  • code examples
  • instructions for contributing

0.0.8 (unreleased)

  • Fixed addition following subtraction
  • Added a ? b : c syntax

0.0.7 (unreleased)

  • Override divide by zero errors for now.

0.0.6 (unreleased)

  • Moved depreciated ifElse function to ifElseAlt until a ? b : c syntax supported.

0.0.5 (unreleased)

  • Changed IRR function.

0.0.3 (unreleased)

  • Allow tuple / array data types for functions.

0.0.2 (unreleased)

  • Added log function

0.0.1 (unreleased)

Initial Release

  • Initial project released in Alpha.

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.9 kB) Copy SHA256 Hash SHA256
Source None Sep 23, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting