Skip to main content

backports.method_request

Project description

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)
...

Project details


Download files

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

Source Distribution

backports.method_request-1.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

backports.method_request-1.2-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file backports.method_request-1.2.tar.gz.

File metadata

File hashes

Hashes for backports.method_request-1.2.tar.gz
Algorithm Hash digest
SHA256 dc9cea0df80dffb700b7c22080f51dedfa7cc8c54314b56ee823c2fb46c0b4c2
MD5 0d1fd4b3fa0a8a2007c763e37a966095
BLAKE2b-256 be600181fb9d6648fc8d85f634a7813aa7b4c1a990b3b09c75f8852222db3f01

See more details on using hashes here.

File details

Details for the file backports.method_request-1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for backports.method_request-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c9aa47b22d313dbfe8f1805492007f283710bea509200bdbbc741dabe104cff8
MD5 73a9fea061767534d03211356da351fa
BLAKE2b-256 ea8ac88c5a311ac4779eb8d7c97cbe4d6b405cc8bada83f5dcafed28b8921d5d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page