Skip to main content
https://img.shields.io/pypi/v/backports.method_request.svg https://img.shields.io/pypi/pyversions/backports.method_request.svg https://img.shields.io/pypi/dm/backports.method_request.svg https://img.shields.io/travis/jaraco/backports.method_request/master.svg

A backport of the urllib.request.MethodRequest class from Python 3.4 which allows overriding of the method in a class attribute or as a keyword parameter to the initializer.

See Python 18978 for details.

Works on Python 2.6 and later.

License

License is indicated in the project metadata (typically one or more of the Trove classifiers). For more details, see this explanation.

Usage

Use method_request.Request in place of urllib.request.Request:

from backports.method_request import Request

req = Request(..., method='PATCH')
resp = urllib.request.urlopen(req)
...

Metadata

Release files for backports.method_request 1.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.method_request 1.2
File Size Uploaded Provenance
backports.method_request-1.2.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for backports.method_request 1.2
File Interpreter ABI Platform
backports.method_request-1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 8.8 kB

Release files / backports.method_request-1.2.tar.gz

Download URL backports.method_request-1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dc9cea0df80dffb700b7c22080f51dedfa7cc8c54314b56ee823c2fb46c0b4c2
BLAKE2b-256 checksum
How to use checksums
be600181fb9d6648fc8d85f634a7813aa7b4c1a990b3b09c75f8852222db3f01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / backports.method_request-1.2-py2.py3-none-any.whl

Download URL backports.method_request-1.2-py2.py3-none-any.whl
Size 4.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c9aa47b22d313dbfe8f1805492007f283710bea509200bdbbc741dabe104cff8
BLAKE2b-256 checksum
How to use checksums
ea8ac88c5a311ac4779eb8d7c97cbe4d6b405cc8bada83f5dcafed28b8921d5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for backports.method_request 1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files No provenance

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