python-requests
Port variant py39
Summary Python HTTP for Humans (3.9)
Package version 2.27.1
Homepage https://requests.readthedocs.io
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py310
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 08 JAN 2022, 05:44:49 UTC
Port created 20 APR 2017, 05:12:41 UTC
Subpackage Descriptions
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 2.7 & 3.6+. ## 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]
Configuration Switches (platform-specific settings discarded)
PY310 OFF Build using Python 3.10 PY39 ON Build using Python 3.9
Package Dependencies by Type
Build (only) python-pip:single:py39
autoselect-python:single:standard
Build and Runtime python39:single:standard
Runtime (only) python-urllib3:single:py39
python-certifi:single:py39
python-charset-normalizer:single:py39
python-idna:single:py39
Download groups
main mirror://PYPIWHL/2d/61/08076519c80041bc0ffa1a8af0cbd3bf3e2b62af10435d269a9d0f40564d
Distribution File Information
f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d 63133 requests-2.27.1-py2.py3-none-any.whl
Ports that require python-requests:py39
python-Sphinx:py39 Python documentation generator (3.9)
python-coreapi:py39 Python client library for Core API (3.9)
python-django-downloadview:py39 Serve files with Django and reverse-proxies (3.9)
python-e3-core:py39 E3 core. Tools and library for building and (3.9)
python-flex:py39 Swagger Schema validation (3.9)
python-google-i18n-address:py39 Address validation for Google's i18n DB (3.9)
python-premailer:py39 Turns CSS blocks into style attributes (3.9)
python-requests-oauthlib:py39 Authentication support for Requests (3.9)
python-requests-toolbelt:py39 Utilities collection for Requests (3.9)
python-salt:py39 Remote execution and config mgmt system (3.9)
python-vdirsyncer:py39 Synchronize calendars and contacts (3.9)
python-xml2rfc:py39 Request For Comment authoring with XML (3.9)