9 best Python Compression libraries in 2024

share link

by naveen.kumar@openweaver.com dot icon Updated: Jan 3, 2023

technology logo
technology logo

Guide Kit Guide Kit  

Space matters. In the world of data science and machine learning, the size of the dataset is often the biggest determining factor in choosing a model. And in the world of deployment, it is the size of the model that determines whether or not it can be used on a mobile device. Compression can help to solve both problems by reducing the size of datasets and models. This opens up new avenues for storage, transmission, and training/inference. The Python Compression library is a multi-platform, efficient and easy to use Python library to compress, decompress and extract compressed files. Developers tend to use some of the following open source libraries: Requests - A simple, yet elegant HTTP library, Deep-Compression-AlexNet - Deep Compression on AlexNet, nn-compression - A Pytorch implementation of Neural Network Compression. The entire list of open source libraries are provided below.

requestsby psf

Python doticonstar image 49787 doticonVersion:v2.31.0doticon
License: Permissive (Apache-2.0)

A simple, yet elegant, HTTP library.

Support
    Quality
      Security
        License
          Reuse

            requestsby psf

            Python doticon star image 49787 doticonVersion:v2.31.0doticon License: Permissive (Apache-2.0)

            A simple, yet elegant, HTTP library.
            Support
              Quality
                Security
                  License
                    Reuse

                      compressionby tensorflow

                      Python doticonstar image 733 doticonVersion:v2.12.0doticon
                      License: Permissive (Apache-2.0)

                      Data compression in TensorFlow

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                compressionby tensorflow

                                Python doticon star image 733 doticonVersion:v2.12.0doticon License: Permissive (Apache-2.0)

                                Data compression in TensorFlow
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse
                                          Python doticonstar image 572 doticonVersion:Currentdoticon
                                          License: Permissive (BSD-2-Clause)

                                          Deep Compression on AlexNet

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    Deep-Compression-AlexNetby songhan

                                                    Python doticon star image 572 doticonVersion:Currentdoticon License: Permissive (BSD-2-Clause)

                                                    Deep Compression on AlexNet
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse
                                                              Python doticonstar image 406 doticonVersion:Currentdoticon
                                                              License: Permissive (BSD-3-Clause)

                                                              Data Efficient Model Compression

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        Data-Efficient-Model-Compressionby huawei-noah

                                                                        Python doticon star image 406 doticonVersion:Currentdoticon License: Permissive (BSD-3-Clause)

                                                                        Data Efficient Model Compression
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse
                                                                                  Python doticonstar image 398 doticonVersion:Currentdoticon
                                                                                  License: Permissive (BSD-2-Clause)

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            SqueezeNet-Deep-Compressionby songhan

                                                                                            Python doticon star image 398 doticonVersion:Currentdoticon License: Permissive (BSD-2-Clause)

                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse
                                                                                                      Python doticonstar image 288 doticonVersion:Currentdoticon
                                                                                                      License: Permissive (MIT)

                                                                                                      Semantic JPEG image compression using deep convolutional neural network (CNN)

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                image-compression-cnnby iamaaditya

                                                                                                                Python doticon star image 288 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                Semantic JPEG image compression using deep convolutional neural network (CNN)
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse
                                                                                                                          Python doticonstar image 316 doticonVersion:v0.3doticon
                                                                                                                          License: Permissive (Apache-2.0)

                                                                                                                          Pytorch implementation of High-Fidelity Generative Image Compression + Routines for neural image compression

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    high-fidelity-generative-compressionby Justin-Tan

                                                                                                                                    Python doticon star image 316 doticonVersion:v0.3doticon License: Permissive (Apache-2.0)

                                                                                                                                    Pytorch implementation of High-Fidelity Generative Image Compression + Routines for neural image compression
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              nn-compressionby synxlin

                                                                                                                                              Python doticonstar image 145 doticonVersion:Currentdoticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              A Pytorch implementation of Neural Network Compression (pruning, deep compression, channel pruning)

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        nn-compressionby synxlin

                                                                                                                                                        Python doticon star image 145 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                        A Pytorch implementation of Neural Network Compression (pruning, deep compression, channel pruning)
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse
                                                                                                                                                                  Python doticonstar image 124 doticonVersion:0.4.0doticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  Pytorch implementation of Compressive Transformers, from Deepmind

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            compressive-transformer-pytorchby lucidrains

                                                                                                                                                                            Python doticon star image 124 doticonVersion:0.4.0doticon License: Permissive (MIT)

                                                                                                                                                                            Pytorch implementation of Compressive Transformers, from Deepmind
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      See similar Kits and Libraries