Skip to main content

Python package implemented in Rust to decode MOSS readout data

Project description

MOSS Decoder

CI PyPI - Downloads GitHub commit activity (branch)

Python module implemented in Rust for decoding raw data from the MOSS chip (Stitched Monolithic Pixel Sensor prototype).

Installation

$ pip install moss-decoder

Import in python and use for decoding raw data.

import moss_decoder
moss_packets = moss_decoder.decode_event(bytes)

Motivation & Purpose

Decoding in native Python is slow and the MOSS verification team at CERN got to a point where we needed more performance.

Earliest version of a Rust package gave massive improvements as shown in the benchmark below.

Decoding the 10 MB MOSS readout data. Performed on CentOS Stream 9 with Python 3.11

Command Mean [s] Min [s] Max [s] Relative
python moss_test/util/decoder_native_python.py 36.319 ± 0.175 36.057 36.568 228.19 ± 2.70
python moss_test/util/decoder_rust_package.py 0.159 ± 0.002 0.157 0.165 1.00

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

moss_decoder-0.1.3.tar.gz (2.4 MB view hashes)

Uploaded Source

Built Distributions

moss_decoder-0.1.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (582.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (589.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (574.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl (595.5 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (582.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (589.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (574.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl (595.5 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (583.0 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-pp38-pypy38_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-pp38-pypy38_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (590.0 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (574.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl (595.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (585.1 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-pp37-pypy37_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl (697.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-pp37-pypy37_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (588.5 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (592.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (576.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl (597.3 kB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (582.5 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.4 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.2 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (589.6 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (573.8 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl (595.2 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-cp311-none-win_amd64.whl (114.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

moss_decoder-0.1.3-cp311-none-win32.whl (109.1 kB view hashes)

Uploaded CPython 3.11 Windows x86

moss_decoder-0.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (582.5 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.4 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (589.6 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (573.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl (595.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-cp311-cp311-macosx_11_0_arm64.whl (218.6 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

moss_decoder-0.1.3-cp311-cp311-macosx_10_7_x86_64.whl (228.1 kB view hashes)

Uploaded CPython 3.11 macOS 10.7+ x86-64

moss_decoder-0.1.3-cp310-none-win_amd64.whl (114.4 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

moss_decoder-0.1.3-cp310-none-win32.whl (109.1 kB view hashes)

Uploaded CPython 3.10 Windows x86

moss_decoder-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (582.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (589.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (573.8 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl (595.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (218.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

moss_decoder-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl (228.1 kB view hashes)

Uploaded CPython 3.10 macOS 10.7+ x86-64

moss_decoder-0.1.3-cp39-none-win_amd64.whl (114.6 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

moss_decoder-0.1.3-cp39-none-win32.whl (109.3 kB view hashes)

Uploaded CPython 3.9 Windows x86

moss_decoder-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (582.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (590.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (574.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl (595.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-cp38-none-win_amd64.whl (114.6 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

moss_decoder-0.1.3-cp38-none-win32.whl (109.5 kB view hashes)

Uploaded CPython 3.8 Windows x86

moss_decoder-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (583.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

moss_decoder-0.1.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.9 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (590.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (574.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl (595.8 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.5+ i686

moss_decoder-0.1.3-cp37-none-win_amd64.whl (114.6 kB view hashes)

Uploaded CPython 3.7 Windows x86-64

moss_decoder-0.1.3-cp37-none-win32.whl (109.5 kB view hashes)

Uploaded CPython 3.7 Windows x86

moss_decoder-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (583.1 kB view hashes)

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

moss_decoder-0.1.3-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl (694.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ s390x

moss_decoder-0.1.3-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (586.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ppc64le

moss_decoder-0.1.3-cp37-cp37m-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (590.4 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARMv7l

moss_decoder-0.1.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (574.3 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

moss_decoder-0.1.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.whl (595.9 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.5+ i686

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