{ "info": { "author": "Sergio Besada", "author_email": "sergio.besada@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "pymep is a python math expression parser where you can parse or evaluate math expressions.\n\nThis algorithm does not use a decision tree. It is a recursive algorithm that is faster than decision trees\n\nInstallation\n\npip install pymep\n\nHere you can see some examples:\n\n Real Numbers: \n\n\tfrom pymep.realParser import parse\n\tfrom pymep.realParser import eval\n\n\n\t#Real Expresion parser\n\tfx=\"cos(10)\"\n\tprint(parse(fx))\n\n\txi=5\n\tfx = \"1 + x\"\n\tprint(eval(fx, xi))\n\n\tvar = {\"x\":\"1+1\", \"Z\":1}\n\teval(\" 2*(-(((z*3)*sqrt(x^(2)))+3))\",var)\n\n\n For complex Numbers:\n\n from pymep.complexParser import parse\n\tfrom pymep.complexParser import eval\n\tfrom pymep.complex import Complex\n\n\t#Operation with complex numbers\n\ta = Complex(1,2)\n\tprint(a.__radd__(10).__complex__())\n\tprint(Complex.radd(10, a).__complex__())\n\n\n\t#Complex Expresion parser\n\tfx=\"cos(10+2j)\"\n\tprint(parse(fx).__complex__())\n\n\txi=5\n\tfx = \"1 +j+x\"\n\tprint(eval(fx, xi).__complex__())\n\n\tvar={\"x\":\"1+2j\", \"Y\":complex(2,1)}\n\tf_x = \"x-y\"\n\teval(f_x,var).__complex__()\n\n\n There is a full list of examples inside!!\n\nEnjoy it!!\n\nThe java version of this library is: https://github.com/sbesada/java.math.expression.parser\n\nNOTE: Regarding to the OS where you excute the tests, it is possible that some tests fail due to rounding issues. The mathematical library used in this project is \"math\". In the future, it is possible that the math library changes. \n\nPD: If you think that my work deserves a donation, you can do it: https://sbesada.github.io/\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sbesada/python.math.expression.parser.pymep", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pymep", "package_url": "https://pypi.org/project/pymep/", "platform": "", "project_url": "https://pypi.org/project/pymep/", "project_urls": { "Homepage": "https://github.com/sbesada/python.math.expression.parser.pymep" }, "release_url": "https://pypi.org/project/pymep/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "Python Math Expression Parser", "version": "1.0.4" }, "last_serial": 5810709, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "5bee9ab8c43f98e4be55988397b19dab", "sha256": "ae1db1cd7c444bebf5d64d381aea1a3b314183c369802d93a5d0c3c95992f111" }, "downloads": -1, "filename": "pymep-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5bee9ab8c43f98e4be55988397b19dab", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11703, "upload_time": "2019-03-29T21:16:42", "url": "https://files.pythonhosted.org/packages/01/8c/5fb40d96c9d44d3b27c0985d9fefd11bdf78a9eb8e87ddcccec46c25fe11/pymep-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4a8edaa39bb65c4a16b6746f8d497807", "sha256": "275950ef3dfbee3ed99017b0a07d1b8d74f327c264ce79d07b0efcc2c37ded29" }, "downloads": -1, "filename": "pymep-1.0.1.tar.gz", "has_sig": false, "md5_digest": "4a8edaa39bb65c4a16b6746f8d497807", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6208, "upload_time": "2019-03-29T21:16:44", "url": "https://files.pythonhosted.org/packages/58/ab/20d2f4a7215fdc21f7b1db3eee8ce6c197c050becd91b61cc9e928327f6a/pymep-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "4a2694684eabb67b87bf2df9b2de9c6b", "sha256": "9f8c509fe2e7e477bddce43f2acd83709cfda3f3ec54b5db61dbe1385c659e76" }, "downloads": -1, "filename": "pymep-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4a2694684eabb67b87bf2df9b2de9c6b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14426, "upload_time": "2019-07-24T15:57:28", "url": "https://files.pythonhosted.org/packages/1f/4b/14531c69617c137d01ba8a37f76453a14301083b899aa2c3f5f780242043/pymep-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e85770bacc80e8d949fdb6ae7e51d01", "sha256": "7ae1fb6e33f2a8997210a2605f37dca72acdbfa3ad20358f1a33f107f67292e6" }, "downloads": -1, "filename": "pymep-1.0.2.tar.gz", "has_sig": false, "md5_digest": "9e85770bacc80e8d949fdb6ae7e51d01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8342, "upload_time": "2019-07-24T15:57:30", "url": "https://files.pythonhosted.org/packages/f2/6c/411ce12295f6c5d4d0afdda5177555c8e710ffa9b5609f01911239052716/pymep-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "71d4694c31f4d17654b5bbfed960e2d6", "sha256": "27a7786ef579a2d7811daefa3fd203b67a954ffd07f45f0d3745b8dab8f695b3" }, "downloads": -1, "filename": "pymep-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "71d4694c31f4d17654b5bbfed960e2d6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14615, "upload_time": "2019-08-05T10:29:43", "url": "https://files.pythonhosted.org/packages/27/bc/a5d48547c400b779813fccd5718915f18aa7267d3c5397c32e365735ef5c/pymep-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "993e27e3e995c521ffa2cf717579b598", "sha256": "8bbd3c468afa633667154c6b8455c4fcecd8eeb62dc20d2a0c234271e56550bd" }, "downloads": -1, "filename": "pymep-1.0.3.tar.gz", "has_sig": false, "md5_digest": "993e27e3e995c521ffa2cf717579b598", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8660, "upload_time": "2019-08-05T10:29:45", "url": "https://files.pythonhosted.org/packages/9c/f7/a0920b2ad9805e40cf965ad12d32edd51752ba9ff96a4e9c82ffca16d2f5/pymep-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "ac7a05da34ab2cc8ca57fb1656a35b44", "sha256": "5ef7d0033ae2bc2bb1dd665f7d2a41318a41f817312a86bf419a7023e84a3faa" }, "downloads": -1, "filename": "pymep-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "ac7a05da34ab2cc8ca57fb1656a35b44", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14618, "upload_time": "2019-09-10T19:01:46", "url": "https://files.pythonhosted.org/packages/53/08/46128d314378ef23598c11d3c6ebb386777f983c27086b578f68a9bdba49/pymep-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17c6985d2896fb57cfe1d621c9ea06b5", "sha256": "7c82a7fb8bf33efa754626409db4f7e2d9129ac8bf61b73e208cc56b028c55de" }, "downloads": -1, "filename": "pymep-1.0.4.tar.gz", "has_sig": false, "md5_digest": "17c6985d2896fb57cfe1d621c9ea06b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8621, "upload_time": "2019-09-10T19:01:47", "url": "https://files.pythonhosted.org/packages/ff/92/1cde1e1c868190ad2c785d863ec96330c97c8d427c0d37b6825694acbce7/pymep-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ac7a05da34ab2cc8ca57fb1656a35b44", "sha256": "5ef7d0033ae2bc2bb1dd665f7d2a41318a41f817312a86bf419a7023e84a3faa" }, "downloads": -1, "filename": "pymep-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "ac7a05da34ab2cc8ca57fb1656a35b44", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14618, "upload_time": "2019-09-10T19:01:46", "url": "https://files.pythonhosted.org/packages/53/08/46128d314378ef23598c11d3c6ebb386777f983c27086b578f68a9bdba49/pymep-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "17c6985d2896fb57cfe1d621c9ea06b5", "sha256": "7c82a7fb8bf33efa754626409db4f7e2d9129ac8bf61b73e208cc56b028c55de" }, "downloads": -1, "filename": "pymep-1.0.4.tar.gz", "has_sig": false, "md5_digest": "17c6985d2896fb57cfe1d621c9ea06b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8621, "upload_time": "2019-09-10T19:01:47", "url": "https://files.pythonhosted.org/packages/ff/92/1cde1e1c868190ad2c785d863ec96330c97c8d427c0d37b6825694acbce7/pymep-1.0.4.tar.gz" } ] }