treq 24.9.1
pip install treq
Released:
High-level Twisted HTTP Client API
Navigation
Verified details
These details have been verified by PyPIProject links
Owner
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIMeta
- License: MIT License (MIT/X)
- Author: David Reid
- Maintainer: Tom Most
- Requires: Python >=3.7
-
Provides-Extra:
dev
,docs
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
Project description
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.
Copyright and License
treq is made available under the MIT license. See LICENSE for legal details and copyright notices.
Project details
Verified details
These details have been verified by PyPIProject links
Owner
GitHub Statistics
Maintainers
Unverified details
These details have not been verified by PyPIMeta
- License: MIT License (MIT/X)
- Author: David Reid
- Maintainer: Tom Most
- Requires: Python >=3.7
-
Provides-Extra:
dev
,docs
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Operating System
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file treq-24.9.1.tar.gz
.
File metadata
- Download URL: treq-24.9.1.tar.gz
- Upload date:
- Size: 85.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15da7fc404f3e4ed59d0abe5f8eef4966fabbe618039a2a23bc7c15305cefea8 |
|
MD5 | a48996ff540651deded304b638ba54ea |
|
BLAKE2b-256 | 0894424f3bb11eaf464880d076cca2e9d0ee21a1be805fe9761b87eccba5b3ae |
File details
Details for the file treq-24.9.1-py3-none-any.whl
.
File metadata
- Download URL: treq-24.9.1-py3-none-any.whl
- Upload date:
- Size: 78.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eee4756fd9a857c77f180fd5202b52c518f2d3e2826dce28b89066c03bfc45d0 |
|
MD5 | dc83038462e2f818733012a749c12763 |
|
BLAKE2b-256 | 80eae2fb71e9dab3efaef7bd33894e23e8ef515e1d92debb1dcf4594815e09ed |