{ "info": { "author": "Robert Smallshire", "author_email": "rob@sixty-north.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries" ], "description": "renard\n======\n\nThe Renard series are a system of preferred numbers used in\nengineering applications which specifies a geometric sequence\nof numbers over the range one to ten. The numbers\nare selected to be convenient to use an to minimise the\nmaximum relative error when an arbitrary number is replaced\nby the nearest Renard number. The series were proposed by the\nFrench army engineer Colonel Charles Renard and subsequently\nstandardised in ISO 3-1973.\n\nFor example, the R5 series contains six values\n(1.0, 1.6, 2.5, 4.0, 6.3) which cover a one-order of magnitude\nrange of values (one decade) from one to ten.\nThese base values repeat again to cover the next decade from 10\nto 100, as 10, 16, 25, 40, and 63.\n\nThis ``renard`` library is useful for selecting values from the\nleast rounded R5, R10, R20, R40 and R80 decades, the medium\nrounded RR10, RR20 and RR40 decades, and the most rounded RRR5,\nRRR10 and RRR20 decades.\n\n\n\nStatus\n------\n\n.. image:: https://travis-ci.org/rob-smallshire/renard.svg?branch=master\n :target: https://travis-ci.org/rob-smallshire/renard\n\n.. image:: https://coveralls.io/repos/github/rob-smallshire/renard/badge.svg?branch=master\n :target: https://coveralls.io/github/rob-smallshire/renard?branch=master\n\n\n\nInstallation\n------------\n\nThe ``renard`` package is available on the Python Package Index (PyPI):\n\n.. image:: https://badge.fury.io/py/renard.svg\n :target: https://badge.fury.io/py/renard\n\nThe package supports Python 3 only. To install::\n\n $ pip install renard\n\nPython Interface\n----------------\n\nFor full help::\n\n >>> import renard\n >>> help(renard)\n\nIn the meantime, here are some highlights.\n\nTo find the nearest E24 value to 319 use::\n\n >>> from renard import find_nearest, R20\n >>> find_nearest(R20, 319)\n >>> 315.0\n\n\nTo find the next value greater-than or equal-to 184 in the E96 series\nuse::\n\n >>> from renard import find_greater_than_or_equal, R80\n >>> find_greater_than_or_equal(R80, 182)\n >>> 185.0\n\nTo find a few values around the specified value, use::\n\n >>> from renard import find_nearest_few, R20\n >>> find_nearest_few(R20, 5000)\n >>> (4500.0, 5000.0, 5600.0)\n\n\nCommand-Line Interface\n----------------------\n\nThere's also a handy command-line interface. Run ``eseries --help``\nto see a list of commands::\n\n $ renard --help\n renard\n\n Usage: renard [options] [ ...]\n\n Options:\n -h --help Show this screen.\n -v --verbose Use verbose logging\n\n Available commands:\n ge\n gt\n help\n le\n lt\n nearby\n nearest\n range\n series\n precision\n\n\n See 'renard help ' for help on specific commands.\n\n\nTo find a nearby value, use::\n\n $ renard nearest R20 37726\n 35.5e3\n\nIf you prefer an SI exponent symbol, supply ``--symbol`` or ``-s``::\n\n $ renard nearest R20 37726 -s\n 35.5 k\n\nTo show values around the given value, use the ``nearby`` command::\n\n $ renard nearby R40 52e6 -s\n 50 M\n 53 M\n 56 M\n\nTo show the smallest value greater than or equal to the given value, use the ``ge`` command::\n\n $ renard ge R40 52e3 -s\n 53 k\n\nTo show all values in an inclusive range, use the ``range`` command::\n\n $ renard range R5 74e-9 34e-6 -s\n 100 n\n 160 n\n 250 n\n 400 n\n 630 n\n 1 \u00b5\n 1.6 \u00b5\n 2.5 \u00b5\n 4 \u00b5\n 6.3 \u00b5\n 10 \u00b5\n 16 \u00b5\n 25 \u00b5\n\nTo use the most-rounded Renard R\"20 series (for syntactic reasons, R'20 is called\nRR20 and R\" is called RRR20 on the command line)::\n\n $ renard range RRR20 10000 20000\n 10e3\n 11e3\n 12e3\n 14e3\n 16e3\n 18e3\n 20e3\n\n\nTo determine the multiple to which the base values of a series have\nbeen rounded, use the ``precision`` command::\n\n $ renard precision R5\n 0.01\n\n\n\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/rob-smallshire/renard", "keywords": "engineering preferred-numbers", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "renard", "package_url": "https://pypi.org/project/renard/", "platform": "", "project_url": "https://pypi.org/project/renard/", "project_urls": { "Homepage": "https://github.com/rob-smallshire/renard" }, "release_url": "https://pypi.org/project/renard/1.3.1/", "requires_dist": [ "docopt-subcommands", "check-manifest; extra == 'dev'", "wheel; extra == 'dev'", "sphinx; extra == 'doc'", "cartouche; extra == 'doc'", "coverage; extra == 'test'", "hypothesis; extra == 'test'", "pytest; extra == 'test'" ], "requires_python": "", "summary": "Working with the Renard series of preferred numbers specified in ISO 3.", "version": "1.3.1" }, "last_serial": 3403536, "releases": { "1.1.1": [ { "comment_text": "", "digests": { "md5": "8216e65c28aa848d114162537115ccf4", "sha256": "40607dd7383ce70664d884752f04a32822f9a62b0f96c9b5bbe12c38a71f1424" }, "downloads": -1, "filename": "renard-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8216e65c28aa848d114162537115ccf4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11183, "upload_time": "2017-12-08T23:16:19", "url": "https://files.pythonhosted.org/packages/47/39/808f78e9efaf66b38e30daa90c914e064b23067bcb7df56972203240610a/renard-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6fb2664baeb426b2d6c79f0506a702f", "sha256": "132dccced679488875f94bed49d8645a478f94cb7207876680c077756e9d232e" }, "downloads": -1, "filename": "renard-1.1.1.tar.gz", "has_sig": false, "md5_digest": "c6fb2664baeb426b2d6c79f0506a702f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11735, "upload_time": "2017-12-08T23:16:20", "url": "https://files.pythonhosted.org/packages/91/3a/cf6957fac3b3c6d8b4142a0090826f990c0c2d04a3800538bd3d32b8a00c/renard-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "dbc2ada6c3ea70611d03f0b9745d6f64", "sha256": "a8f70abb0f4777709f5f8cbc7ece34106f3df9ee7c2b556c71dc0f7d6b840097" }, "downloads": -1, "filename": "renard-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "dbc2ada6c3ea70611d03f0b9745d6f64", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11439, "upload_time": "2017-12-09T12:03:30", "url": "https://files.pythonhosted.org/packages/b4/7b/8bb9aea49a8e5e7948128f71af173777deb2e07d3b5d8b2885fd94cb1295/renard-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "119157731f930b34ae39e4aba190d77d", "sha256": "ec0fca8e949881c4aad376c571be377a22529085aabf7d3f7703cef6364db8df" }, "downloads": -1, "filename": "renard-1.2.0.tar.gz", "has_sig": false, "md5_digest": "119157731f930b34ae39e4aba190d77d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12111, "upload_time": "2017-12-09T12:03:32", "url": "https://files.pythonhosted.org/packages/61/e4/2d42502e56a9c3073d8c596b510dfc133d943842897e7be52940a203cd4f/renard-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "35bd17a7f8571128ed29b6250f17f06d", "sha256": "c7bb280b9fd8f8052d3de1091dab8dbc3e9c1f492f3c837610ffafc59c27df79" }, "downloads": -1, "filename": "renard-1.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "35bd17a7f8571128ed29b6250f17f06d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11737, "upload_time": "2017-12-09T12:22:15", "url": "https://files.pythonhosted.org/packages/6a/7e/e5f9f0153ac605f255e2308943605784a08cbac5d63b2b2a862e07f399c5/renard-1.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "786e937f5f303b155c687c3189ee3dc2", "sha256": "2dff80f9557f0cd96b2792c08be47f69559b41e51417be9c84755176928a99a4" }, "downloads": -1, "filename": "renard-1.3.0.tar.gz", "has_sig": false, "md5_digest": "786e937f5f303b155c687c3189ee3dc2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12511, "upload_time": "2017-12-09T12:22:18", "url": "https://files.pythonhosted.org/packages/88/10/38593f760088255c5497b9e938953d769eaa7fcdbeb0c4f715ea9072e30a/renard-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "20455d68ff32e318bd8377f6cef3bb3e", "sha256": "e48c75e93403cb6eba16700b61fb7349771ebbaf6954db8bb8b5b62ba9af7303" }, "downloads": -1, "filename": "renard-1.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "20455d68ff32e318bd8377f6cef3bb3e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11739, "upload_time": "2017-12-09T12:43:46", "url": "https://files.pythonhosted.org/packages/ee/2b/3ea355afe97266cc3ebf056ffc985b2ee5b3d44aa780712e2a7c16161d4d/renard-1.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "832d5e11143fc8ec57d0f519fd453a88", "sha256": "d9e9797598cf9a2e00f4b380453034f3f0b71543cc1be60070937c28aef3a77b" }, "downloads": -1, "filename": "renard-1.3.1.tar.gz", "has_sig": false, "md5_digest": "832d5e11143fc8ec57d0f519fd453a88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12536, "upload_time": "2017-12-09T12:43:48", "url": "https://files.pythonhosted.org/packages/d1/0b/c179161131ca9398a101d960f165f1c5a9c2c5d9f9dfcfbe3f4a479a27d9/renard-1.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "20455d68ff32e318bd8377f6cef3bb3e", "sha256": "e48c75e93403cb6eba16700b61fb7349771ebbaf6954db8bb8b5b62ba9af7303" }, "downloads": -1, "filename": "renard-1.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "20455d68ff32e318bd8377f6cef3bb3e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11739, "upload_time": "2017-12-09T12:43:46", "url": "https://files.pythonhosted.org/packages/ee/2b/3ea355afe97266cc3ebf056ffc985b2ee5b3d44aa780712e2a7c16161d4d/renard-1.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "832d5e11143fc8ec57d0f519fd453a88", "sha256": "d9e9797598cf9a2e00f4b380453034f3f0b71543cc1be60070937c28aef3a77b" }, "downloads": -1, "filename": "renard-1.3.1.tar.gz", "has_sig": false, "md5_digest": "832d5e11143fc8ec57d0f519fd453a88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12536, "upload_time": "2017-12-09T12:43:48", "url": "https://files.pythonhosted.org/packages/d1/0b/c179161131ca9398a101d960f165f1c5a9c2c5d9f9dfcfbe3f4a479a27d9/renard-1.3.1.tar.gz" } ] }