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-20.4.1.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

treq-20.4.1-py2.py3-none-any.whl (56.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file treq-20.4.1.tar.gz.

File metadata

  • Download URL: treq-20.4.1.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for treq-20.4.1.tar.gz
Algorithm Hash digest
SHA256 68fee7d24c94b7f1432ad8077e22d0d15f957bf6fcf9cb771ff4c6acc7e2bc84
MD5 9ab4ea12909fb9ddfa19952f178a55ee
BLAKE2b-256 384e48e6486c1ec623fb53c703cb6419c23a8feb44f48997a2eebcf74e618a5a

See more details on using hashes here.

File details

Details for the file treq-20.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: treq-20.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 56.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

File hashes

Hashes for treq-20.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c75244d850a2238615126ba4332ab4af9ed8d270db266fded487a02e0dd2cc0c
MD5 848ddbc8a1c163c08526f95b934f614e
BLAKE2b-256 545790a674493d368054764c33c492d9e20e942182f4401d9b2306dde97f8d0e

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