Skip to main content

Python bindings for EUMETSAT's PublicDecompWT

Project description

pyPublicDecompWT

python versions wheel CI build

This package provides python bindings for some of EUMETSAT’s PublicDecompWT tools.

With pyPublicDecompWT compressed xRIT (HRIT/LRIT) files can now be decompressed in-memory, directly with python! Currently, only bindings for the tool xRITDecompress are available. If you need other classes or functionalities, please open a pull-request!

This repository contains / mirrors the source code for the complete PublicDecompWT tool, as well. Additionally, we provide CMake build files.

Installation

Install pyxRITDecompress via pip:

pip install pyPublicDecompWT

The following command will verify if the installation succeeded:

python -c "import pyPublicDecompWT"

Requirements

Building from sources requires C/C++, including compiler and standard library support.

  • C/C++ Compiler, e.g. GNU-GCC
  • CMake
  • pybind11

Usage

from pyPublicDecompWT import xRITDecompress

# the file to decompress
compressed_file_path = "test-data/compressed_ref/H-000-MSG4__-MSG4________-HRV______-000012___-202105260000-C_"

# Legacy decompression on disk of given file path,
#  this will write the decompressed file to the current working directory
xRITDecompress(compressed_file_path)

# In-memory decompression of given buffer
with open(compressed_file_path, mode="rb") as fh:
    xRIT = xRITDecompress()
    xRIT.decompress(fh.read())
    uncompressed = xRIT.data()

xRITDecompress

To comply with the original PublicDecompWT project, the pyPublicDecompWT package provides a xRITDecompress executable as well. Our xRITDecompress script is a near drop-in replacement for the original.

There are two changes:

  • We are not writing Decompressed file ... to stdout
  • As per UNIX convention, the short option -s is separated by a space, not by a colon.

The former can be enabled by passing -v to xRITDecompress, however, the latter can't be emulated. Thus, the command line call has to be changed.

In addition to the -s option we added a positional argument files to enable batch processing of (multiple) files in a single call.

$ xRITDecompress --help
usage: xRITDecompress [-h] [--version] [-v] [-s FILE] [files ...]

Command line tool for manual decompression of HRIT/LRIT files.

positional arguments:
  files          Name of compressed HRIT/LRIT file(s)

