Python extension for doublespace decompression
Project description
doublespace
Python C extension for doublespace decompression, based on the libdeds library.
Requirements
Python >= 3.12 is required to use this extension. Additionally not all python implementations support C extensions.
Installation
python3 -m pip install doublespace
Building
You can build this extension using the standard hatch build command. Please ensure that
you have the ninja build system installed on your local system or else the build might
fail. You can also use the standard hatch test command to execute the unit tests.
You can also use cibuildwheel for building this extension in a manner compatible with
the python manylinux specification.
Example
This example uses the decompress function to perform doublespace decompression.
Please keep in mind that a output buffer with a mismatched size will result in an
exception. Usually the container format used for carrying doublespace-compressed
data tells you the size of the decompressed data.
from doublespace import decompress
out = bytearray(255) # buffer for output data
in = b'\xBE\xEF' # input data (bogus data)
version: int = decompress(in, out)
print(f"Format version: {version}")
print(f"Result: {out}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file doublespace-1.0.1.tar.gz.
File metadata
- Download URL: doublespace-1.0.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6858a27a050918ef5e70cb34d97d5243cad2b249fd248a90b197ca6e67f5090a
|
|
| MD5 |
ac53e263a012e73c5f578982c9c142c7
|
|
| BLAKE2b-256 |
7ed7b6b18fbae0be82e809434c16a119d23d7c177c9af5141e3e5dfa3c0a7745
|
File details
Details for the file doublespace-1.0.1-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.
File metadata
- Download URL: doublespace-1.0.1-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 6.6 kB
- Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91c35c6af7a7ff451df1757c00a8649ba013d3665268050842b23e4604fe1188
|
|
| MD5 |
80d178bb3be19f7082279cff8a93c7be
|
|
| BLAKE2b-256 |
e8c9e021902528847d515552e5766d07d483cc48664d99f7a2af3b3e1ec0cc53
|