Port variant py38
Summary Python HTTP for Humans (PY38)
Package version 2.26.0
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py39
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 15 JUL 2021, 22:32:01 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('', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers['content-type'] 'application/json; charset=utf8' >>> r.encoding 'utf-8' >>> r.text '{"type":"User"...' >>> r.json() {'disk_usage': 368627, 'private_gists': 484, ...} ``` 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 package today, pulling in around `14M downloads / week`— according to GitHub, Requests is currently [depended upon] by `500,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 ``` 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)
PY38 ON Build using Python 3.8 PY39 OFF Build using Python 3.9
Package Dependencies by Type
Build (only) python-pip:single:py38
Build and Runtime python38:single:standard
Runtime (only) python-urllib3:single:py38
Download groups
main mirror://PYPIWHL/92/96/144f70b972a9c0eabbd4391ef93ccd49d0f2747f4f6a2a2738e99e5adc65
Distribution File Information
6c1246513ecd5ecd4528a0906f910e8f0f9c6b8ec72030dc9fd154dc1a6efd24 62251 requests-2.26.0-py2.py3-none-any.whl
Ports that require python-requests:py38
python-Sphinx:py38 Python documentation generator (PY38)
python-coreapi:py38 Python client library for Core API (PY38)
python-django-downloadview:py38 Serve files with Django and reverse-proxies (PY38)
python-e3-core:py38 E3 core. Tools and library for building and (PY38)
python-flex:py38 Swagger Schema validation (PY38)
python-google-i18n-address:py38 Address validation for Google's i18n DB (PY38)
python-premailer:py38 Turns CSS blocks into style attributes (PY38)
python-requests-oauthlib:py38 Authentication support for Requests (PY38)
python-requests-toolbelt:py38 Utilities collection for Requests (PY38)
python-salt:py38 Remote execution and config mgmt system (PY 38)
python-vdirsyncer:py38 Synchronize calendars and contacts (PY38)
python-xml2rfc:py38 Request For Comment authoring with XML (PY38)