options:
  -h, --help     show this help message and exit
  --version      show program`s version number and exit
  -v, --verbose  Verbose mode
  -s FILE        Name of compressed HRIT/LRIT file

Versioning Scheme

The versioning scheme of the python bindings is the PublicDecompWT version with the additional version of the python bindings.

Example: Version 1 of the python bindings for PublicDecompWT version 2.8.1 is 2.8.1.1

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

pyPublicDecompWT-2.8.1.3.tar.gz (170.1 kB view details)

Uploaded Source

Built Distributions

pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-win_amd64.whl (267.8 kB view details)

Uploaded PyPy Windows x86-64

pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (566.9 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl (226.9 kB view details)

Uploaded PyPy macOS 10.9+ x86-64

pyPublicDecompWT-2.8.1.3-cp310-cp310-win_amd64.whl (138.4 kB view details)

Uploaded CPython 3.10 Windows x86-64

pyPublicDecompWT-2.8.1.3-cp310-cp310-manylinux_2_24_x86_64.whl (248.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.24+ x86-64

pyPublicDecompWT-2.8.1.3-cp310-cp310-macosx_11_0_arm64.whl (204.3 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pyPublicDecompWT-2.8.1.3-cp310-cp310-macosx_10_9_x86_64.whl (227.6 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pyPublicDecompWT-2.8.1.3-cp39-cp39-win_amd64.whl (137.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

pyPublicDecompWT-2.8.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (287.9 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyPublicDecompWT-2.8.1.3-cp39-cp39-macosx_11_0_arm64.whl (204.6 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pyPublicDecompWT-2.8.1.3-cp39-cp39-macosx_10_9_x86_64.whl (227.6 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pyPublicDecompWT-2.8.1.3-cp38-cp38-win_amd64.whl (138.6 kB view details)

Uploaded CPython 3.8 Windows x86-64

pyPublicDecompWT-2.8.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (287.7 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyPublicDecompWT-2.8.1.3-cp38-cp38-macosx_11_0_arm64.whl (204.4 kB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pyPublicDecompWT-2.8.1.3-cp38-cp38-macosx_10_9_x86_64.whl (227.5 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pyPublicDecompWT-2.8.1.3-cp37-cp37m-win_amd64.whl (138.8 kB view details)

Uploaded CPython 3.7m Windows x86-64

pyPublicDecompWT-2.8.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (287.8 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pyPublicDecompWT-2.8.1.3-cp37-cp37m-macosx_10_9_x86_64.whl (226.7 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file pyPublicDecompWT-2.8.1.3.tar.gz.

File metadata

  • Download URL: pyPublicDecompWT-2.8.1.3.tar.gz
  • Upload date:
  • Size: 170.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for pyPublicDecompWT-2.8.1.3.tar.gz
Algorithm Hash digest
SHA256 b68deda3dfb4c76aa8011df7f5c19f1b878d24a2673fa278fe059ebc629ce1ef
MD5 29ef0db34558ddb5db5a8f96753ed69b
BLAKE2b-256 79ef880113582526ca6b0198d3c752fdee70600c1c08260360623d938abdac4d

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 6b013dc81c1aebb189021b89ec2d093776e1268044019d56652bd46a1e3545b6
MD5 239d8f7cb571e5a0ce17634493abd39c
BLAKE2b-256 5c7f0ab5b7f88a851e4572de07f368e8ea9a6ee49e6b00ea33de52a71ff1d12e

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e1ebe832c9361b76acbf71a340a67071b8b8186d5f59dcef6502679f05e61e89
MD5 8847866f490afe90d345dec0c4230615
BLAKE2b-256 05d93e64f6d5128d6b42ce6bd1c95840f5e3a0f6d2b4aef7ce30c5d65d77a14e

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 365592e52f1c67642d38bf6741dd1dc9310fbc698872095b8014035530174e34
MD5 d8075e69bf68d6db331cc88a0bb8662b
BLAKE2b-256 ecf150f0667b38a94ac2365f26b789a1aac20aecf69f71741337e70294ffffb2

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 698618bdbbc73fc12f67e44a469d77d51f0dd1eb1e37f068eeb70fdae559929e
MD5 ff540eaecd959d7fc925bfce2c046586
BLAKE2b-256 77b77736c2f4ab78ce710c1e71f10ec576604b68281fc7fd8f05132b20eb9686

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 6c3903b6b269ade72d18cf0f1346aa334123d856aa5fed5a4d0c8b0070ef6154
MD5 5686be78def38e83395f56a17acd1166
BLAKE2b-256 1a11e86670533564611996c068eae4e91367c4d66a6aa174c36641ff1e82dab9

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f623b379b99aee379874435eeaec23ddeef7c98c67de5f0f2384397625c15ca
MD5 3a3995c7a3e0fa8e686f40319aecbabb
BLAKE2b-256 ade072390f63dc08a182ef12e1eb2047f389899506170cf665b3f4949d375ec0

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7abd6945ce9ceed032eac9ebc6a5c9a9ed8adaa4b31e0cceb2fda82a69295f99
MD5 0bf08279ef3835f335880e99d6940bd5
BLAKE2b-256 3c72d0421d800b67f6cb9b63a55e428ae1e93bb8654768fcdfd04ff2bad1a128

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ee01366afb1a1c5004b609bd39833b093c48531cdbfc51b194c37fd7606c3864
MD5 9cdde540fcd7e5481d80ec3898d43c8d
BLAKE2b-256 871783be73d04d6ee3f04a8f8f65eadde33b03d78426de4a2bf0fcc38e70f8ca

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f84af6e3f5c4a36b9d4524fd4fdea99e4e1a9b95051ff4a725789cc34d96148
MD5 d79f8dcb900b5b1865517499fa2851ae
BLAKE2b-256 038b12e0e0ab1c1073b380ddb0655af35f8848999e1e66d6f6eafbc773d04c7d

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 654dd71a0a04a7941e0ebf3ddc4ab8c92e76294e15480113d608745d3df9d84e
MD5 5d1b4cf64087c2d81f63d92a5e433b3f
BLAKE2b-256 c1c05cc9daca15f6967f6953a9f14f325fc44f7fa40b4a94a63b7c57d3c15389

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dd959dfbf40c044958a3a8023fa47ad2013dee666f08a5a7cd683ef8b0fc41f9
MD5 89c6788c9783c40169e9fd899d1e1691
BLAKE2b-256 9dd38855d3fa338244526a75874e953de6d65b74f3f30df33057cdcf47e05de0

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 049f8ebfe7f56b27e577b73b8bdc4ae999003f5b19f3930df96be9f7e05ff2cc
MD5 64654bc6c03298508106e32987c38103
BLAKE2b-256 2552c3371ea6d967d005dd05bffd6e3bd0791651c97d2331d2eebc77b10bfb39

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 44ef155116adfaa5849096095167395a5363d677a90a77e521fe2b64497f4c96
MD5 57df7bb7d6ad215ac3f442d943a9ea4e
BLAKE2b-256 34f4ba791ead103d945a6b44e6cfc0121a1bf6867cc03bd7a28ed8b0d86b122b

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a85ba93c4f4e35ea5919e9d79b6d8c8ebda0aff6d091f71f93b10863587d5328
MD5 7202f1ebe8db85ddc289cd1fb4ccda4e
BLAKE2b-256 a3b8b60e9e52a58006756bb3ba8be89cb24f7f781f8b9f0fd539e3fe59030888

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 547a88b423c97bcfb1265808429daa14f2cd20fe0bbb273f9bee6b5cd1a658d8
MD5 1f859b658157ca1c411d6752f231157f
BLAKE2b-256 8b8769cbdec1b1d41baee110b525a81dd2cc3cb3a201d3cc3fc3067182a1b3ff

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a73d4bf58fb2d1c249edcd37cab0d73438f80d404ab22a31d047b98a32f21e71
MD5 13db82fa140b1064f856be3729fdab15
BLAKE2b-256 815005045ff3929567ab325a34a63e1428019fcba571fc98af210e42c720768b

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fb3aa56c9a73dcb8a30a822599f17910f449d06286a37044de5e22e8de2ef41a
MD5 8827dd246c9d47f6535d8c8aa3b3db46
BLAKE2b-256 6d3949a445920e1655cdbd690d7e858920d013e7dd50ee5e958a233124834d9f

See more details on using hashes here.

File details

Details for the file pyPublicDecompWT-2.8.1.3-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyPublicDecompWT-2.8.1.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 12e9a6348c504c94531eb66a87b185b548133dedbf942e374b84f52d4c97fb5e
MD5 2fd44c554991e5a180d2cae7d2b80340
BLAKE2b-256 6310e9cf4d04a1c4f50bccacb2e57862f71dbf9bebb27f0fa27daec796df86b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page