Skip to main content

PyPI calver: YY.MM.MICRO 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

>>> async def main(reactor):
...     response = await treq.get("https://github.com")
...     print(response.code)
...     body = await response.text()
...     print("<!DOCTYPE html>" in body)

>>> from twisted.internet.task import react
>>> react(main)
200
True

For more info read the docs.

Contributing

treq development is hosted on GitHub.

We welcome contributions: feel free to fork and send contributions over. See CONTRIBUTING.rst for more info.

Code of Conduct

Refer to the Twisted code of conduct.

Release files for treq 26.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for treq 26.7.0
File Size Uploaded
treq-26.7.0.tar.gz 81.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for treq 26.7.0
File Interpreter ABI Platform
treq-26.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 157.2 kB

Release files / treq-26.7.0.tar.gz

Download URL treq-26.7.0.tar.gz
Size 81.7 kB
Tags Source
SHA-256 checksum
How to use checksums
43e728e12aca2d897c626cf07dc7b4392749b73de050a7d66e086cb3a6e15da9
BLAKE2b-256 checksum
How to use checksums
921396aceb81d076eea518bf174048db701ac8b139c7aed1082913318a55a7d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log

Release files / treq-26.7.0-py3-none-any.whl

Download URL treq-26.7.0-py3-none-any.whl
Size 75.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a56ac4d970f7b1e27a4df4057d225efd84524b1847e123a725c531039702f98
BLAKE2b-256 checksum
How to use checksums
2a6f6396d90267494553b7db6dc6aaaf8a773255eae209d4381428672f52f716
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 2, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page