Have a personal or library account? Click to login
mPickle: Pickle for MicroPython Cover
Open Access
|Jan 2026

Abstract

The rapid deployment of AI and ML at the far edge, particularly on microcontrollers, requires efficient serialization of complex data structures. Python’s pickle module is widely used but lacks native support in MicroPython, hindering seamless data transfer. We introduce mPickle, a MicroPython-compatible library enabling memory-optimized serialization of complex Python objects, supporting TinyMLOps workflows that transfer model artifacts from CPython to MicroPython targets. mPickle implements the Pickle Protocol 4 with a module/function mapping layer that enables interoperable binary serialization and deserialization between CPython and MicroPython. The library is validated via unit tests, benchmarks, and examples covering built-in types, custom classes, numerical arrays, and model-weight dictionaries.

DOI: https://doi.org/10.5334/jors.587 | Journal eISSN: 2049-9647
Language: English
Submitted on: Jun 12, 2025
|
Accepted on: Dec 30, 2025
|
Published on: Jan 20, 2026
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2026 Mattia Antonini, Massimo Vecchio, Fabio Antonelli, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.