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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: treq-22.1.0.tar.gz
  • Upload date:
  • Size: 72.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 775581604919a3d79c845401598a0fd070cabc6de83840472d8e9fa715f2d36c
MD5 b9d236c4bea729ebc87f5aef56c45580
BLAKE2b-256 818ed34333eef445edd6d8c89bc2485b004a5511e6078ce19b690135a44e6fb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: treq-22.1.0-py3-none-any.whl
  • Upload date:
  • Size: 64.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc6e8f613c0e10b49987a02998541a1ee32b30821ef58775dbf142aeaedc84d1
MD5 375d40b8c658c761aa10002e78aca1dd
BLAKE2b-256 1e673ecce9145cae7a07041411ec90b5d2707707083686d568496ef4d0a3e7ee

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