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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backports_httpmethod-0.2.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

backports_httpmethod-0.2.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for backports_httpmethod-0.2.2.tar.gz
Algorithm Hash digest
SHA256 df62439b80a958f62c52bf5d8332587fd4198bdc4afea41d550083f503e669ec
MD5 4e61dd000abc5e9fdd59275518b3b750
BLAKE2b-256 ae5da03be32c1659ae423bb9c15bffac7507de93b93a6a2f5b4076603e65ac08

See more details on using hashes here.

Provenance

The following attestation bundles were made for backports_httpmethod-0.2.2.tar.gz:

Publisher: release.yaml on edgarrmondragon/backports.httpmethod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file backports_httpmethod-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for backports_httpmethod-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05c738c1da22a8d771a4429594faef014427ad65583c1ededc97c9ea11371cf1
MD5 8c9ce5b36a54ade9371eda957c1d3c12
BLAKE2b-256 b2753afabbc67d9eebea3bf37d49bac9025c0e0df78576124a83fc4a98fd052c

See more details on using hashes here.

Provenance

The following attestation bundles were made for backports_httpmethod-0.2.2-py3-none-any.whl:

Publisher: release.yaml on edgarrmondragon/backports.httpmethod

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 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