Description
mureq is a single-file, zero-dependency HTTP library for Python, intended as an alternative to python-requests. It is released under the 0BSD license, so it can be copied into a project without any attribution requirement. The author designed it to be vendored in-tree by Linux systems software and other lightweight applications. The README gives three reasons for it. The first is performance, mainly lower memory use, since python-requests depends on large packages such as chardet. The second is security: a single file is far easier to audit than tens of thousands of lines of third-party code. The third is simplicity. The library opens and closes a new connection for each request and does not pool connections, which the README notes is a cost for workloads that rely on pooling. The README includes a benchmark and a section on installation.…
Highlights
- Single-file, zero-dependency HTTP client
- 0BSD license
- Lower memory use than python-requests
- No connection pooling by default
- Designed to be vendored in-tree
Ratings & Reviews
No ratings yet
Be the first to rate Mureq.
People also visit
Mureq FAQ
What is mureq?
A single-file Python HTTP library with no dependencies, intended as an alternative to python-requests.
Why use it instead of requests?
The README gives lower memory use, a smaller amount of code to audit, and simplicity.
What license is it under?
0BSD, which lets you copy the code without attribution.
Does it reuse connections?
No. It opens and closes a new connection for each request, so workloads that depend on connection pooling pay a performance cost.
What are the best Mureq alternatives?
Popular alternatives to Mureq include Wreq Python, Cartero and Slumber. See all Mureq alternatives


