backports.httpmethod
A backport of Python 3.11+ http.HTTPMethod enum for Python 3.7+.
Table of Contents
Installation
pip install backports.httpmethod
Usage
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 license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file backports_httpmethod-0.2.2.tar.gz.
File metadata
- Download URL: backports_httpmethod-0.2.2.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df62439b80a958f62c52bf5d8332587fd4198bdc4afea41d550083f503e669ec
|
|
| MD5 |
4e61dd000abc5e9fdd59275518b3b750
|
|
| BLAKE2b-256 |
ae5da03be32c1659ae423bb9c15bffac7507de93b93a6a2f5b4076603e65ac08
|
Provenance
The following attestation bundles were made for backports_httpmethod-0.2.2.tar.gz:
Publisher:
release.yaml on edgarrmondragon/backports.httpmethod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
backports_httpmethod-0.2.2.tar.gz -
Subject digest:
df62439b80a958f62c52bf5d8332587fd4198bdc4afea41d550083f503e669ec - Sigstore transparency entry: 2141704155
- Sigstore integration time:
-
Permalink:
edgarrmondragon/backports.httpmethod@c6a43e65544776f77be006ee7930dea45a8b4510 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/edgarrmondragon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@c6a43e65544776f77be006ee7930dea45a8b4510 -
Trigger Event:
push
-
Statement type:
File details
Details for the file backports_httpmethod-0.2.2-py3-none-any.whl.
File metadata
- Download URL: backports_httpmethod-0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05c738c1da22a8d771a4429594faef014427ad65583c1ededc97c9ea11371cf1
|
|
| MD5 |
8c9ce5b36a54ade9371eda957c1d3c12
|
|
| BLAKE2b-256 |
b2753afabbc67d9eebea3bf37d49bac9025c0e0df78576124a83fc4a98fd052c
|
Provenance
The following attestation bundles were made for backports_httpmethod-0.2.2-py3-none-any.whl:
Publisher:
release.yaml on edgarrmondragon/backports.httpmethod
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
backports_httpmethod-0.2.2-py3-none-any.whl -
Subject digest:
05c738c1da22a8d771a4429594faef014427ad65583c1ededc97c9ea11371cf1 - Sigstore transparency entry: 2141704172
- Sigstore integration time:
-
Permalink:
edgarrmondragon/backports.httpmethod@c6a43e65544776f77be006ee7930dea45a8b4510 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/edgarrmondragon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@c6a43e65544776f77be006ee7930dea45a8b4510 -
Trigger Event:
push
-
Statement type: