{ "info": { "author": "TUNE Inc.", "author_email": "jefft@tune.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: PyPy" ], "description": ".. -*- mode: rst -*-\n\npyhttpstatus-utils\n------------------\n\nExtension of Python Standard Library's `http.HTTPStatus `_ providing mapping of HTTP statuses.\n\nBadges\n------\n\n.. start-badges\n\n.. list-table::\n :stub-columns: 1\n\n * - docs\n - |docs| |license|\n * - info\n - |hits| |contributors|\n * - tests\n - |travis| |coveralls|\n * - package\n - |version| |supported-versions|\n * - other\n - |requires|\n\n.. |docs| image:: https://readthedocs.org/projects/pyhttpstatus-utils/badge/?style=flat\n :alt: Documentation Status\n :target: http://pyhttpstatus-utils.readthedocs.io\n\n.. |hits| image:: http://hits.dwyl.io/TuneLab/pyhttpstatus-utils.svg\n :alt: Hit Count\n :target: http://hits.dwyl.io/TuneLab/pyhttpstatus-utils\n\n.. |contributors| image:: https://img.shields.io/github/contributors/TuneLab/pyhttpstatus-utils.svg\n :alt: Contributors\n :target: https://github.com/TuneLab/pyhttpstatus-utils/graphs/contributors\n\n.. |license| image:: https://img.shields.io/badge/License-MIT-yellow.svg\n :alt: License Status\n :target: https://opensource.org/licenses/MIT\n\n.. |travis| image:: https://travis-ci.org/TuneLab/pyhttpstatus-utils.svg?branch=master\n :alt: Travis-CI Build Status\n :target: https://travis-ci.org/TuneLab/pyhttpstatus-utils\n\n.. |coveralls| image:: https://coveralls.io/repos/TuneLab/pyhttpstatus-utils/badge.svg?branch=master&service=github\n :alt: Code Coverage Status\n :target: https://coveralls.io/r/TuneLab/pyhttpstatus-utils\n\n.. |version| image:: https://img.shields.io/pypi/v/pyhttpstatus-utils.svg?style=flat\n :alt: PyPI Package latest release\n :target: https://pypi.python.org/pypi/pyhttpstatus-utils\n\n.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/pyhttpstatus-utils.svg?style=flat\n :alt: Supported versions\n :target: https://pypi.python.org/pypi/pyhttpstatus-utils\n\n.. |requires| image:: https://requires.io/github/TuneLab/pyhttpstatus-utils/requirements.svg?branch=master\n :alt: Requirements Status\n :target: https://requires.io/github/TuneLab/pyhttpstatus-utils/requirements/?branch=master\n\n.. end-badges\n\n\nInstall\n-------\n\n.. code-block:: bash\n\n pip install pyhttpstatus-utils\n\nFunctions\n---------\n\n- ``create_http_status_dict(override_dict=None)``: Create HTTP Status Dictionary with Overrides if provided.\n- ``get_http_status_desc(http_status_code)``: Get HTTP status code description.\n- ``get_http_status_name(http_status_code)``: Get HTTP status code name.\n- ``get_http_status_phrase(http_status_code)``: Get HTTP status code phrase.\n- ``get_http_status_type(http_status_code)``: Get HTTP status code type.\n- ``is_http_status_successful(http_status_code)``: Check if HTTP Status Code is type Successful\n- ``is_http_status_type(http_status_code)``: Match if provided HTTP Status Code is expected HTTP Status Code Type.\n- ``validate_http_code(http_code, minimum=100, maximum=599, strict=True, default_http_code=0)``: Validate HTTP code. If strict, throw, else just return default_http_code.\n\nDictionaries\n------------\n\n- ``HTTP_STATUS_DICT``: Extracted from ``http.HTTPStatus``, a dictionary of each HTTP Status' name, code, phrase, and description.\n- ``HTTP_STATUS_PHRASE_DICT``: Phrases of HTTP status codes.\n- ``HTTP_STATUS_DESC_DICT``: Description of HTTP status codes.\n- ``HTTP_STATUS_TYPE_DICT``: Types of HTTP status codes.\n\nEnum Classes\n------------\n\n- ``HttpStatusCode``: Static enumeration of HTTP status mapping names to codes\n- ``HttpStatusType``: Static enumeration of HTTP status mapping types to phrase\n- ``HttpStatusCodeType``: Int enumeration of HTTP status mapping types to codes\n\nHTTP Status Code Types\n----------------------\n\n- 100: HttpStatusType.INFORMATIONAL,\n- 200: HttpStatusType.SUCCESSFUL,\n- 300: HttpStatusType.REDIRECTION,\n- 400: HttpStatusType.CLIENT_ERROR,\n- 500: HttpStatusType.SERVER_ERROR\n\n\nRequirements\n------------\n\n``pyhttpstatus-utils`` module is built upon Python 3 and has dependencies upon\nseveral Python modules available within `Python Package Index PyPI `_.\n\n.. code-block:: bash\n\n make install-requirements\n\nor\n\n.. code-block:: bash\n\n python3 -m pip uninstall --yes --no-input -r requirements.txt\n python3 -m pip install --upgrade -r requirements.txt\n\n\n\n.. :changelog:\n\nRelease History\n===============\n\n0.3.3 (2018-02-20)\n------------------\n- Python 2.7 supported\n- Travis CI testing both Python 2.7 and 3.6.\n- Backport Python 3.6 http.HttpStatus for support in Python 2.7 to Python 3.4.\n\n0.3.2 (2018-02-16)\n------------------\n- migrate to github/TuneLab\n\n0.3.1 (2018-01-25)\n------------------\n- migrate to github/tuneinc\n\n0.2.2 (2017-12-10)\n------------------\n- readthedocs.org\n\n0.2.0 (2017-12-05)\n------------------\n- README.rst\n- Tests\n- Travis CI\n\n0.1.1 (2016-11-22)\n------------------\n- Makefile and yapf cleanup\n\n0.1.0 (2016-11-17)\n------------------\n- Initial Code\n- Code pulled from TuneLab/tune-mv-integration-python\n\n0.0.1 (2016-11-17)\n------------------\n- Initial commit\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/TuneLab/pyhttpstatus-utils/archive/v0.3.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/TuneLab/pyhttpstatus-utils", "keywords": "http httpstatus utilities tune", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "pyhttpstatus-utils", "package_url": "https://pypi.org/project/pyhttpstatus-utils/", "platform": "", "project_url": "https://pypi.org/project/pyhttpstatus-utils/", "project_urls": { "Download": "https://github.com/TuneLab/pyhttpstatus-utils/archive/v0.3.3.tar.gz", "Homepage": "https://github.com/TuneLab/pyhttpstatus-utils" }, "release_url": "https://pypi.org/project/pyhttpstatus-utils/0.3.3/", "requires_dist": null, "requires_python": "", "summary": "Extension of Python Standard Library http.HTTPStatus providing addtional utilities.", "version": "0.3.3" }, "last_serial": 3852704, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "01a7bc7b55c54ecf81c0962ed6540096", "sha256": "5faf30fae118037c378a5bfb3c0cdcbe10b955f510f6cdfc9a5d31d5a0c2ff76" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.2.0-py3.6.egg", "has_sig": false, "md5_digest": "01a7bc7b55c54ecf81c0962ed6540096", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 17586, "upload_time": "2017-12-05T20:34:54", "url": "https://files.pythonhosted.org/packages/90/d8/f2cf2f7c7d99628c3e47e1433efd89016968cf73aec9deb48500b6c8084b/pyhttpstatus_utils-0.2.0-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "4b5986abed034d5483f8d91dbc001d48", "sha256": "277b0945c83d794c59a53f7ee499181513e1e55ff2bbbf4d6f82867727ee6b62" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4b5986abed034d5483f8d91dbc001d48", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 12200, "upload_time": "2017-12-05T20:34:51", "url": "https://files.pythonhosted.org/packages/38/4d/4262b04226f79e1c95190101138f36073d42fcb68afb2e2c56c425a65a51/pyhttpstatus_utils-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "779b0a7f63b022151eea614ce1c2c28a", "sha256": "4dda6cf3810241aa454bb704856ee326714d42674f5171cd67b3ea64316c7baa" }, "downloads": -1, "filename": "pyhttpstatus-utils-0.2.0.tar.gz", "has_sig": false, "md5_digest": "779b0a7f63b022151eea614ce1c2c28a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10010, "upload_time": "2017-12-05T20:34:57", "url": "https://files.pythonhosted.org/packages/2c/6e/13f2c5c70eebdd09a3988d3ff6bbdb2caf5540f6a79f80abd12f50a260e8/pyhttpstatus-utils-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "0a97e678513efed8d315b2b870f2ceb5", "sha256": "c6082333b98958a4d5605044c6cf37781d7202f1f4adadb20c528043c6fd9468" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.2.1-py3.6.egg", "has_sig": false, "md5_digest": "0a97e678513efed8d315b2b870f2ceb5", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 17616, "upload_time": "2017-12-10T17:00:55", "url": "https://files.pythonhosted.org/packages/f3/14/933b9257d7b59f114db6d11d2d10b2fbfa2e85293638daee2de8af5c0926/pyhttpstatus_utils-0.2.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "bbbc0c199f368fe53ae66dc285881fd7", "sha256": "7effaf2f5fd0a45b47a0d737b31945c772bef0966a4d8f07e4013e41b66fe8d9" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bbbc0c199f368fe53ae66dc285881fd7", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 12326, "upload_time": "2017-12-10T17:00:51", "url": "https://files.pythonhosted.org/packages/3c/b5/79ae18812c6f13f90842a83fa09773d8bf44ac4ce61c1ebda45a16cd3521/pyhttpstatus_utils-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "89e1ab0849d2256a0a5d947a489e3eaf", "sha256": "e0014624a420d4835cbd70b69b3508377447affb1bfa0adc35274c5878041f4c" }, "downloads": -1, "filename": "pyhttpstatus-utils-0.2.1.tar.gz", "has_sig": false, "md5_digest": "89e1ab0849d2256a0a5d947a489e3eaf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10088, "upload_time": "2017-12-10T17:01:00", "url": "https://files.pythonhosted.org/packages/f2/2a/826d45b47b676d47427c20dde1e89900dd5838cbb159cc6bf5b345dc2647/pyhttpstatus-utils-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "9bdb403f156499f5da8f0a33d87d4617", "sha256": "ef44c069677910bee483dfc14235023db8f8322f5275ae979f6a9445b47fb16f" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.2.2-py3.6.egg", "has_sig": false, "md5_digest": "9bdb403f156499f5da8f0a33d87d4617", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 17615, "upload_time": "2017-12-10T17:01:35", "url": "https://files.pythonhosted.org/packages/c3/fb/95684dc8c08dff2bf2aea8f99c08c78535d722fcea7a6eb2ee92a18e65fe/pyhttpstatus_utils-0.2.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "ed882043ede6fc8c55c7fd90613b4a62", "sha256": "fef0084b3903b877d7def64b88e6f6995fbf3a33a1e33b2fa79a32642d2f1853" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ed882043ede6fc8c55c7fd90613b4a62", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 12329, "upload_time": "2017-12-10T17:01:31", "url": "https://files.pythonhosted.org/packages/22/4c/98142e182454badcef997f34f2627f3e6f053d5af382cac8fb8108077f3c/pyhttpstatus_utils-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1776132d2688a31769213924456933f9", "sha256": "f1fbb99fabaf894967e1e11420a894207d08ecfe9e90fd154eb1f262fc366c28" }, "downloads": -1, "filename": "pyhttpstatus-utils-0.2.2.tar.gz", "has_sig": false, "md5_digest": "1776132d2688a31769213924456933f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10082, "upload_time": "2017-12-10T17:01:39", "url": "https://files.pythonhosted.org/packages/ae/9c/f717ab8308c45980d6766bfd996c6251fb15467fefbfd2551f42ad4d063e/pyhttpstatus-utils-0.2.2.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "218abc18cfb82e50722a91f87e3f19e3", "sha256": "c6ba94d9d7e687473fa7c23a694de6350802960a9e69d08a009678de898aa2ec" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "218abc18cfb82e50722a91f87e3f19e3", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 13275, "upload_time": "2018-01-28T18:53:25", "url": "https://files.pythonhosted.org/packages/a2/84/7c39b5a448c6b063dd2ba77636f1ed794bd057772cbc5dedd6af184b5f1c/pyhttpstatus_utils-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "89c2e69679385e2e3af3925c84095859", "sha256": "edab9869e0959d9e16afa131e5cb4a92ff31bd370eb2419db70ae3223697ea87" }, "downloads": -1, "filename": "pyhttpstatus-utils-0.3.1.tar.gz", "has_sig": false, "md5_digest": "89c2e69679385e2e3af3925c84095859", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12080, "upload_time": "2018-01-28T18:53:23", "url": "https://files.pythonhosted.org/packages/eb/63/94a57b22f5758dbb507b55ab03fff670008be4bcc2e0e168b3354f1c0b81/pyhttpstatus-utils-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "d528e3271ad47f79deaa2c609f273453", "sha256": "ca55467d3e1b3b23e50a3b00b484ca6ca980eb021d640d232ddeda04d7325167" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d528e3271ad47f79deaa2c609f273453", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 13300, "upload_time": "2018-02-18T17:42:53", "url": "https://files.pythonhosted.org/packages/f5/60/34276df281c7e90ed99d3c2ef0fa75c82bc1f946f1df928e98d3b7ca6f87/pyhttpstatus_utils-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d0fd3208563d0d696b2e49ac2fb850f8", "sha256": "8fa1482d5ea17fcf9fb4612f9347bb433cbf10ea4079f47083c11f5f7d6081b6" }, "downloads": -1, "filename": "pyhttpstatus-utils-0.3.2.tar.gz", "has_sig": false, "md5_digest": "d0fd3208563d0d696b2e49ac2fb850f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12118, "upload_time": "2018-02-18T17:42:51", "url": "https://files.pythonhosted.org/packages/a5/1a/f1a7435a7832485ddcb2c1449b63b229b6afb9af002d9a767983f1d91e6d/pyhttpstatus-utils-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "94033ff1f83767e13fa8da9c826cdd2d", "sha256": "3977f3abb80c1de03498afd12caa4004967209e4528d87bd1ab43b1be9e56e2d" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "94033ff1f83767e13fa8da9c826cdd2d", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 14172, "upload_time": "2018-02-20T21:39:48", "url": "https://files.pythonhosted.org/packages/9f/30/d6531a8b47dda6a9cdecd6e4b1b6ef0cb2b9bb21dac1645f89927a6c659e/pyhttpstatus_utils-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c3e7fc09931bad28ba65edc2dbc44994", "sha256": "0fedfe651bad96c4cf48ffb4f6d8fafd491377be0036df8bfb65c6a4b19f41a7" }, "downloads": -1, "filename": "pyhttpstatus-utils-0.3.3.tar.gz", "has_sig": false, "md5_digest": "c3e7fc09931bad28ba65edc2dbc44994", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12111, "upload_time": "2018-02-20T21:39:46", "url": "https://files.pythonhosted.org/packages/13/87/702a313fc17e42bdbbcb1e23c2e057c5ca652fe830bfe0fed3388d4ccfec/pyhttpstatus-utils-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "94033ff1f83767e13fa8da9c826cdd2d", "sha256": "3977f3abb80c1de03498afd12caa4004967209e4528d87bd1ab43b1be9e56e2d" }, "downloads": -1, "filename": "pyhttpstatus_utils-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "94033ff1f83767e13fa8da9c826cdd2d", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 14172, "upload_time": "2018-02-20T21:39:48", "url": "https://files.pythonhosted.org/packages/9f/30/d6531a8b47dda6a9cdecd6e4b1b6ef0cb2b9bb21dac1645f89927a6c659e/pyhttpstatus_utils-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c3e7fc09931bad28ba65edc2dbc44994", "sha256": "0fedfe651bad96c4cf48ffb4f6d8fafd491377be0036df8bfb65c6a4b19f41a7" }, "downloads": -1, "filename": "pyhttpstatus-utils-0.3.3.tar.gz", "has_sig": false, "md5_digest": "c3e7fc09931bad28ba65edc2dbc44994", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12111, "upload_time": "2018-02-20T21:39:46", "url": "https://files.pythonhosted.org/packages/13/87/702a313fc17e42bdbbcb1e23c2e057c5ca652fe830bfe0fed3388d4ccfec/pyhttpstatus-utils-0.3.3.tar.gz" } ] }