Skip to main content

Python extension for doublespace decompression

Project description

doublespace

Hatch project Tests

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


Download files

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

Source Distribution

doublespace-1.0.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

doublespace-1.0.1-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (6.6 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

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

Hashes for doublespace-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6858a27a050918ef5e70cb34d97d5243cad2b249fd248a90b197ca6e67f5090a
MD5 ac53e263a012e73c5f578982c9c142c7
BLAKE2b-256 7ed7b6b18fbae0be82e809434c16a119d23d7c177c9af5141e3e5dfa3c0a7745

See more details on using hashes here.

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

File hashes

Hashes for doublespace-1.0.1-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 91c35c6af7a7ff451df1757c00a8649ba013d3665268050842b23e4604fe1188
MD5 80d178bb3be19f7082279cff8a93c7be
BLAKE2b-256 e8c9e021902528847d515552e5766d07d483cc48664d99f7a2af3b3e1ec0cc53

See more details on using hashes here.

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