Skip to main content

Requests

Requests is a simple, yet elegant, HTTP library.

>>> import requests

>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))

>>> r.status_code

200

>>> r.headers['content-type']

'application/json; charset=utf8'

>>> r.encoding

'utf-8'

>>> r.text

'{"authenticated": true, ...'

>>> r.json()

{'authenticated': True, ...}

Requests allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your PUT & POST data — but nowadays, just use the json method!

Requests is one of the most downloaded Python packages today, pulling in around 30M downloads / week— according to GitHub, Requests is currently depended upon by 1,000,000+ repositories. You may certainly put your trust in this code.

Downloads

Supported Versions

Contributors

Installing Requests and Supported Versions

Requests is available on PyPI:

$ python -m pip install requests

Requests officially supports Python 3.7+.

Supported Features & Best–Practices

Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.

  • Keep-Alive & Connection Pooling

  • International Domains and URLs

  • Sessions with Cookie Persistence

  • Browser-style TLS/SSL Verification

  • Basic & Digest Authentication

  • Familiar dict–like Cookies

  • Automatic Content Decompression and Decoding

  • Multi-part File Uploads

  • SOCKS Proxy Support

  • Connection Timeouts

  • Streaming Downloads

  • Automatic honoring of .netrc

  • Chunked HTTP Requests

API Reference and User Guide available on Read the Docs

Read the Docs

Cloning the repository

When cloning the Requests repository, you may need to add the `-c

fetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see

this issue for more background):

git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git

You can also apply this setting to your global Git config:

git config --global fetch.fsck.badTimezone ignore

Kenneth Reitz Python Software Foundation

Metadata

Release files for requests-freeproxy 2.31.0

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

Source distribution (sdist)

Source distribution for requests-freeproxy 2.31.0
File Size Uploaded Provenance Actions
requests_freeproxy-2.31.0.tar.gz 112.6 kB Without provenance Details for requests_freeproxy-2.31.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for requests-freeproxy 2.31.0
File Interpreter ABI Platform Actions
requests_freeproxy-2.31.0-py3.10.egg Legacy Egg format - - Details for requests_freeproxy-2.31.0-py3.10.egg
requests_freeproxy-2.31.0-py3-none-any.whl Python 3 none any Details for requests_freeproxy-2.31.0-py3-none-any.whl

Total release size: 667.1 kB

Release files / requests_freeproxy-2.31.0.tar.gz

Download URL requests_freeproxy-2.31.0.tar.gz
Size 112.6 kB
Tags Source
SHA-256 checksum
How to use checksums
16e58fa41c43dc5d1c01207f7627ceb492217a8c9d7fe46a01bbba397f6833d2
BLAKE2b-256 checksum
How to use checksums
359e64c3577829ab5e37547014643013d0aa308f21814933d2642230f4a58b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / requests_freeproxy-2.31.0-py3.10.egg

Download URL requests_freeproxy-2.31.0-py3.10.egg
Size 379.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
f53e5910d834438c6e36e452eb5dff7dffe3c2673051ca647d711f4065c5d123
BLAKE2b-256 checksum
How to use checksums
7eab02e0888f535fc9a7ec07c603130771983d3cb7512a752353fb98c57d7f3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / requests_freeproxy-2.31.0-py3-none-any.whl

Download URL requests_freeproxy-2.31.0-py3-none-any.whl
Size 175.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be146533304f5697f426df8cfa3c16a81a2fda7b2432850a7397c4978df3d24d
BLAKE2b-256 checksum
How to use checksums
aba7627d07a053d9129d63bfb45867b7e3e5abfaf7fa3a305d485d161ce7d0b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for requests-freeproxy 2.31.0

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

2.31.0 This release

3 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