| Name | mathparse JSON |
| Version |
0.2.6
JSON |
| download |
| home_page | None |
| Summary | mathparse is a library for solving mathematical equations contained in strings |
| upload_time | 2025-10-12 08:36:36 |
| maintainer | None |
| docs_url | None |
| author | Gunther Cox |
| requires_python | <3.14,>=3.9 |
| license | None |
| keywords |
mathparse
mathematics
math
nlp
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
|
# mathparse
The `mathparse` library is a Python module designed to evaluate mathematical equations contained in strings.
Here are a few examples:
```python
from mathparse import mathparse
mathparse.parse('50 * (85 / 100)')
>>> 42.5
mathparse.parse('one hundred times fifty four', language='ENG')
>>> 5400
mathparse.parse('(seven * nine) + 8 - (45 plus two)', language='ENG')
>>> 24
```
## Security
Mathparse does not employ the use of Python's [`eval` function](https://docs.python.org/3/library/functions.html#eval) when evaluating provided mathematical expressions. This is a measure to prevent arbitrary code execution vulnerabilities. See https://mathparse.chatterbot.us/postfix/ for additional details.
Mathparse is a standalone Python package and requires zero dependencies to function.
## Language Support
The language parameter must be set in order to evaluate an equation that uses word operators.
The language code should be a valid [ISO 639-2](https://www.loc.gov/standards/iso639-2/php/code_list.php) language code.
## Installation
```bash
pip install mathparse
```
## Documentation
See the full documentation at https://mathparse.chatterbot.us
## Changelog
See [release notes](https://github.com/gunthercox/mathparse/releases) for changes.
Raw data
{
"_id": null,
"home_page": null,
"name": "mathparse",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.14,>=3.9",
"maintainer_email": null,
"keywords": "mathparse, mathematics, math, nlp",
"author": "Gunther Cox",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/cb/a8/bee72e80f71e55bde95c27284bc7bd2dc55b2f127a5c37d8a03f60d57504/mathparse-0.2.6.tar.gz",
"platform": null,
"description": "# mathparse\n\nThe `mathparse` library is a Python module designed to evaluate mathematical equations contained in strings.\n\nHere are a few examples:\n\n```python\nfrom mathparse import mathparse\n\nmathparse.parse('50 * (85 / 100)')\n>>> 42.5\n\nmathparse.parse('one hundred times fifty four', language='ENG')\n>>> 5400\n\nmathparse.parse('(seven * nine) + 8 - (45 plus two)', language='ENG')\n>>> 24\n```\n\n## Security\n\nMathparse does not employ the use of Python's [`eval` function](https://docs.python.org/3/library/functions.html#eval) when evaluating provided mathematical expressions. This is a measure to prevent arbitrary code execution vulnerabilities. See https://mathparse.chatterbot.us/postfix/ for additional details.\n\nMathparse is a standalone Python package and requires zero dependencies to function.\n\n## Language Support\n\nThe language parameter must be set in order to evaluate an equation that uses word operators.\nThe language code should be a valid [ISO 639-2](https://www.loc.gov/standards/iso639-2/php/code_list.php) language code.\n\n## Installation\n\n```bash\npip install mathparse\n```\n\n## Documentation\n\nSee the full documentation at https://mathparse.chatterbot.us\n\n## Changelog\n\nSee [release notes](https://github.com/gunthercox/mathparse/releases) for changes.\n",
"bugtrack_url": null,
"license": null,
"summary": "mathparse is a library for solving mathematical equations contained in strings",
"version": "0.2.6",
"project_urls": {
"Changelog": "https://github.com/gunthercox/mathparse/releases",
"Documentation": "https://mathparse.chatterbot.us",
"Repository": "https://github.com/gunthercox/mathparse"
},
"split_keywords": [
"mathparse",
" mathematics",
" math",
" nlp"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "b416ba815f75ba8640d141d2192b59d71b74a55ab1f8fbc7ca382995a41e436e",
"md5": "0bce34087669579d50dd5c9d9f2673e5",
"sha256": "74c0dedd741e5d50eba38b12ac984782cd99b8a1ef2a2320cf0e8a5a8e1f7d05"
},
"downloads": -1,
"filename": "mathparse-0.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0bce34087669579d50dd5c9d9f2673e5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.9",
"size": 21499,
"upload_time": "2025-10-12T08:36:35",
"upload_time_iso_8601": "2025-10-12T08:36:35.563987Z",
"url": "https://files.pythonhosted.org/packages/b4/16/ba815f75ba8640d141d2192b59d71b74a55ab1f8fbc7ca382995a41e436e/mathparse-0.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "cba8bee72e80f71e55bde95c27284bc7bd2dc55b2f127a5c37d8a03f60d57504",
"md5": "76ea9c24a805854e78ca4bc8f40d29b9",
"sha256": "b3abaeb807002f3d94da2cb494443efc29cfef580c456ee0a5e0596871525077"
},
"downloads": -1,
"filename": "mathparse-0.2.6.tar.gz",
"has_sig": false,
"md5_digest": "76ea9c24a805854e78ca4bc8f40d29b9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.14,>=3.9",
"size": 29030,
"upload_time": "2025-10-12T08:36:36",
"upload_time_iso_8601": "2025-10-12T08:36:36.946004Z",
"url": "https://files.pythonhosted.org/packages/cb/a8/bee72e80f71e55bde95c27284bc7bd2dc55b2f127a5c37d8a03f60d57504/mathparse-0.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-12 08:36:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gunthercox",
"github_project": "mathparse",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "mathparse"
}