{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/4"}],"enrichment":{"capability":"treq is a high-level HTTP client library for Twisted that provides a requests-like API for making asynchronous HTTP calls within Twisted applications.","skillfed_tags":["twisted","async-http","event-loop"],"use_cases":["Making HTTP requests from within a Twisted application without dropping to low-level Agent APIs","Building web scrapers or API clients that need to integrate with existing Twisted services","Handling multipart form uploads in async Twisted code using the multipart dependency","Writing integration tests for Twisted services that need to make outbound HTTP calls"],"what_it_does":"treq bridges the gap between Twisted's low-level HTTP machinery and the simple, intuitive API style of the requests library. It wraps Twisted's Agent with a higher-level interface that lets you make HTTP calls using familiar method names like get(), post(), and put() while staying within Twisted's asynchronous event loop. This makes it easier to write HTTP-heavy Twisted applications without wrestling with Agent's lower-level abstractions.\n\nThe library is built on six runtime dependencies: attrs, hyperlink, incremental, multipart, twisted, and typing-extensions. It's designed for developers already committed to Twisted who want a more ergonomic way to handle HTTP requests in their async code. The package is actively maintained, supports modern Python versions (3.9 through 3.14), and runs on both CPython and PyPy.","worth_installing":"Yes, if you are already using Twisted and need to make HTTP requests. treq significantly reduces boilerplate compared to raw Agent usage and has no known vulnerabilities. The MIT license is unrestrictive. If you are not already committed to Twisted, consider whether a non-Twisted async HTTP library (like httpx or aiohttp) might be simpler for your use case."},"id":"treq","links":{"html":"https://skillfed.io/packages/treq","md":"https://skillfed.io/packages/treq.md","pypi":"https://pypi.org/project/treq/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-02","license_spdx":"MIT","license_treatment":"permissive","name":"treq","python_support":"supports_current","summary":"High-level Twisted HTTP Client API"},"popularity":{"monthly_downloads":299531,"position":7858,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"26.7.0"}
