Skip to main content

Simple & high-performance compression utilities for Python

Reason this release was yanked:

Incorrect versioning

Project description

compress-utils

PyPI version Python Versions License: MIT

A unified, high-performance interface for multiple compression algorithms across programming languages.

Features

  • Multiple Algorithms: Integrated support for Brotli, LZMA, XZ, zlib, and Zstandard
  • Consistent API: Same interface across all supported algorithms
  • Cross-Language: Core C++ library with language bindings for Python (and more to come)
  • Performance Focused: Built to minimize overhead over native compression libraries

Installation

pip install compress-utils

Quick Start

Object-Oriented API

from compress_utils import compressor, Algorithm

# Create a compressor with your algorithm of choice
comp = compressor("zstd")  # or 'brotli', 'xz', etc.

# Compress data with optional compression level (1-10)
compressed = comp.compress(b"Hello, world!", level=3)

# Decompress data
original = comp.decompress(compressed)

Functional API

from compress_utils import compress, decompress

# Compress and decompress directly
compressed = compress(b"Hello, world!", "zstd", level=3)
original = decompress(compressed, "zstd")

Available Algorithms

The following algorithms are supported (availability depends on build configuration):

  • Brotli - Google's compression algorithm optimized for the web
  • LZMA/XZ - High compression ratio algorithms
  • zlib - Widely used general-purpose compression
  • Zstandard - Fast compression algorithm with high ratios

Documentation

For detailed API documentation and advanced usage, see the full documentation.

Contributing

Contributions are welcome! Check out the issues page for open tasks or submit your own ideas.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

compress_utils-0.4.2.post0-cp313-cp313-win_amd64.whl (692.5 kB view details)

Uploaded CPython 3.13Windows x86-64

compress_utils-0.4.2.post0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

