Name | backports-httpmethod JSON |
Version |
0.2.1
JSON |
| download |
home_page | None |
Summary | A backport of Python 3.11+ `http.HTTPMethod` enum |
upload_time | 2024-07-08 19:48:25 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | MIT License Copyright (c) 2023-present Edgar Ramírez-Mondragón <edgarrmondragon@hey.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
backports
enum
http
httpmethod
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# backports.httpmethod
[![PyPI - Version](https://img.shields.io/pypi/v/backports.httpmethod.svg)](https://pypi.org/project/backports.httpmethod)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/backports-httpmethod.svg)](https://pypi.org/project/backports.httpmethod)
A backport of Python 3.11+ [`http.HTTPMethod`](https://docs.python.org/3/library/http.html#http.HTTPMethod) enum for Python 3.7+.
-----
**Table of Contents**
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
## Installation
```console
pip install backports.httpmethod
```
## Usage
```python
import sys
if sys.version_info >= (3, 11):
from http import HTTPMethod
else:
from backports.httpmethod import HTTPMethod
HTTPMethod.GET == 'GET' # True
HTTPMethod.GET.value # 'GET'
HTTPMethod.GET.description # 'Retrieve the target.'
list(HTTPMethod)[:3] # [<HTTPMethod.GET: 'GET'>, <HTTPMethod.HEAD: 'HEAD'>, <HTTPMethod.POST: 'POST'>]
```
## License
`backports-httpmethod` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
Raw data
{
"_id": null,
"home_page": null,
"name": "backports-httpmethod",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "Edgar Ram\u00edrez-Mondrag\u00f3n <edgarrmondragon@hey.com>",
"keywords": "backports, enum, http, httpmethod",
"author": null,
"author_email": "Edgar Ram\u00edrez-Mondrag\u00f3n <edgarrmondragon@hey.com>",
"download_url": "https://files.pythonhosted.org/packages/59/9a/a2d5d34f62039135fe7f876dcd6d70f98aa2b7c6946ce709b2344f658453/backports_httpmethod-0.2.1.tar.gz",
"platform": null,
"description": "# backports.httpmethod\n\n[![PyPI - Version](https://img.shields.io/pypi/v/backports.httpmethod.svg)](https://pypi.org/project/backports.httpmethod)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/backports-httpmethod.svg)](https://pypi.org/project/backports.httpmethod)\n\nA backport of Python 3.11+ [`http.HTTPMethod`](https://docs.python.org/3/library/http.html#http.HTTPMethod) enum for Python 3.7+.\n\n-----\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n\n## Installation\n\n```console\npip install backports.httpmethod\n```\n\n## Usage\n\n```python\nimport sys\n\nif sys.version_info >= (3, 11):\n from http import HTTPMethod\nelse:\n from backports.httpmethod import HTTPMethod\n\n\nHTTPMethod.GET == 'GET' # True\nHTTPMethod.GET.value # 'GET'\nHTTPMethod.GET.description # 'Retrieve the target.'\nlist(HTTPMethod)[:3] # [<HTTPMethod.GET: 'GET'>, <HTTPMethod.HEAD: 'HEAD'>, <HTTPMethod.POST: 'POST'>]\n```\n\n## License\n\n`backports-httpmethod` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023-present Edgar Ram\u00edrez-Mondrag\u00f3n <edgarrmondragon@hey.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "A backport of Python 3.11+ `http.HTTPMethod` enum",
"version": "0.2.1",
"project_urls": {
"Documentation": "https://github.com/edgarrmondragon/backports.httpmethod#readme",
"Issues": "https://github.com/edgarrmondragon/backports.httpmethod/issues",
"Source": "https://github.com/edgarrmondragon/backports.httpmethod"
},
"split_keywords": [
"backports",
" enum",
" http",
" httpmethod"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c66e5c6808bff6e2f34b55ca05aedc2475f14ff70388d05f4556e89085b73e7d",
"md5": "b7743141b19d5f6b5fe66b2408c82e4b",
"sha256": "0ff5d1323c6dfaaa436c69673307dbf555dc623de92d33063cf9de1cbe9ce558"
},
"downloads": -1,
"filename": "backports_httpmethod-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b7743141b19d5f6b5fe66b2408c82e4b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4111,
"upload_time": "2024-07-08T19:48:24",
"upload_time_iso_8601": "2024-07-08T19:48:24.671943Z",
"url": "https://files.pythonhosted.org/packages/c6/6e/5c6808bff6e2f34b55ca05aedc2475f14ff70388d05f4556e89085b73e7d/backports_httpmethod-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "599aa2d5d34f62039135fe7f876dcd6d70f98aa2b7c6946ce709b2344f658453",
"md5": "4fdb43cfc99e37ac21f380633f9eb98e",
"sha256": "dd730ceb82e646bbea5747ccdc89b670adfd1626a621282c51b1b514e89a88fe"
},
"downloads": -1,
"filename": "backports_httpmethod-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "4fdb43cfc99e37ac21f380633f9eb98e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6655,
"upload_time": "2024-07-08T19:48:25",
"upload_time_iso_8601": "2024-07-08T19:48:25.805858Z",
"url": "https://files.pythonhosted.org/packages/59/9a/a2d5d34f62039135fe7f876dcd6d70f98aa2b7c6946ce709b2344f658453/backports_httpmethod-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-08 19:48:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "edgarrmondragon",
"github_project": "backports.httpmethod#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "backports-httpmethod"
}