# psf/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.

Source: https://github.com/psf/requests
Indexed: commit 3c7baaa on 2026-10-26 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: Python
- Stars: 54,750 at index time
- License: Apache-2.0
- Code health: 6.2/10, Fair
- Last commit: 2026-06-09
- Contributors: 791

## Install

From the README: https://github.com/psf/requests#installing-requests-and-supported-versions

Install Requests from PyPI.
    python -m pip install requests

## How it 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.

- src/requests/__init__.py: entry point
- .github/AI_POLICY.md: central file
- .github/CODE_OF_CONDUCT.md: central file
- .github/CONTRIBUTING.md: central file
- .github/FUNDING.yml: central file
Modules: tests, src, docs, root. 72 files, 9,312 lines, 857 symbols.

## Code health

- Score: 6.2/10 (Fair)
- Rank: not ranked (leaderboards need 100+ files)
- Hotspots: none
- Lowest file: src/requests/models.py
- Dead code: 1 findings

## Maintenance

- Last commit 2026-06-09, first commit 2011-02-13, 4,884 commits
- 791 contributors, bus factor 2

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/psf/requests/security

## More

- Page: https://repowise.dev/repo/psf/requests
- Ask this codebase: https://repowise.dev/repo/psf/requests/chat
- Docs: https://repowise.dev/repo/psf/requests/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/psf/requests
