doublespace


Namedoublespace JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryPython extension for doublespace decompression
upload_time2025-08-04 04:22:12
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseNone
keywords compression doublespace libdeds
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # doublespace

[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
![Tests](https://github.com/Wer-Wolf/doublespace/actions/workflows/test.yml/badge.svg)

Python C extension for doublespace decompression, based on the [libdeds](https://github.com/Wer-Wolf/libdeds) library.

## Requirements

Python >= 3.12 is required to use this extension. Additionally not all python implementations
support C extensions.

## Installation

```sh
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}")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "doublespace",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "Compression, Doublespace, libdeds",
    "author": null,
    "author_email": "Armin Wolf <W_Armin@gmx.de>",
    "download_url": "https://files.pythonhosted.org/packages/b3/4a/bbc89d97208bb8a8799baa192b2298a96737a845bd07f5b7bc21639d2d46/doublespace-1.0.0.tar.gz",
    "platform": null,
    "description": "# doublespace\n\n[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)\n![Tests](https://github.com/Wer-Wolf/doublespace/actions/workflows/test.yml/badge.svg)\n\nPython C extension for doublespace decompression, based on the [libdeds](https://github.com/Wer-Wolf/libdeds) library.\n\n## Requirements\n\nPython >= 3.12 is required to use this extension. Additionally not all python implementations\nsupport C extensions.\n\n## Installation\n\n```sh\npython3 -m pip install doublespace\n```\n\n## Building\n\nYou can build this extension using the standard ``hatch build`` command. Please ensure that\nyou have the ``ninja`` build system installed on your local system or else the build might\nfail. You can also use the standard ``hatch test`` command to execute the unit tests.\n\nYou can also use ``cibuildwheel`` for building this extension in a manner compatible with\nthe python manylinux specification.\n\n## Example\n\nThis example uses the ``decompress`` function to perform doublespace decompression.\nPlease keep in mind that a output buffer with a mismatched size will result in an\nexception. Usually the container format used for carrying doublespace-compressed\ndata tells you the size of the decompressed data.\n\n```\nfrom doublespace import decompress\n\nout = bytearray(255)    # buffer for output data\nin = b'\\xBE\\xEF'        # input data (bogus data)\n\nversion: int = decompress(in, out)\n\nprint(f\"Format version: {version}\")\nprint(f\"Result: {out}\")\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python extension for doublespace decompression",
    "version": "1.0.0",
    "project_urls": {
        "Bugtracker": "https://github.com/Wer-Wolf/doublespace/issues",
        "Repository": "https://github.com/Wer-Wolf/doublespace"
    },
    "split_keywords": [
        "compression",
        " doublespace",
        " libdeds"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8ca3ff7522de50ea157a72c8aaa4614a391ad09570a0259f9bf160748404b208",
                "md5": "add2a890c8772c4f38a6e9a616c53f04",
                "sha256": "ab9c89f821bca81c09d36d0c3ffd6d1dc0caea6fe80254054e95df2efc893926"
            },
            "downloads": -1,
            "filename": "doublespace-1.0.0-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl",
            "has_sig": false,
            "md5_digest": "add2a890c8772c4f38a6e9a616c53f04",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": ">=3.12",
            "size": 6640,
            "upload_time": "2025-08-04T04:22:10",
            "upload_time_iso_8601": "2025-08-04T04:22:10.798337Z",
            "url": "https://files.pythonhosted.org/packages/8c/a3/ff7522de50ea157a72c8aaa4614a391ad09570a0259f9bf160748404b208/doublespace-1.0.0-cp312-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b34abbc89d97208bb8a8799baa192b2298a96737a845bd07f5b7bc21639d2d46",
                "md5": "f7a2696ffcd9037d2ac35766b4bed4d8",
                "sha256": "2435400af55acc069f07e24d46986baac23d3038d7992b912211dce47c57a9c7"
            },
            "downloads": -1,
            "filename": "doublespace-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f7a2696ffcd9037d2ac35766b4bed4d8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 13085,
            "upload_time": "2025-08-04T04:22:12",
            "upload_time_iso_8601": "2025-08-04T04:22:12.333755Z",
            "url": "https://files.pythonhosted.org/packages/b3/4a/bbc89d97208bb8a8799baa192b2298a96737a845bd07f5b7bc21639d2d46/doublespace-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-04 04:22:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Wer-Wolf",
    "github_project": "doublespace",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "doublespace"
}
        
Elapsed time: 0.74972s