Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Release files for codrop 1.0.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codrop 1.0.0rc1
File Size Uploaded
codrop-1.0.0rc1.tar.gz 523.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codrop 1.0.0rc1
File Interpreter ABI Platform
codrop-1.0.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / codrop-1.0.0rc1.tar.gz

Download URL codrop-1.0.0rc1.tar.gz
Size 523.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d82f49899558a2c6a26689efe9c49c9e2e16ca04765f6e710424038f6d6e5f2d
BLAKE2b-256 checksum
How to use checksums
5127d227eef013c7a33824778d49d7f3a1d403bebdddb90c0f325e64ca43f7a5
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.0rc1-py3-none-any.whl

Download URL codrop-1.0.0rc1-py3-none-any.whl
Size 524.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9c76f2cbff99d9f9e80228c630aab86c7cf3cbb49c486733f4a4bbe48ec4e33
BLAKE2b-256 checksum
How to use checksums
cd6d3bde6642604a8acd5b7f7490f0ea2d997e6dfcddbee257e9f20d5de32899
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.0.0rc1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page