Skip to main content

backports.httpmethod

PyPI - Version PyPI - Python Version

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.

Metadata

Release files for backports-httpmethod 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for backports-httpmethod 0.2.2
File Size Uploaded
backports_httpmethod-0.2.2.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backports-httpmethod 0.2.2
File Interpreter ABI Platform
backports_httpmethod-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / backports_httpmethod-0.2.2.tar.gz

Download URL backports_httpmethod-0.2.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
df62439b80a958f62c52bf5d8332587fd4198bdc4afea41d550083f503e669ec
BLAKE2b-256 checksum
How to use checksums
ae5da03be32c1659ae423bb9c15bffac7507de93b93a6a2f5b4076603e65ac08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.

Transparency log

Release files / backports_httpmethod-0.2.2-py3-none-any.whl

Download URL backports_httpmethod-0.2.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05c738c1da22a8d771a4429594faef014427ad65583c1ededc97c9ea11371cf1
BLAKE2b-256 checksum
How to use checksums
b2753afabbc67d9eebea3bf37d49bac9025c0e0df78576124a83fc4a98fd052c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page