{ "info": { "author": "Wendell Smith", "author_email": "wackywendell@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Scientific/Engineering :: Physics" ], "description": "pmath\n*****\n\nBringing the math tools of Python to the command-line\n-----------------------------------------------------\n\nDoing math on the command-line is hard. Integer math can be done with BASH, but the only utility around for floating-point math is ``bc``, and that can be confusing with its ``scale`` and ``precision``. What if you want the power of Python's math, perhaps programmatically? Enter: ``pmath``.\n\n\nExamples\n--------\n\nBasic input::\n\n $ pmath '3 + 4'\n 7\n $ echo '3+4' | pmath\n 7\n $ pmath <<< 3+4\n 7\n $ pmath 'x=3;x+2'\n 5\n\nYou can set the output format with a ``-f`` switch::\n\n $ pmath -f .4f <<< pow(2000, 1/3)\n 12.5992\n $ pmath -f .4f <<< sin(pi/2)\n 1.0000\n\nEnabling complex math operations is straightforward with ``-c``::\n\n $ pmath -c <<< exp(1j*pi).real\n -1.0\n $ pmath -f.2f -c 'ang=3*pi/4; exp(1j*ang)'\n -0.71+0.71j\n\nInstallation\n------------\n\nRunning ``pip install pmath`` will install the command-line utility.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wackywendell/pmath", "keywords": "math python console command-line bash", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "pmath", "package_url": "https://pypi.org/project/pmath/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pmath/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/wackywendell/pmath" }, "release_url": "https://pypi.org/project/pmath/0.3/", "requires_dist": null, "requires_python": null, "summary": "Bringing the math tools of Python to the command-line", "version": "0.3" }, "last_serial": 1488829, "releases": { "0.1": [ { "comment_text": "built for Linux-3.19.2-1-ARCH-x86_64-with-glibc2.3.4", "digests": { "md5": "b93a192f45d92560e9459b4be4c1f855", "sha256": "9f243be7883faf460d4c5ca87ec5316127b545a6bb6f491250c69f5a9789c143" }, "downloads": -1, "filename": "pmath-0.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "b93a192f45d92560e9459b4be4c1f855", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3237, "upload_time": "2015-04-02T18:33:06", "url": "https://files.pythonhosted.org/packages/28/25/138f867308ddd1390a0c00061d72e25133a91b4a374d6760f6bb7a37bd51/pmath-0.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "8225453e6401d1969d42a5bb0439760b", "sha256": "7543b8f05429777c890b98443155323ce841e8f9674a83233b8014359116fc74" }, "downloads": -1, "filename": "pmath-0.1.tar.gz", "has_sig": false, "md5_digest": "8225453e6401d1969d42a5bb0439760b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2749, "upload_time": "2015-04-02T18:33:03", "url": "https://files.pythonhosted.org/packages/7c/ce/9b6486ad3c5a1cb2e705f80c8845e02b95b197c6dc868062d9ff9cbb8bcf/pmath-0.1.tar.gz" } ], "0.2": [ { "comment_text": "built for Linux-3.19.2-1-ARCH-x86_64-with-glibc2.3.4", "digests": { "md5": "c0eedba52cd305305d6592067475abb1", "sha256": "dfd52653b30a7bab47c21503f445d41ae0e71b3bf523693993244d88c1238b12" }, "downloads": -1, "filename": "pmath-0.2.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "c0eedba52cd305305d6592067475abb1", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3489, "upload_time": "2015-04-02T21:06:14", "url": "https://files.pythonhosted.org/packages/4a/0b/7e387df864308cb1c4dad5f83880c539f2428199aaa17542d2c203c608ff/pmath-0.2.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "734878065907c41b07cdf941ab3c71fc", "sha256": "14bcfbe4d66da2cf925618fa68d6fab0f5cc1bf3d0fc141e42f2e23d3a383f7a" }, "downloads": -1, "filename": "pmath-0.2.tar.gz", "has_sig": false, "md5_digest": "734878065907c41b07cdf941ab3c71fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3259, "upload_time": "2015-04-02T21:06:11", "url": "https://files.pythonhosted.org/packages/c2/55/932edcddf710686e3d8ffa0ba171ee58876cb0044d0016b375df7596cd26/pmath-0.2.tar.gz" } ], "0.3": [ { "comment_text": "built for Linux-3.19.2-1-ARCH-x86_64-with-glibc2.3.4", "digests": { "md5": "50b79b978cbc7364343bc4cc44ee34e1", "sha256": "e41ed56229f04a681f6e4b5b4979d676902af56c6eae6d0405686fd7488662ec" }, "downloads": -1, "filename": "pmath-0.3.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "50b79b978cbc7364343bc4cc44ee34e1", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3573, "upload_time": "2015-04-02T21:07:46", "url": "https://files.pythonhosted.org/packages/a7/4c/9624f08dd21d7b3482183b62cf4cf75d6142ad1cc7b17ddaa1b0959ef0d6/pmath-0.3.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "cf82b39008714b7436f978b1767b6570", "sha256": "91ded83466c854a139d9afc322cb1a65d17bba3bb88101e87c5eeb4a9314ee96" }, "downloads": -1, "filename": "pmath-0.3.tar.gz", "has_sig": false, "md5_digest": "cf82b39008714b7436f978b1767b6570", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3282, "upload_time": "2015-04-02T21:07:43", "url": "https://files.pythonhosted.org/packages/3a/eb/fbdf409d71b59f8aba3760142bb7f229492f1bff795df86c419525e00d90/pmath-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "built for Linux-3.19.2-1-ARCH-x86_64-with-glibc2.3.4", "digests": { "md5": "50b79b978cbc7364343bc4cc44ee34e1", "sha256": "e41ed56229f04a681f6e4b5b4979d676902af56c6eae6d0405686fd7488662ec" }, "downloads": -1, "filename": "pmath-0.3.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "50b79b978cbc7364343bc4cc44ee34e1", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3573, "upload_time": "2015-04-02T21:07:46", "url": "https://files.pythonhosted.org/packages/a7/4c/9624f08dd21d7b3482183b62cf4cf75d6142ad1cc7b17ddaa1b0959ef0d6/pmath-0.3.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "cf82b39008714b7436f978b1767b6570", "sha256": "91ded83466c854a139d9afc322cb1a65d17bba3bb88101e87c5eeb4a9314ee96" }, "downloads": -1, "filename": "pmath-0.3.tar.gz", "has_sig": false, "md5_digest": "cf82b39008714b7436f978b1767b6570", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3282, "upload_time": "2015-04-02T21:07:43", "url": "https://files.pythonhosted.org/packages/3a/eb/fbdf409d71b59f8aba3760142bb7f229492f1bff795df86c419525e00d90/pmath-0.3.tar.gz" } ] }