Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

requests

2.34.2ActivePythie’s Index: 79

Python HTTP for Humans.

Actively maintained. Last release 7 months ago, commits in 15 of the last 26 weeks. A safe choice.

HTTP & Networking
$pip install requests
psf/requestsHomepageDocsPyPI

Requests

Version Supported Versions Downloads Contributors Documentation

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 300M downloads / week — according to GitHub, Requests is currently depended upon by 4,000,000+ repositories.

Installing Requests and Supported Versions

Requests is available on PyPI:

$ python -m pip install requests

Requests officially supports Python 3.10+.

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

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 timestamp (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

Popularity

Downloads / month
1.5B
GitHub stars
54.8K
Downloads, last 7 days
331.3M-6%
Stars, last 7 days
–
Direct dependents
92.8K
All dependents
190.6K

Pythie’s Index

How it works
79

Healthy

Maintenance, out of 100

  • Recent release

    last release 198 days ago

  • Commit activity

    15/26 weeks with commits

  • Release cadence

    6 releases in 12 months

  • Issues & PRs handled

    62% closed in the past year

  • Contributor spread

    23 authors in last 100 commits

  • OpenSSF Scorecard

    8.2/10

Commits, last 26 weeks29

Releases

Latest
2.34.2
Released
May 14, 2026
Releases, 12 months
6
First release
Feb 14, 2011

Compatibility

Requires Python
>=3.10
Tested on
3.10 · 3.11 · 3.12 · 3.13 · 3.14 · 3.15
License
Apache-2.0 (Permissive)

Keywords

pythonhttpforhumansrequestspython-requestsclienthumanscookies

Alternatives

Use instead of requests: tools that do the same job, closest first.

Compare with httpx →Compare with httpx2 →Compare with httplib2 →Compare all 4 →

  • httpx0.29.0ActivePythie’s Index: 60

    The next generation HTTP client.

    HTTP & NetworkingAsync & Concurrency15.9K832.8M/moReleased Nov 26, 2026
  • httpx22.16.2ActivePythie’s Index: 85

    The next generation HTTP client.

    HTTP & Networking1.7K477.4M/moReleased Nov 16, 2026
  • httplib20.32.1ActivePythie’s Index: 58

    A comprehensive HTTP client library.

    HTTP & Networking513132.1M/moReleased Oct 28, 2026
  • niquests3.21.3ActivePythie’s Index: 84

    Niquests is a simple, yet elegant, HTTP library. It is a drop-in replacement for Requests, which is under feature freeze.

    HTTP & Networking2.5K1.6M/moReleased Nov 9, 2026
  • httpr0.7.8ActivePythie’s Index: 84

    Fast HTTP client for Python

    HTTP & Networking–305.4K/moReleased Oct 21, 2026
  • impit0.15.3ActivePythie’s Index: 92

    A library for making HTTP requests through browser impersonation

    HTTP & NetworkingWeb Scraping & Automation6502.6M/moReleased Nov 11, 2026

Works well with

Use together with requests: extensions, drivers, servers and companion tools.

  • requests-oauthlibPythie’s Index: 18OAuthlib authentication support for Requests.272.5M downloads/mo
  • idnaPythie’s Index: 89Internationalized Domain Names in Applications (IDNA)1.7B downloads/mo
  • requests-toolbeltPythie’s Index: 23A utility belt for advanced users of python-requests224.2M downloads/mo
  • PySocksPythie’s Index: 17A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.45.9M downloads/mo
  • tweepyPythie’s Index: 43Library for accessing the X API (Twitter)3.3M downloads/mo
  • CacheControlPythie’s Index: 82httplib2 caching for requests107.5M downloads/mo