requests VS brotli

Compare requests vs brotli and see what are their differences.

Our great sponsors
  • - Optimize your datasets for ML
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
requests brotli
29 11
46,222 10,491
0.7% 1.1%
7.5 5.6
9 days ago 11 days ago
Python C
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of requests. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-29.
  • ImportError: No module named requests
    Whenever I try to import requests, I get an error saying No module Named requests.
  • What are the differences between the urllib, urllib2, urllib3 and requests module?
    In Python, what are the differences between the urllib, urllib2, urllib3 and requests modules? Why are there three? They seem to do the same thing...
  • Where can I read quality Python code
    Keep in mind that there's a lot of clutter in Requests' repository. The entire module is actually just these files.
    Starting with an incredibly complex project like a machine learning platform probably isn't a good idea. Try finding something easier. Maybe something like requests.
  • Why is the PSF ignoring its own CoC? | 2021-09-02 adds back a logo that people find offensive because someone got it tattooed on their body? Doesn't the logo violate the Code of Conduct?
  • 3 Ways to Unit Test REST APIs in Python | 2021-07-22
    To retrieve the weather data, we'll use requests. We can create a function that receives a city name as parameter and returns a json. The json will contain the temperature, weather description, sunset, sunrise time and so on.
  • reader 2.0 released – a Python feed reader library | 2021-07-19
    want to change the way feeds are retrieved by using Requests?
  • How To Write Clean Code in Python | 2021-07-14
    Explore other well-written code bases. If you want some examples of well-written, clean, and Pythonic code, check out the Python requests library.
  • Everything to know about Requests v2.26.0 | 2021-07-13
    Requests v2.26.0 is a large release which changes and removes many features and dependencies that you should know about when upgrading.
  • Multiple payloads with one POST request?
    Are you talking about multipart/mixed or some other form of multipart type? If so, look here: the parameter to pass is very confusingly named files. But, it seems to be going in the direction you want.


Posts with mentions or reviews of brotli. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-23.
  • Ask HN: What are the best the publicly available FAMANG code repos? | 2021-08-23
  • Everything to know about Requests v2.26.0 | 2021-07-13
    Since v1.25 urllib3 has supported automatically decoding Brotli-compressed HTTP response bodies using either Google's brotli library or the brotlicffi library (previously named brotlipy).
  • Help: Best encoding and decoding format for compressing string
    Checkout Brotli.
  • Disk space is cheap, is file archiving still relevant? | 2021-03-29
    But the very same reasons keeps high the interest on compression field research: in example both Google and Facebook are actively investing on fast, scalable, and efficient compression for the content they store and serve.
  • C Deep | 2021-02-27
    Brotli - General-purpose lossless compression algorithm library. Has speeds comparable to DEFLATE, but much higher compression ratios. MIT.
  • Appwrite 0.7: Introducing Built-in Brotli Compression for Improved API Performance | 2021-02-23
    Brotli is also a compression algorithm like GZIP. It is developed and maintained by Google and is best used for text compression. The reason being, it uses a dictionary of common keywords and phrases on both client and server-side and thus gives a better compression ratio. In version 0.7 of Appwrite, you can enable the Brotli compression for any JSON or text-based response. Actually, the new Brotli support has significantly improved the Appwrite dashboard loading times.
  • How to send a teams chat message from a Windows cmd prompt?
    It’s brotli that contains this string
  • Building a Brotli Middleware with FastAPI | 2021-02-10
    Now, as I promised on the past article I'm going to build a more complicated middleware. Most of the job will be made by a library called google/brotli, given that I'm not interested on making an implementation of the Brotli algorithm. Instead of that, my main pupose here, is to be able to implement a middleware that behave like the GZipMiddleware, from the FastAPI documentation.
  • Go Tips: WebAssembly and Vugu | 2021-02-09
    To use brotli to compress the final wasm file and,
  • No way to know the uncompressed size of brotli without decompression

What are some alternatives?

When comparing requests and brotli you can also consider the following projects:

urllib3 - Python HTTP library with thread-safe connection pooling, file post support, user friendly, and more.

httplib2 - Small, fast HTTP client library for Python. Features persistent connections, cache, and Google App Engine support. Originally written by Joe Gregorio, now supported by community.

Snappy - A fast compressor/decompressor

LZ4 - Extremely Fast Compression algorithm

grequests - Requests + Gevent = <3

zstd - Zstandard - Fast real-time compression algorithm

treq - Python requests like API built on top of Twisted's HTTP client.

LZMA - (Unofficial) Git mirror of LZMA SDK releases

Uplink - A Declarative HTTP Client for Python

ZLib - A massively spiffy yet delicately unobtrusive compression library.

Tapioca-Wrapper - Python API client generator

requests-futures - Asynchronous Python HTTP Requests for Humans using Futures