{ "info": { "author": "Kevin Wurster", "author_email": "wursterk@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: Text Processing", "Topic :: Utilities" ], "description": "pcalc\n=====\n\nBasic math operations for Unix pipes.\n\n\n.. image:: https://travis-ci.org/geowurster/pcalc.svg?branch=master\n :target: https://travis-ci.org/geowurster/pcalc?branch=master\n\n.. image:: https://coveralls.io/repos/geowurster/pcalc/badge.svg?branch=master\n :target: https://coveralls.io/r/geowurster/pcalc?branch=master\n\n\n.. code-block:: console\n\n $ pcalc --help\n Usage: pcalc [OPTIONS] COMMAND [ARGS]...\n\n Basic math operations for Unix pipes.\n\n When working with a negative positional argument: '$ pcalc mul -- -1'\n\n All commands read from 'stdin' and write to 'stdout'. Most commands\n stream but a few (like median) hold all values in memory. Empty or all\n whitespace lines are skipped.\n\n Some commands (typically prefixed with 'r') reduce all input values to a\n single value. For instance, '$ pcalc add 3' adds 3 to all input values,\n but '$ pcalc radd' adds all the values together like:\n\n output = 0\n for v in values:\n output = output + v\n\n For the most part it doesn't matter, but this tool is implemented in\n Python with floating point division enabled when running in Python 2.\n\n Options:\n --help Show this message and exit.\n\n Commands:\n abs Compute absolute value.\n add Add a constant to values.\n ceil Ceiling values.\n div Divide values by a constant.\n floor Floor values.\n mean Compute mean.\n median Compute median.\n mod Modulo values by a single divisor.\n mode Compute mode.\n mul Multiply values by a constant.\n pow Exponentiation of values by a constant.\n radd Reduce by addition.\n rdiv Reduce by division.\n rmod Reduce by modulo.\n rmul Reduce by multiplication.\n round Round values.\n rsub Reduce by subtraction.\n sub Subtract a constant from values.\n sum Compute sum.\n\n\nDeveloping\n==========\n\n.. code-block:: console\n\n $ git clone https://github.com/geowurster/pcalc.git\n $ cd tpcalc\n $ pip install -e .\\[dev\\]\n $ py.test --cov pcalc --cov-report term-missing\n\n\nLicense\n=======\n\nSee ``LICENSE.txt``\n\n\nChangelog\n=========\n\nSee ``CHANGES.md``\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/geowurster/pcalc", "keywords": "command line CLI math unix pipe", "license": "New BSD", "maintainer": "", "maintainer_email": "", "name": "pcalc", "package_url": "https://pypi.org/project/pcalc/", "platform": "", "project_url": "https://pypi.org/project/pcalc/", "project_urls": { "Homepage": "https://github.com/geowurster/pcalc" }, "release_url": "https://pypi.org/project/pcalc/1.0/", "requires_dist": [ "click", "coveralls; extra == 'all'", "pytest (>=3); extra == 'all'", "pytest-cov; extra == 'all'", "coveralls; extra == 'dev'", "pytest (>=3); extra == 'dev'", "pytest-cov; extra == 'dev'" ], "requires_python": "", "summary": "Basic math operations for Unix pipes.", "version": "1.0" }, "last_serial": 2356315, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "b0a1806d1206789df17d3dd155da248d", "sha256": "f3d2ee8471f52ed46652e48d620e64f3da68798490fa5a5e56c7a397f63cf462" }, "downloads": -1, "filename": "pcalc-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b0a1806d1206789df17d3dd155da248d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7523, "upload_time": "2016-09-22T00:30:35", "url": "https://files.pythonhosted.org/packages/46/31/d5cb06a70a458b44de3a3d921f6325a5afefe41b01f33621ce9c0aec430f/pcalc-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "31faec017ec03d0958bc67dd779cfda8", "sha256": "514fd094e931526e7263b0bc23931bb36fe334baab73ce56e6b403e928ad9e8b" }, "downloads": -1, "filename": "pcalc-1.0.tar.gz", "has_sig": false, "md5_digest": "31faec017ec03d0958bc67dd779cfda8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6978, "upload_time": "2016-09-22T00:30:39", "url": "https://files.pythonhosted.org/packages/6a/e3/29b1b14dc20816c7cb4231d31f8cf5b099ecb9d455e3c2dd2abcebc0a271/pcalc-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b0a1806d1206789df17d3dd155da248d", "sha256": "f3d2ee8471f52ed46652e48d620e64f3da68798490fa5a5e56c7a397f63cf462" }, "downloads": -1, "filename": "pcalc-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b0a1806d1206789df17d3dd155da248d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7523, "upload_time": "2016-09-22T00:30:35", "url": "https://files.pythonhosted.org/packages/46/31/d5cb06a70a458b44de3a3d921f6325a5afefe41b01f33621ce9c0aec430f/pcalc-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "31faec017ec03d0958bc67dd779cfda8", "sha256": "514fd094e931526e7263b0bc23931bb36fe334baab73ce56e6b403e928ad9e8b" }, "downloads": -1, "filename": "pcalc-1.0.tar.gz", "has_sig": false, "md5_digest": "31faec017ec03d0958bc67dd779cfda8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6978, "upload_time": "2016-09-22T00:30:39", "url": "https://files.pythonhosted.org/packages/6a/e3/29b1b14dc20816c7cb4231d31f8cf5b099ecb9d455e3c2dd2abcebc0a271/pcalc-1.0.tar.gz" } ] }