A Requests-compatible interface for pycURL
Project description
PycURL Requests <pycurl://☤>
PycURL Requests is a Requests-compatible interface for PycURL.
Requirements
Installation
Latest release via pip:
pip install pycurl-requests [--user]
via Git:
git clone https://github.com/dcoles/pycurl-requests.git; cd pycurl-requests
python3 setup.py install [--user]
Quick-start
>>> import pycurl_requests as requests
>>> r = requests.get('https://api.github.com/repos/dcoles/pycurl-requests')
>>> r.status_code
200
>>> r.headers['content-type']
'application/json; charset=utf-8'
>>> r.encoding
'utf-8'
>>> r.text
'{\n "id": 236427187,\n...'
>>> data = r.json()
>>> data['name']
'pycurl-requests'
>>> data['html_url']
'https://github.com/dcoles/pycurl-requests'
>>> data['description']
'A Requests-compatible interface for pycURL'
Documentation
This library aims to be API compatible with Requests, thus the Requests documentation should be mostly applicable.
Known limitations
- Currently limited to
GETrequests - No support for Cookies
- No support for timeouts
- No support for
Sessionobjects (e.g.requests.Session) - No support for client-side certificates
- No support for proxies
- No support for link headers (e.g.
Response.links) - No support for authentication
Most of these features should be supported in the near future.
License
Licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycurl-requests-0.0.2.tar.gz.
File metadata
- Download URL: pycurl-requests-0.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a89b8d8f460c6b16b3c7f2d754b65d356d0160bf807cd8e64e9a571ed5250a9
|
|
| MD5 |
ef05980011ecc50cfefd54855bf98a16
|
|
| BLAKE2b-256 |
a7e9b809262dbdc79a9546928295651930b51d439cf54150651fc4b3724070a1
|
File details
Details for the file pycurl_requests-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pycurl_requests-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f78789ef95a12735d59d5c811900c13c54fd541273e8aaabdde71173dbec258
|
|
| MD5 |
5980f5179f5230c1678d2afd661cd0ee
|
|
| BLAKE2b-256 |
94c1cc887abb741917c7f417364e3f55520b6b62e443883a6c7943de814d7865
|