High-level Twisted HTTP Client API
Project description
treq is an HTTP library inspired by requests but written on top of Twisted’s Agents.
It provides a simple, higher level API for making HTTP requests when using Twisted.
>>> from treq import get
>>> def done(response):
... print response.code
... reactor.stop()
>>> get("http://www.github.com").addCallback(done)
>>> from twisted.internet import reactor
>>> reactor.run()
200
For more info read the docs.
Contributing
treq development is hosted on GitHub.
We welcome contributions: feel to fork and send contributions over. See CONTRIBUTING.rst for more info.
Code of Conduct
Refer to the Twisted code of conduct.
Copyright and License
treq is made available under the MIT license. See LICENSE for legal details and copyright notices.
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 treq-21.1.0.tar.gz.
File metadata
- Download URL: treq-21.1.0.tar.gz
- Upload date:
- Size: 71.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdae0c872c444ed96c3cb11be8445d22e4afb731e87fdddae3b00c609e77199f
|
|
| MD5 |
24107649de4dd9c163b3e76a9c425e02
|
|
| BLAKE2b-256 |
baa29883a7f2a0d8a451be62271872465953443e8f35335d6e4a30a3a39d2d57
|
File details
Details for the file treq-21.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: treq-21.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 64.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc3aa1c9355a7693cc2483a797369d0db8a2c1ef857e4a6684d302b4d380ddfa
|
|
| MD5 |
9992b42ef1ea3c6ec875f50cbaa609c2
|
|
| BLAKE2b-256 |
e98b1873975dafff1f14d00e97f6b7b6deb9c14c93c5baa8387528eb7d0d11be
|