Skip to main content

High-level Twisted HTTP Client API

Project description

PyPI calver: YY.MM.MICRO Coverage Documentation

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.

>>> import treq

>>> def done(response):
...     print(response.code)
...     reactor.stop()

>>> treq.get("https://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.5.0.tar.gz (71.3 kB view details)

Uploaded Source

Built Distribution

treq-21.5.0-py3-none-any.whl (62.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: treq-21.5.0.tar.gz
  • Upload date:
  • Size: 71.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for treq-21.5.0.tar.gz
Algorithm Hash digest
SHA256 02ea86383fc4b57539c45a965eaa1e9fd28302cdf382d21da8430050c97be9b8
MD5 7d85acfb986192e2e1c42cb49e4ab478
BLAKE2b-256 0dd809557de81c3e477504ef4bd2cab16b08449376a23e1ecbb38cee66c852d0

See more details on using hashes here.

File details

Details for the file treq-21.5.0-py3-none-any.whl.

File metadata

  • Download URL: treq-21.5.0-py3-none-any.whl
  • Upload date:
  • Size: 62.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for treq-21.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abf44b7b1b44bcade28b5ae2b440a94a72a96df45f5d6fec76d73b73f69e705c
MD5 5b69609d3c7fb7916d02f3f533b21cc6
BLAKE2b-256 0a894e6527798eacc5265267240b6a360258143280e6e7bdce4dabcf18207854

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