Python Deserialization

Open-source Python projects categorized as Deserialization

Top 21 Python Deserialization Projects

  • marshmallow

    A lightweight library for converting complex objects to and from simple Python datatypes.

    Project mention: Help making draggable items for Flask app. | /r/flask | 2023-08-21

    Somehow get a serializer going for your database models. I used marshmallow and flask-marshmallow

  • orjson

    Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy

    Project mention: Litestar 2.0 | /r/Python | 2023-08-29

    As we began venturing down that road, a few things emerged that would constitute significant changes to some of the core parts of Litestar, but there were two things in particular that started a chain reaction of changes by opening up further possibilities: The new DTOs and our switch from orjson to msgspec.

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • Schematics

    Python Data Structures for Humans™.

  • msgspec

    A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML

    Project mention: Litestar 2.0 | /r/Python | 2023-08-29

    Full support for validation and serialisation of attrs classes and msgspec Structs. Where previously only Pydantic models and types where supported, you can now mix and match any of these three libraries. In addition to this, adding support for another modelling library has been greatly simplified with the new plugin architecture

  • jsonpickle

    Python library for serializing any arbitrary object graph into JSON. It can take almost any Python object and turn the object into JSON. Additionally, it can reconstitute the object back into Python.

  • cattrs

    Complex custom class converters for attrs.

    Project mention: Writing Python like it’s Rust | /r/rust | 2023-05-20

    I'd suggest you look at my cattrs ( library as a good serde lookalike in Python (sum type support present and getting better), and to use attrs instead of dataclasses in general.

  • mashumaro

    Fast and well tested serialization library on top of dataclasses

    Project mention: DotDict: A simple Python library to make chained attributes possible | | 2023-08-02
  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • colander

    A serialization/deserialization/validation library for strings, mappings and lists.

  • mcap

    MCAP is a modular, performant, and serialization-agnostic container file format, useful for pub/sub and robotics applications.

    Project mention: ROS 2 Iron Irwini Release | | 2023-05-23

    > Especially a tool like RViz is always missing. And in many many robotics video I see (of a moderately complex robot), there's ROS's RViz on some screen.

    I would love the future robotics development stack to be more modular, so that (for example) future middleware solutions don't need to also bundle their own visualization software. This was direct inspiration for creating Foxglove Studio[0] for visualization and MCAP[1] for logging - both work great with ROS, or equally well without it.



  • rtoml

    A fast TOML library for python implemented in rust.

  • PyFLP

    FL Studio project file parser

  • Pickora

    A toy compiler that can convert Python scripts 🐍 to pickle bytecode 🥒

  • dataconf

    Simple dataclasses configuration management for Python with hocon/json/yaml/properties/env-vars/dict/cli support.

  • chili

    Object serialization/deserialization tools for python. (by kodemore)

  • lupin is a Python JSON object mapper

    Python document object mapper (load python object from JSON and vice-versa)

  • pymilo

    PyMilo: Python for ML I/O

    Project mention: [P] Request to Test PyMilo: A New Python Library for Machine Learning I/O | /r/MachineLearning | 2023-09-29

    GitHub Repo:

  • bytechomp

    A pure python declarative custom binary protocol parser & generator using dataclasses and type hinting. Like Pydantic for binary protocols.

  • bstruct

    Simple and efficient binary (de)serialization using type annotations.

    Project mention: This Week In Python 🎅 | | 2022-12-23

    bstruct – Simple and efficient binary (de)serialization using regular type annotations

  • py-object-factory

    objectfactory is a python package to easily implement the factory design pattern for object creation, serialization, and polymorphism

  • versionedobj

    Easy object serialization and versioning framework for python

    Project mention: versionedobj 2.0.4 is out! | /r/Python | 2023-04-05
  • ZnJSON

    Package to Encode/Decode some common file formats to json

  • Mergify

    Updating dependencies is time-consuming.. Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-09-29.

Python Deserialization related posts


What are some of the best open-source Deserialization projects in Python? This list will help you:

Project Stars
1 marshmallow 6,680
2 orjson 4,941
3 Schematics 2,562
4 msgspec 1,310
5 jsonpickle 1,159
6 cattrs 690
7 mashumaro 616
8 colander 440
9 mcap 330
10 rtoml 259
11 PyFLP 83
12 Pickora 80
13 dataconf 70
14 chili 59
15 lupin is a Python JSON object mapper 24
16 pymilo 24
17 bytechomp 21
18 bstruct 16
19 py-object-factory 10
20 versionedobj 5
21 ZnJSON 2
Updating dependencies is time-consuming.
Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.