Port variant | v13 |
Summary | Python HTTP for Humans (3.13) |
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 | 15 NOV 2024, 16:08:50 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) |
python313:dev:std python-pip:single:v13 autoselect-python:single:std |
Build and Runtime | python313:primary:std |
Runtime (only) |
python-charset-normalizer:single:v13 python-idna:single:v13 python-urllib3:single:v13 python-certifi:single:v13 |
main | mirror://PYPIWHL/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54 |
python-Sphinx:v13 | Python documentation generator (3.13) |
python-coreapi:v13 | Python client library for Core API (3.13) |
python-django-downloadview:v13 | Serve files with Django and reverse-proxies (3.13) |
python-e3-core:v13 | Adacore testing and building tools (3.13) |
python-flex:v13 | Swagger Schema validation (3.13) |
python-google-i18n-address:v13 | Address validation for Google's i18n DB (3.13) |
python-kani-fork-pynetbox:v13 | NetBox API client library (3.13) |
python-mkdocs-material:v13 | Documentation that simply works (3.13) |
python-napalm:v13 | Vendor-agnostic router interaction libary (3.13) |
python-nb2an:v13 | Netbox to Ansible config comparison tool (3.13) |
python-nornir-netbox:v13 | Netbox plugin for Nornir (3.13) |
python-patchman:v13 | Django based patch status monitoring tool (3.13) |
python-premailer:v13 | Turns CSS blocks into style attributes (3.13) |
python-pynetbox:v13 | NetBox API client library (3.13) |
python-python-netbox:v13 | Python NetBox Client (3.13) |
python-pywikibot:v13 | Python MediaWiki Bot Framework (3.13) |
python-requests-cache:v13 | Persistent cache for python requests (3.13) |
python-requests-oauthlib:v13 | Authentication support for Requests (3.13) |
python-requests-toolbelt:v13 | Utilities collection for Requests (3.13) |
python-salt:v13 | Remote execution and config mgmt system (3.13) |
python-social-auth-core2:v13 | Social authentication/registration (3.13) |
python-social-auth-core:v13 | Python social authentication made simple (3.13) |
python-vdirsyncer:v13 | Synchronize calendars and contacts (3.13) |
python-xml2rfc:v13 | Request For Comment authoring with XML (3.13) |