Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atpalmer-python/recurl
libcurl adapter for Python's requests
https://github.com/atpalmer-python/recurl
curl libcurl libcurl-bindings python python-c-extension python3
Last synced: 23 days ago
JSON representation
libcurl adapter for Python's requests
- Host: GitHub
- URL: https://github.com/atpalmer-python/recurl
- Owner: atpalmer-python
- Created: 2021-03-18T19:14:54.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-29T06:35:28.000Z (about 3 years ago)
- Last Synced: 2024-10-16T22:14:43.797Z (2 months ago)
- Topics: curl, libcurl, libcurl-bindings, python, python-c-extension, python3
- Language: C
- Homepage:
- Size: 228 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Recurl: Curl adapter for requests
## Usage
### Simple usage:
```
import recurlresponse = recurl.get('https://www.google.com/')
print(response) # requests.Response object
```### Sessions:
```
import recurlsession = recurl.Session() # requests.Session object with
# CurlEasyAdapter already mounted
response = session.get('https://www.google.com/')
...
```### Verbose setup:
```
import requests
import recurladapter = recurl.CurlEasyAdapter()
session = requests.Session()
session.mount('https://', adapter)response = session.get('https://www.google.com/')
...
```## TODO
* Cookies/CookieJars
* Exceptions
* Streaming downloads
* Streaming uploads
* History
* Links
* Hooks
* Audit API vs. requests
* Extend API for CURL-specific features?
* CURL "multi" sessions (async requests)