Port variant | v11 |
Summary | Python HTTP for Humans (3.11) |
BROKEN | |
Package version | 2.32.3 |
Homepage | https://requests.readthedocs.io |
Keywords | python |
Maintainer | Python Automaton |
License | Not yet specified |
Other variants | v12 |
Ravenports | Buildsheet | History |
Ravensource | Port Directory | History |
Last modified | 07 JUN 2024, 00:12:24 UTC |
Port created | 21 APR 2017, 05:12:41 UTC |
single | # Requests **Requests** is a simple, yet elegant, HTTP library. ```python >>> 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: ```console $ python -m pip install requests ``` Requests officially supports Python 3.8+. ## 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): ```shell git clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git ``` You can also apply this setting to your global Git config: ```shell git config --global fetch.fsck.badTimezone ignore ``` --- [Kenneth Reitz] [Python Software Foundation] |
Build (only) |
python-pip:single:v11 autoselect-python:single:std |
Build and Runtime | python311:single:std |
Runtime (only) |
python-charset-normalizer:single:v11 python-idna:single:v11 python-urllib3:single:v11 python-certifi:single:v11 |
main | mirror://PYPIWHL/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54 |
python-Sphinx:v11 | Python documentation generator (3.11) |
python-coreapi:v11 | Python client library for Core API (3.11) |
python-django-downloadview:v11 | Serve files with Django and reverse-proxies (3.11) |
python-e3-core:v11 | Adacore testing and building tools (3.11) |
python-flex:v11 | Swagger Schema validation (3.11) |
python-google-i18n-address:v11 | Address validation for Google's i18n DB (3.11) |
python-kani-fork-pynetbox:v11 | NetBox API client library (3.11) |
python-mkdocs-material:v11 | Documentation that simply works (3.11) |
python-napalm:v11 | Vendor-agnostic router interaction libary (3.11) |
python-nb2an:v11 | Netbox to Ansible config comparison tool (3.11) |
python-nornir-netbox:v11 | Netbox plugin for Nornir (3.11) |
python-patchman:v11 | Django based patch status monitoring tool (3.11) |
python-premailer:v11 | Turns CSS blocks into style attributes (3.11) |
python-pynetbox:v11 | NetBox API client library (3.11) |
python-python-netbox:v11 | Python NetBox Client (3.11) |
python-pywikibot:v11 | Python MediaWiki Bot Framework (3.11) |
python-requests-cache:v11 | Persistent cache for python requests (3.11) |
python-requests-oauthlib:v11 | Authentication support for Requests (3.11) |
python-requests-toolbelt:v11 | Utilities collection for Requests (3.11) |
python-salt:v11 | Remote execution and config mgmt system (3.11) |
python-social-auth-core2:v11 | Social authentication/registration (3.11) |
python-social-auth-core:v11 | Python social authentication made simple (3.11) |
python-vdirsyncer:v11 | Synchronize calendars and contacts (3.11) |
python-xml2rfc:v11 | Request For Comment authoring with XML (3.11) |