Codrop Python Bindings
Universal, high-performance, adaptive lossless compression system.
Installation
pip install codrop
Quick Start
import codrop
# Input bytes
data = b"Hello Codrop! High performance adaptive compression for modern runtimes."
# Compress (Profiles: LEVEL_AUTO, LEVEL_FAST, LEVEL_BALANCED, LEVEL_COMPACT)
compressed = codrop.compress(data, level=codrop.LEVEL_BALANCED)
print(f"Original: {len(data)} bytes, Compressed: {len(compressed)} bytes")
# Decompress
decompressed = codrop.decompress(compressed)
assert decompressed == data
print("Roundtrip successful!")
Compression Profiles
codrop.LEVEL_AUTO(0): Adaptive classification, picks optimal codec or RAW fallback for high entropy.codrop.LEVEL_FAST(1): LZF byte-aligned LZ engine. Maximum throughput.codrop.LEVEL_BALANCED(2): LZH (LZ + Canonical Huffman). Best balance of ratio and speed.codrop.LEVEL_COMPACT(3): LZA (LZ + tANS / Finite State Entropy). Maximum compression ratio.
License
Licensed under MIT OR Apache-2.0.
Metadata
Release files for codrop 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codrop-1.0.0.tar.gz | 2.6 MB | Without provenance | Details for codrop-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codrop-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for codrop-1.0.0-py3-none-any.whl |
Total release size: 5.2 MB
Release files / codrop-1.0.0.tar.gz
| Download URL | codrop-1.0.0.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b59ecb1cee6501be48cc09428eb9bb8d1d6abc03be43e3bca89ada3e86ba322
|
|
BLAKE2b-256 checksum How to use checksums |
758b572a69412bc28d29ee26df48bb3a4a9057bda60c91c6f6cdb17f90097dc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / codrop-1.0.0-py3-none-any.whl
| Download URL | codrop-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc25252272b4796e1e7d15f21204d4eac25d0f11e93f337e0ddf3e3c95ec5a0f
|
|
BLAKE2b-256 checksum How to use checksums |
9c07f0135250ed820b8c22e2ff141491e1f574a66679785a71f40ef7dc75f6d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for codrop 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.