https://github.com/scitools/mo_pack
Python wrapper to libmo_unpack
https://github.com/scitools/mo_pack
Last synced: about 1 year ago
JSON representation
Python wrapper to libmo_unpack
- Host: GitHub
- URL: https://github.com/scitools/mo_pack
- Owner: SciTools
- License: bsd-3-clause
- Created: 2015-04-15T15:18:46.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2025-06-09T19:07:10.000Z (about 1 year ago)
- Last Synced: 2025-06-09T20:21:03.030Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 569 KB
- Stars: 2
- Watchers: 9
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mo_pack
| | |
|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ⚙️ CI | [](https://results.pre-commit.ci/latest/github/SciTools/mo_pack/main) [](https://github.com/SciTools/mo_pack/actions/workflows/ci-tests.yml) |
| ✨ Meta | [](https://pixi.sh) [](https://github.com/astral-sh/ruff) [](https://scientific-python.org/specs/spec-0000/) [](https://github.com/SciTools/mo_pack/blob/main/LICENSE) |
| 📦 Package | [](https://anaconda.org/conda-forge/mo_pack) |
| 🧰 Repo | [](https://github.com/SciTools/mo_pack/commits/main) [](https://github.com/SciTools/mo_pack/graphs/contributors) [](https://github.com/SciTools/mo_pack/releases) |
| |
Provides Python bindings to the C library [libmo_unpack](https://github.com/SciTools/libmo_unpack) which contains packing methods used to encode and decode the data payloads of Met Office UM Post-Processing and Fields files.
Supports both **RLE** and **WGDOS** encoding methods.
## Developer
Creating a development environment, installing and building `mo_pack` then testing it couldn't be easier!
For example, simply:
```shell
> pixi run --environment py313-test pytest
```
Alternatively:
```shell
> pixi shell --environment py313-test
> python setup.py clean_cython
> python setup.py build_ext --inplace
> pytest
```
For further details see the [pixi](https://github.com/prefix-dev/pixi) documentation.
## License
`mo_pack` is distributed under the terms of the [BSD-3-Clause](https://spdx.org/licenses/BSD-3-Clause.html) license.