Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dependency with
chardet>=3.0.2,<6
https://github.com/chardet/chardet/releases/tag/5.0.0 was released on 2022-06-25 with remove of Python 3.6 support, which also align with our Python > 3.6 requirement. Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
- Loading branch information
Showing
65 changed files
with
11,346 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[clean] | ||
all=1 | ||
[build] | ||
build_lib=/home/hswong3i/Documents/osc/psf-requests-2.28.0/.pybuild/cpython3_3.10/build | ||
[install] | ||
force=1 | ||
install_layout=deb | ||
install_scripts=$base/bin | ||
install_lib=/usr/lib/python3.10/dist-packages | ||
prefix=/usr |
2 changes: 2 additions & 0 deletions
2
debian/.debhelper/generated/python3-requests/installed-by-dh_install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
debian/tmp/usr/lib/python3.10/dist-packages/requests | ||
debian/tmp/usr/lib/python3.10/dist-packages/requests-2.28.0-py3.10.egg-info |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python3-requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
python-requests_2.28.0-2_amd64.buildinfo python optional | ||
python3-requests_2.28.0-2_all.deb python optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dh_auto_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# Automatically added by dh_python3 | ||
if command -v py3compile >/dev/null 2>&1; then | ||
py3compile -p python3-requests | ||
fi | ||
if command -v pypy3compile >/dev/null 2>&1; then | ||
pypy3compile -p python3-requests || true | ||
fi | ||
|
||
# End automatically added section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# Automatically added by dh_python3 | ||
if command -v py3clean >/dev/null 2>&1; then | ||
py3clean -p python3-requests | ||
else | ||
dpkg -L python3-requests | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)' | ||
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir | ||
fi | ||
|
||
# End automatically added section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
python3:Depends=python3-certifi, python3-charset-normalizer (>= 2.0.0), python3-idna, python3-urllib3, python3:any | ||
misc:Depends= | ||
misc:Pre-Depends= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Package: python3-requests | ||
Source: python-requests | ||
Version: 100:2.28.0-2 | ||
Architecture: all | ||
Maintainer: Wong Hoi Sing Edison <hswong3i@gmail.com> | ||
Installed-Size: 210 | ||
Depends: python3-certifi (>= 2017.4.17), python3-charset-normalizer (>= 2.0.0), python3-idna (>= 2.5), python3-urllib3 (>= 1.21.1), python3:any, ca-certificates, python3, python3-chardet (>= 3.0.2) | ||
Section: python | ||
Priority: optional | ||
Homepage: https://github.com/psf/requests/tags | ||
Description: Python HTTP library with thread-safe connection pooling and file post | ||
Python3 HTTP module with connection pooling and file POST abilities. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
b53d9faeb82d3c002e3877c7a4a30e82 usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/PKG-INFO | ||
68b329da9893e34099c7d8ad5cb9c940 usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/dependency_links.txt | ||
68b329da9893e34099c7d8ad5cb9c940 usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/not-zip-safe | ||
b4e35e481346bdd5eb4d2a9b3f0c063e usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/requires.txt | ||
197b4deb87ffa3decd9f045926a86cd0 usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/top_level.txt | ||
76a0db7758bbcef105234aecfc1f863c usr/lib/python3/dist-packages/requests/__init__.py | ||
6773bd9065165fca1fa474635590c468 usr/lib/python3/dist-packages/requests/__version__.py | ||
7772cb6048647fa710a2975cda08f051 usr/lib/python3/dist-packages/requests/_internal_utils.py | ||
fb21f603a8cfc80f560cbe16e02c2ec7 usr/lib/python3/dist-packages/requests/adapters.py | ||
85eefa4b9620e0977c1f8c5388b64745 usr/lib/python3/dist-packages/requests/api.py | ||
f9967d6b03b8b2b12d7832a56077bf7e usr/lib/python3/dist-packages/requests/auth.py | ||
3f2c22a3ec28d618d41c220cbc809e6b usr/lib/python3/dist-packages/requests/certs.py | ||
79cd58923a9422c6d74f3b9938d11f0e usr/lib/python3/dist-packages/requests/compat.py | ||
91b27fbf8d78d53bdb214e1e693b7182 usr/lib/python3/dist-packages/requests/cookies.py | ||
d5c7f4c58df822c2475ae209492fd94c usr/lib/python3/dist-packages/requests/exceptions.py | ||
fcb7be924e43a29ec6b6f96ff2c9aebc usr/lib/python3/dist-packages/requests/help.py | ||
94eb29001b47e2886c00d1e201b8733d usr/lib/python3/dist-packages/requests/hooks.py | ||
1f82b77a9cbfc17fc277cbce835673d2 usr/lib/python3/dist-packages/requests/models.py | ||
0c4e1ccf2d7ac129ba106e08de7a7f0d usr/lib/python3/dist-packages/requests/packages.py | ||
b687828a4487f46d8c21e481de54854d usr/lib/python3/dist-packages/requests/sessions.py | ||
663dd9e477d4a5ffd451801d2ec2c2bd usr/lib/python3/dist-packages/requests/status_codes.py | ||
077948910ae6fb44dc6e58d3d25d6aee usr/lib/python3/dist-packages/requests/structures.py | ||
b777bc94112c8d0104ebaffe9faf0897 usr/lib/python3/dist-packages/requests/utils.py | ||
68916d032222f3985070b429d7539a21 usr/share/doc/python3-requests/changelog.Debian.gz | ||
d41d8cd98f00b204e9800998ecf8427e usr/share/doc/python3-requests/copyright | ||
812a74acb2c9ea0765d07a8688b1e119 usr/share/lintian/overrides/python3-requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Automatically added by dh_python3 | ||
if command -v py3compile >/dev/null 2>&1; then | ||
py3compile -p python3-requests | ||
fi | ||
if command -v pypy3compile >/dev/null 2>&1; then | ||
pypy3compile -p python3-requests || true | ||
fi | ||
|
||
# End automatically added section |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Automatically added by dh_python3 | ||
if command -v py3clean >/dev/null 2>&1; then | ||
py3clean -p python3-requests | ||
else | ||
dpkg -L python3-requests | perl -ne 's,/([^/]*)\.py$,/__pycache__/\1.*, or next; unlink $_ or die $! foreach glob($_)' | ||
find /usr/lib/python3/dist-packages/ -type d -name __pycache__ -empty -print0 | xargs --null --no-run-if-empty rmdir | ||
fi | ||
|
||
# End automatically added section |
113 changes: 113 additions & 0 deletions
113
...n/python3-requests/usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/PKG-INFO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
Metadata-Version: 2.1 | ||
Name: requests | ||
Version: 2.28.0 | ||
Summary: Python HTTP for Humans. | ||
Home-page: https://requests.readthedocs.io | ||
Author: Kenneth Reitz | ||
Author-email: me@kennethreitz.org | ||
License: Apache 2.0 | ||
Project-URL: Documentation, https://requests.readthedocs.io | ||
Project-URL: Source, https://github.com/psf/requests | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Environment :: Web Environment | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: Apache Software License | ||
Classifier: Natural Language :: English | ||
Classifier: Operating System :: OS Independent | ||
Classifier: Programming Language :: Python | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3.7 | ||
Classifier: Programming Language :: Python :: 3.8 | ||
Classifier: Programming Language :: Python :: 3.9 | ||
Classifier: Programming Language :: Python :: 3.10 | ||
Classifier: Programming Language :: Python :: 3.11 | ||
Classifier: Programming Language :: Python :: 3 :: Only | ||
Classifier: Programming Language :: Python :: Implementation :: CPython | ||
Classifier: Programming Language :: Python :: Implementation :: PyPy | ||
Classifier: Topic :: Internet :: WWW/HTTP | ||
Classifier: Topic :: Software Development :: Libraries | ||
Requires-Python: >=3.7, <4 | ||
Description-Content-Type: text/markdown | ||
Provides-Extra: security | ||
Provides-Extra: socks | ||
Provides-Extra: use_chardet_on_py3 | ||
License-File: LICENSE | ||
|
||
# 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](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `1,000,000+` repositories. You may certainly put your trust in this code. | ||
|
||
[![Downloads](https://pepy.tech/badge/requests/month)](https://pepy.tech/project/requests) | ||
[![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests) | ||
[![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors) | ||
|
||
## Installing Requests and Supported Versions | ||
|
||
Requests is available on PyPI: | ||
|
||
```console | ||
$ python -m pip install requests | ||
``` | ||
|
||
Requests officially supports Python 3.7+. | ||
|
||
## 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](https://requests.readthedocs.io) | ||
|
||
[![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io) | ||
|
||
## 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](https://github.com/psf/requests/issues/2690) 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](https://raw.githubusercontent.com/psf/requests/main/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/main/ext/psf.png)](https://www.python.org/psf) |
1 change: 1 addition & 0 deletions
1
...quests/usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/dependency_links.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
...thon3-requests/usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/not-zip-safe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
8 changes: 8 additions & 0 deletions
8
...thon3-requests/usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/requires.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
[security] | ||
|
||
[socks] | ||
PySocks!=1.5.7,>=1.5.6 | ||
|
||
[use_chardet_on_py3] | ||
chardet<6,>=3.0.2 |
1 change: 1 addition & 0 deletions
1
...hon3-requests/usr/lib/python3/dist-packages/requests-2.28.0-py3.10.egg-info/top_level.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
requests |
Oops, something went wrong.