compress_utils-0.4.2.post0-cp313-cp313-macosx_11_0_arm64.whl (814.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

compress_utils-0.4.2.post0-cp312-cp312-win_amd64.whl (692.5 kB view details)

Uploaded CPython 3.12Windows x86-64

compress_utils-0.4.2.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

compress_utils-0.4.2.post0-cp312-cp312-macosx_11_0_arm64.whl (814.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

compress_utils-0.4.2.post0-cp311-cp311-win_amd64.whl (690.7 kB view details)

Uploaded CPython 3.11Windows x86-64

compress_utils-0.4.2.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

compress_utils-0.4.2.post0-cp311-cp311-macosx_11_0_arm64.whl (814.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

compress_utils-0.4.2.post0-cp310-cp310-win_amd64.whl (689.9 kB view details)

Uploaded CPython 3.10Windows x86-64

compress_utils-0.4.2.post0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

compress_utils-0.4.2.post0-cp310-cp310-macosx_11_0_arm64.whl (813.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

compress_utils-0.4.2.post0-cp39-cp39-win_amd64.whl (688.7 kB view details)

Uploaded CPython 3.9Windows x86-64

compress_utils-0.4.2.post0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

compress_utils-0.4.2.post0-cp39-cp39-macosx_11_0_arm64.whl (813.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

compress_utils-0.4.2.post0-cp38-cp38-win_amd64.whl (689.8 kB view details)

Uploaded CPython 3.8Windows x86-64

compress_utils-0.4.2.post0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

compress_utils-0.4.2.post0-cp37-cp37m-win_amd64.whl (690.6 kB view details)

Uploaded CPython 3.7mWindows x86-64

compress_utils-0.4.2.post0-cp36-cp36m-win_amd64.whl (690.5 kB view details)

Uploaded CPython 3.6mWindows x86-64

compress_utils-0.4.2.post0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ x86-64

File details

Details for the file compress_utils-0.4.2.post0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 95087e6895b1ccafaabba6ace4b23293e5a74c4212ffad7ddbf378349f1e877f
MD5 3e6d36755084c9552185c121379a1dcc
BLAKE2b-256 67cd81a7d942bee568c227813ceb84dab7dca8d75f814a0b13adc9c2f47a62fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp313-cp313-win_amd64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2aa13709c76a6c0b4f5b07674e7201ad4349824ed4f897330472377dcbdfb96b
MD5 988d6186bc6eb290d5aa5e0a73f77229
BLAKE2b-256 8c2a631d32881b237abebac5a53e3a1ea544ebc3e79cf86763bf7f4831867959

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 def2950f1f33aca61f593e7800ef343c4bd04e3f57bfaf15676e353b4d353eae
MD5 c7f7ab6bd3768df50d5ba41675fe2f6b
BLAKE2b-256 3c6519e6d26b85d3e093d9e0981b7c929454e2d9b84e9843dfef535480f32a10

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c74766ed782fd83d6f194a36f17437048c6c95acdc801ecbc22e0fd0289b61be
MD5 9c150160e9bf29a06cae20f7264336a3
BLAKE2b-256 2c6fe63e09bb6c33c954544bd3c7881cddb6ea3cc3da5ad603450e3e3824d2d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp312-cp312-win_amd64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fcb88d32c3bc73ee7f345e768a253bf6460f601b6692417f6b61352a9cf772c1
MD5 9f2696c8795b76ac19971915208835fc
BLAKE2b-256 061b744e4b69f13ddfd874bd4437a9b2d769919e95ee41dc411744755fc82b1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31415bc9147480ff3f8ea11005078b090d1795018d6ce7307aae9f8359e31ded
MD5 2605e8d038293c68bc8a53a24a35b97c
BLAKE2b-256 5f8c2bf0f2688853fede6de847a3b7d7aed390bdd9cb3d83585367086a78e3b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9e1dd3b0da78be674e490a11881e18e4c2622e1f522a4956cab0394a443b6ad
MD5 0dfe4eaa5b4e54c32c54d44c566a66fe
BLAKE2b-256 544c9ca3ee7a3d82b2f2b024e6397945c57fc47616f20fc054dfd02629b69142

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp311-cp311-win_amd64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b45ff05016c597db5b37c682d1e34c7e52eebc0aeb9b262c0b3ef74548b8bf7
MD5 adc12078a675b4353e708f7cb59e3010
BLAKE2b-256 72aa24dccf02e36fd650c305050994f0854e10f2c8fdd58ac99d4a25bf0cd67d

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b49441b4d406ed0e86c65dfdab6e2909c71fafc0eeadefd97c0586ce35f1fdaf
MD5 6942adbbe21e0627a67c758a06d8dc8a
BLAKE2b-256 d5a82984ba4df84d17d7304d125026664b772d917fa8fc0f3685608e08375b37

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 739377a34e3cc6e295f6a4a612295d1b512aa8618a6e7b68169233082cc87fa6
MD5 6fc46f5b558eb33d45a912b5befab7b0
BLAKE2b-256 9af6299d66b813d2e4ea9b06962341d456519bac4bc0fe084b6ea1f203136b18

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp310-cp310-win_amd64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb2724f52e852cbda7b269167b283d5d5f817bca9b2aed4f5f1c0acb20cad570
MD5 c593a030757ea0deb0381aa34e4194d5
BLAKE2b-256 b126fe29ffe00940962a8cab53ea90dcaf5b66d4c93c278d9a5bd3566b93fa0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7b03b19f4373e7cc97425aaebbb4a44758afdf561e8ce66e87fbf16e6671595
MD5 ed46e1b8265623e667932c23c4591eae
BLAKE2b-256 27ce3e2fb87760e4c6457946caf67d7ddfc3967304fbf1de6dbf77894d8faf81

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aba01abeb419106a97d167ce34b90ba5ead2ffa601d5a97122a7dcc75d1d99bd
MD5 10c4ff3179edde8a809df9a14bad2619
BLAKE2b-256 41eb16ebfc3202cfff22c12550c156d537a6c80c69916d5ff89dc4cdb1dcfbbd

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp39-cp39-win_amd64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b790d4022088f05b925acba191a8a2281b8569fb1ce76077da07652d03bf60d
MD5 60498d919be316caa961bdb44e2de6c6
BLAKE2b-256 3d7885fd5a77cb7884db82c7663f78b505cdd130c16ec7587ac05daed2e780e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84f45c7cc83f0a36e51ff30dcf1bedb14f73be3f0ae7caeb68b002fd1186226d
MD5 6ab5aec3a6dc00307a4ef54a5532ab9a
BLAKE2b-256 8ab875ead51f116086404d1935463779fea72845fe150fb4942cecc4a2610c65

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0e9d5efc2e14656d777652c0fd79c8f12584690ce4ff859a3868781a525f815b
MD5 3bc29c1ff6a0224c6e96c5e195c0a697
BLAKE2b-256 1af7c225fc6d6674c4b600d8ce4aeaa7fcc0c9a9d972b93d09f52c30fcb2c7a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp38-cp38-win_amd64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 04f797769d4ed403d49417c7dcef01bafa555721d4279700963d233fec7d0b80
MD5 66da8b689a57da354bc1ddd6da43687d
BLAKE2b-256 417991d6608dc6506ceb813a442a53ba96d4d97cb1959cc4e0381ae1324d02dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b44d981cab65b805df9907aee1614b5a2e1be06642a65dd56d999eb3100aa1a3
MD5 724f29ba9e461051b27b50bf51fdbb61
BLAKE2b-256 d3b51d405c41f13ccb59f36ebfa84def336961834a4c60f2c54b6a80a4c310e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp37-cp37m-win_amd64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 5beec2ab572fbd495aeb93eacdd4354426e180f892ecaa652659acb683df7591
MD5 b572692fc9178900fa8902e94b40a49c
BLAKE2b-256 0e97f8907e8b9ee5fc5e7ce3b013dc03a22cd0c5d36a3bacb19a5d1543b2067f

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp36-cp36m-win_amd64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file compress_utils-0.4.2.post0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for compress_utils-0.4.2.post0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f35a75077c2684161bfd0daf0adc2e20a9bb0e97ab78333b77ba2f2813314e1a
MD5 be7f1a71776bc7161ed4cf838dfc9649
BLAKE2b-256 8c903a58e939d12597ce6d27f9767914d108bb5b1cc3931037f89e36e8e2d497

See more details on using hashes here.

Provenance

The following attestation bundles were made for compress_utils-0.4.2.post0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_and_test_python.yml on dupontcyborg/compress-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page