Skip to main content

High-level Twisted HTTP Client API

Project description

pypi build coverage

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treq-21.1.0.tar.gz (71.0 kB view details)

Uploaded Source

Built Distribution

treq-21.1.0-py2.py3-none-any.whl (64.3 kB view details)

Uploaded Python 2 Python 3

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

Hashes for treq-21.1.0.tar.gz
Algorithm Hash digest
SHA256 fdae0c872c444ed96c3cb11be8445d22e4afb731e87fdddae3b00c609e77199f
MD5 24107649de4dd9c163b3e76a9c425e02
BLAKE2b-256 baa29883a7f2a0d8a451be62271872465953443e8f35335d6e4a30a3a39d2d57

See more details on using hashes here.

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

Hashes for treq-21.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc3aa1c9355a7693cc2483a797369d0db8a2c1ef857e4a6684d302b4d380ddfa
MD5 9992b42ef1ea3c6ec875f50cbaa609c2
BLAKE2b-256 e98b1873975dafff1f14d00e97f6b7b6deb9c14c93c5baa8387528eb7d0d11be

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page