backports-httpmethod


Namebackports-httpmethod JSON
Version 0.2.0 PyPI version JSON
download
home_page
SummaryA backport of Python 3.11+ `http.HTTPMethod` enum
upload_time2024-02-02 04:34:48
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT 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": "",
    "name": "backports-httpmethod",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Edgar Ram\u00edrez-Mondrag\u00f3n <edgarrmondragon@hey.com>",
    "keywords": "backports,enum,http,httpmethod",
    "author": "",
    "author_email": "Edgar Ram\u00edrez-Mondrag\u00f3n <edgarrmondragon@hey.com>",
    "download_url": "https://files.pythonhosted.org/packages/39/1a/9d32a974c507635875db5972c8adc5c1224bc61362e8cf3710442c0e7400/backports_httpmethod-0.2.0.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.0",
    "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": "bf6916339d6925bd58ae7b6e99408c63868868f5bc75dcba1266a5f6c074fdf1",
                "md5": "8100a5c4752cc4e6c53298ce17c3f68d",
                "sha256": "6f055b990c645588f621b951d65fe635d5ee09c973ea785c9788a9f3fb865e9f"
            },
            "downloads": -1,
            "filename": "backports_httpmethod-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8100a5c4752cc4e6c53298ce17c3f68d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4108,
            "upload_time": "2024-02-02T04:34:47",
            "upload_time_iso_8601": "2024-02-02T04:34:47.101823Z",
            "url": "https://files.pythonhosted.org/packages/bf/69/16339d6925bd58ae7b6e99408c63868868f5bc75dcba1266a5f6c074fdf1/backports_httpmethod-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "391a9d32a974c507635875db5972c8adc5c1224bc61362e8cf3710442c0e7400",
                "md5": "edce1fc05542237aa264dc9ce7f7ec7d",
                "sha256": "7f9ba53a2e4b1cd33eddf09a552c1718aa35eeb1dc5b2fdef110c60f5b1a54cd"
            },
            "downloads": -1,
            "filename": "backports_httpmethod-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "edce1fc05542237aa264dc9ce7f7ec7d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6556,
            "upload_time": "2024-02-02T04:34:48",
            "upload_time_iso_8601": "2024-02-02T04:34:48.742792Z",
            "url": "https://files.pythonhosted.org/packages/39/1a/9d32a974c507635875db5972c8adc5c1224bc61362e8cf3710442c0e7400/backports_httpmethod-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-02 04:34:48",
    "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"
}
        
Elapsed time: 0.18152s