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.3.0rc1.tar.gz (59.0 kB view details)

Uploaded Source

Built Distribution

treq-20.3.0rc1-py2.py3-none-any.whl (55.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file treq-20.3.0rc1.tar.gz.

File metadata

  • Download URL: treq-20.3.0rc1.tar.gz
  • Upload date:
  • Size: 59.0 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.3.0rc1.tar.gz
Algorithm Hash digest
SHA256 a1e1cd1f3cda9ede8345adc75c9bfb6b12c329a24ea948134f3ca10f7c1a4075
MD5 d6dd44d33d6c183d495dcc6e8a1ba087
BLAKE2b-256 4fa4e96676a21a7ae4a879a81848e794c4c88a0696c89895ebaf0c6bdf09bf33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: treq-20.3.0rc1-py2.py3-none-any.whl
  • Upload date:
  • Size: 55.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.3.0rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ad106ea338b1da4f1b298d3c5266c3259361d2c418b6b3eb1d3803ce5e89cab5
MD5 31d3443c84c224b3aebd80367880064f
BLAKE2b-256 d8c297c44eefaf3f9d5c765b973dcb2de14ed4e6e19c509f9cc8d2e1d1714a23

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