pyPublicDecompWT
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. We use CMake build files, original makefiles are kept as reference.
Installation
Install pyPublicDecompWT 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
CMakepybind11
Exact versions can be seen in pyproject.toml.
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()
After successful decompression, getOutputLength() returns the serialized output size in bytes, including headers.
data() and metadata getters raise RuntimeError until the decompression succeeds.
Starting a new decode discards the previous result.
If reading or decoding fails, the decoder remains empty until the next decode call succeeds.
Previously returned bytes objects remain valid.
getTimeStamp() returns the file timestamp in UTC as YYYYMMDDHHMMSS, independently of the host timezone.
Subsecond precision is omitted from this string; serialized output preserves the timestamp's millisecond precision.
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 ...tostdout - As per UNIX convention, the short option
-sis 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.
By default, the script writes decompressed files to the current working directory using the filename from the decompressed annotation.
Use --output DIR to select another output directory.
$ xRITDecompress --help
usage: xRITDecompress [-h] [--version] [-v] [-s FILE] [--output DIR] [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
--output DIR Output directory (default: current working directory)
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
Development & Testing
The reference files are stored with Git LFS. Fetch their actual contents before running the tests:
git lfs pull
python -m pip install ".[test]"
python -m pytest tests
Tests fail if fixtures are missing or still contain Git LFS pointers. Legacy file-output and CLI tests use temporary directories.
Metadata
Release files for pyPublicDecompWT 2.8.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pypublicdecompwt-2.8.1.7.tar.gz | 168.2 kB | Without provenance | Details for pypublicdecompwt-2.8.1.7.tar.gz |
Built distributions (wheels)
Total release size: 5.7 MB
Release files / pypublicdecompwt-2.8.1.7.tar.gz
| Download URL | pypublicdecompwt-2.8.1.7.tar.gz |
|---|---|
| Size | 168.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
302c7b27baeb259257d0974dc56ec6c2d1339e74ac6fc77ba33a259b0ccae5d3
|
|
BLAKE2b-256 checksum How to use checksums |
ace897a782d7f20205be90827be8af2008e1aea1f27b42ce392c2f30313e8683
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp315-cp315-win_amd64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 368.2 kB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d9ca5704bae6a2ad230c932bd9d4d9ef21a82c9bc3b58af59fa408b9ca9cb8cf
|
|
BLAKE2b-256 checksum How to use checksums |
df93722c271a8106a52f1f2f983650f11b80c165dbbd84bc9a0998865220a977
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 282.8 kB |
| Tags | CPython 3.15 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ca55c8dd8a8b17857c5698c485d80ad2a75eae9c45f544e4dfaaef2097179696
|
|
BLAKE2b-256 checksum How to use checksums |
554b424348bb76979d7b753a10610c2f41a033a5874283ee1f1a46fd49f00ece
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp315-cp315-macosx_11_0_arm64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp315-cp315-macosx_11_0_arm64.whl |
|---|---|
| Size | 224.3 kB |
| Tags | CPython 3.15 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e344ff6ba9085f90cdbc3d19dbdf12e7b2f632e6f6c648947249567e87fbe432
|
|
BLAKE2b-256 checksum How to use checksums |
d5f93507d6126b43d9c11df2d82ce3575ae2705545df4f5712fff094a326626a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp315-cp315-macosx_10_15_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp315-cp315-macosx_10_15_x86_64.whl |
|---|---|
| Size | 242.6 kB |
| Tags | CPython 3.15 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
d931d8dd4674ef72343b00b4cd9b12078c159ba56f167a6a8af92443406ec72d
|
|
BLAKE2b-256 checksum How to use checksums |
8c01b4b50319205fa3590862c5db6b1414430b89700538d1e2ce0834c87b5a29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp314-cp314-win_amd64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 368.1 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
99c3690e00cd91910a50ce12ec9f702d6ecde3e53833ad82aa7787608a93630d
|
|
BLAKE2b-256 checksum How to use checksums |
a661397639f6f3d908335450980ed22455a2919ee3e15a97facfb445b55c585b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 282.8 kB |
| Tags | CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
8638817afa5afb99f1165b4cec552d4f5f163238c5c868332e7e0d059191d78b
|
|
BLAKE2b-256 checksum How to use checksums |
a462048d4187d3f5b5e11e85dc73d6e0ff7f923ac6b47d6823f2d722c1eea3d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 224.1 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7c3f33d649e9822c9fd379a445a7df9332697880486ec4b87d97f4d615d8c4f5
|
|
BLAKE2b-256 checksum How to use checksums |
1b1a5bfb4e26b2552920a8b0e88ea7d75bd6903d42ec236044cf8c689eab68fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp314-cp314-macosx_10_15_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp314-cp314-macosx_10_15_x86_64.whl |
|---|---|
| Size | 242.4 kB |
| Tags | CPython 3.14 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
b64e912f7fb28fcc6f0d2264bd71d63697acd4b006c26aa1607abcd7a1a3c304
|
|
BLAKE2b-256 checksum How to use checksums |
f13e50f6c438c75ad372dbf447b816d95faa8cc4e8fded31142cf03f269532fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp313-cp313-win_amd64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 355.9 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
79e67e10d3fcebba76747139d6f7201ae7ab880d21e5c921f69e650147d5a874
|
|
BLAKE2b-256 checksum How to use checksums |
dc729d9a7a9652d9adba32ebb35fc18fba0b69c7ec789f47630a2709a7606991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 282.6 kB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6e66b01d049c3895c02c8589d1891f742bf44a19aae1cf0f8b0ca44bd4c694ec
|
|
BLAKE2b-256 checksum How to use checksums |
a830c5f893a845ea8633c75ee205e395219b24554b1323d78dd44f6ab2101ba9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 223.9 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f4c8475390203a691f0c41e0eff82ef1f81cadf4900f28e7080d57ed3d70267f
|
|
BLAKE2b-256 checksum How to use checksums |
f6e22e547a40864805a79f29b3c57e647f45b88148ccc8f8ec5fa55ffee09911
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp313-cp313-macosx_10_13_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp313-cp313-macosx_10_13_x86_64.whl |
|---|---|
| Size | 241.9 kB |
| Tags | CPython 3.13 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
6cf83c3d6bed50b284612d2f964ce2246f8f9baee05ab9dcfd7b91318f3d052b
|
|
BLAKE2b-256 checksum How to use checksums |
a3738e8e75bd07b0acea6b5919f6092996d129df66b90da3c074174ec6eb8995
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp312-cp312-win_amd64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 355.9 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d83b8e383b301c5b9d63170503d62d550b609f7b990f56b8dfbe03fb30e508fa
|
|
BLAKE2b-256 checksum How to use checksums |
1b40e801c5497593b4ff50de09b5b494ffde95c0f689af6d2e6debe07711f1cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 282.5 kB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d9ba58c2877406973bd99a46e2480f49926edfd1d23d27e3d21056f8b16b145e
|
|
BLAKE2b-256 checksum How to use checksums |
d9668347b5b5545072c8565c5a0dfe689bb1adcc70db59082bd37368267b1637
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 223.8 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
47e35f0bc6bddaa03a16e06b9e10bb7aa1a8badb1fc9159c43a9eab6d156d82f
|
|
BLAKE2b-256 checksum How to use checksums |
e893ac57cf1fa61824931d7e3b4070ac82a5c9b74ba3e33aab1e58e91ada243b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp312-cp312-macosx_10_13_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp312-cp312-macosx_10_13_x86_64.whl |
|---|---|
| Size | 241.8 kB |
| Tags | CPython 3.12 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
f475a649d406fefc83c7bf31011f69c7ee1ddb0098a19bebf980e4e7cf70f1ee
|
|
BLAKE2b-256 checksum How to use checksums |
431055ee2cd8d9711cfebe4902b34f7c4f493ffec15c3206dffcc0fb6a5b5645
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp311-cp311-win_amd64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 353.9 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
481fe2a823c3266f477764d940a3ae039ebd3c1bbddb1704101362721ac99a52
|
|
BLAKE2b-256 checksum How to use checksums |
d161226643f6110faebf7f21a15bcae15aee03feb191edac2637b2f08f4b2c48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 281.3 kB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
341648d77032576d497b1ef8b05ed326aa2b9721fc984d8a90ba4046a2293a89
|
|
BLAKE2b-256 checksum How to use checksums |
2229bb338717e0269b5b8de9aaba6203716134c3416230f3510c678754aa045e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 224.3 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b9de77efd6a26c88681bfd1bcfe3ee5f72c5a0aa7b84c327ac3b12292fc78b82
|
|
BLAKE2b-256 checksum How to use checksums |
8084e882d7b8ec55479284ea3274f78bee66365f3e34b24ae16a40d3cd7ed9cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pypublicdecompwt-2.8.1.7-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | pypublicdecompwt-2.8.1.7-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 241.3 kB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
7b230e1f0fcf1594eccd8ce049323fd946b6d878a5fe2ca18c53f89d64c9d4c0
|
|
BLAKE2b-256 checksum How to use checksums |
500482a57728a6c4f81f43d39305359ee96f3bbdb633bb1bd288d442bfc3fb56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for pyPublicDecompWT 2.8.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.