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

Uploaded Source

Built Distribution

treq-22.2.0-py3-none-any.whl (64.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: treq-22.2.0.tar.gz
  • Upload date:
  • Size: 72.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for treq-22.2.0.tar.gz
Algorithm Hash digest
SHA256 df757e3f141fc782ede076a604521194ffcb40fa2645cf48e5a37060307f52ec
MD5 43892086d556e7596392134f1e10bdef
BLAKE2b-256 cdc8b68ab17d994133baf6edbcb5551ba81e1494bdc6d5e21a9d4f3bc4315140

See more details on using hashes here.

File details

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

File metadata

  • Download URL: treq-22.2.0-py3-none-any.whl
  • Upload date:
  • Size: 64.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for treq-22.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27d95b07c5c14be3e7b280416139b036087617ad5595be913b1f9b3ce981b9b2
MD5 5502efe20e5569c46740a12637cd7db5
BLAKE2b-256 29e0cf8cc18074911104ef738991eb25676203a5eb591fa4a80a718457334a47

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