Library
psf / requests
A simple, yet elegant, HTTP library.
This connects Repowise to psf/requests's code. It does not install requests.
Repowise maps public repos from their source. Not affiliated with psf. What is Repowise?
github.com/psf/requestsIndexed at 3c7baaaUp to date with upstreamRefreshes on every push
What is requests?
Requests is an HTTP library for Python that sends HTTP/1.1 requests through a simple interface. It builds query strings and form-encodes PUT and POST data for the caller, so the caller does not have to do this by hand. The project is written in Python and is published on PyPI. To install it, run python -m pip install requests. Its code health is 6.2 out of 10 (Fair). The last commit to requests was on Jun 9, 2026, and 791 people have contributed.
As of commit 3c7baaa, indexed Oct 26, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.
For agentsrequests.md
Repo facts: type, license, health, rank, contributors
| Type | Library |
|---|---|
| License | Apache-2.0 |
| Code health | 6.2 / 10 (Fair) |
| Health rank | Not ranked (leaderboards need 100+ files) |
| Last commit | Jun 9, 2026 |
| Contributors | 791 |
| Bus factor | 2 |
| Size | 72 files, 9,312 lines |
Install requests
Commands copied from the README
- 1Install Requests from PyPI.
python -m pip install requests
Releases on GitHub (latest v2.34.2, May 14, 2026)
Explore requests
- DocumentationModule-by-module documentation, 110 pages.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Ask about this code in your agent
This connects Repowise to requests's code. It does not install requests. To install requests, use the install steps.
Useful if you want to change or fork requests: your agent can ask how it is put together and get answers that cite its files.
Ask about requests
Answers come from requests's README and source, with the files they cite. Two free answers a day without an account.
Want this for your own codebase? Map your repo free
About this page
Get a page like this for your own codebase
Repowise built this map of psf/requests from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Free for 2 public repos, with a page like this one. No card. See how Repowise works
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub
psf/requests FAQ
What is Requests?
Requests is an HTTP library for Python that sends HTTP/1.1 requests with a simple interface. It handles query strings and form-encoded data for you, and it is published on PyPI.
How does Requests work?
Requests works by calling functions such as requests.get on a URL and receiving a response object. The response exposes status_code, headers, text and a json method. Sessions keep cookies between requests.
How do I install Requests?
Install Requests by running python -m pip install requests. The package is available on PyPI and officially supports Python 3.10 and later. See the install steps
What language is Requests written in?
Requests is written in Python. The repository has 37 Python files and 8 Makefile files.
How is the Requests code organized?
The package source is in src, with the entry point src/requests/__init__.py. Tests are in the tests directory, documentation is in docs, and project metadata is in pyproject.toml.
When should I use Requests?
Use Requests when your Python code needs to send HTTP/1.1 requests. It covers sessions with cookie persistence, Basic and Digest authentication, and streaming downloads.
What license does Requests use?
Requests uses the Apache-2.0 license.
Code health
Key features of requests
- Keeps connections alive and pools them for reuse.
- Manages sessions that persist cookies between requests.
- Supports Basic and Digest authentication, along with SOCKS proxies.
- Sends multi-part file uploads and chunked HTTP requests.
- Streams downloads and automatically decompresses and decodes content.
How psf/requests works
Input enters through the entry point src/requests/__init__.py, which is loaded when a program runs import requests. The package source sits in the src directory, which holds 19 files. Calls return a response object with attributes such as status_code, headers and text, plus a json method, as the README example shows. The project manifest is pyproject.toml, and requirements-dev.txt and docs/requirements.txt list further development and documentation dependencies. The tests directory holds 21 files of test code, and the docs directory holds 3 documentation files. The key dependencies listed for the project include urllib3, idna, certifi, chardet and charset_normalizer.
The codebase has 72 files and 857 symbols in 4 modules, led by Python and Makefile. Code health is 6.2 out of 10, rated fair.
Maintain psf/requests?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of psf/requests. Then add a badge to the README that links readers here.
Add a badge to your README
Readers click through to this page and can ask requests's code a question. A badge also re-indexes the repo every week and marks you as the verified maintainer.
[](https://repowise.dev/repo/psf/requests?src=badge_ask)Paste it at the top of README.md, under the title.
Added it already? Verify to get the mark now instead of tomorrow.
Need HTML or the larger health card? More formatsHide more formats
This badge as HTML
<a href="https://repowise.dev/repo/psf/requests?src=badge_ask"><img src="https://api.repowise.dev/badge/wiki/psf/requests.svg?label=ask" alt="repowise: Ask this codebase"></a>Code health card
The score, its change since the last index, and when it was measured. Follows the reader's light or dark theme.
<a href="https://repowise.dev/repo/psf/requests?src=badge_card"><picture><source media="(prefers-color-scheme: light)" srcset="https://api.repowise.dev/badge/health/psf/requests.svg?style=card&theme=light"><img src="https://api.repowise.dev/badge/health/psf/requests.svg?style=card" alt="repowise code health" width="500" height="168"></picture></a>