Top 12 Python Deserialization Projects
-
marshmallow
A lightweight library for converting complex objects to and from simple Python datatypes.
You might be surprised how much I agree - I recently opened an issue there hoping to discuss something like this (still awaiting response). https://github.com/marshmallow-code/marshmallow/issues/2000
-
Project mention: Benchmarking Python JSON serializers - json vs ujson vs orjson | dev.to | 2022-05-25
For most cases, you would want to go with python’s standard json library which removes dependencies on other libraries. On other hand you could try out ujsonwhich is simple replacement for python’s json library. If you want more speed and also want dataclass, datetime, numpy, and UUID instances and you are ready to deal with more complex code, then you can try your hands on orjson
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
-
-
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.
Project mention: Thoughts on custom implementation around 3rd party libraries? | reddit.com/r/ExperiencedDevs | 2022-05-10One specific use case that I've encountered was with the jsonpickle library where we inherit from the pickler and change a lot of the internal methods.
-
Project mention: Taking JSON input for "posts", "tags" etc. How to escape '\' charecter or detect carefully? | reddit.com/r/flask | 2022-01-21
I'm fond of attrs and cattrs myself, attrs make creating data classes a snap, writing all of the stupid code python requires to have a dataclass. Note the new built in dataclass is actually a limited copy of attrs. https://www.attrs.org/en/stable/ and https://github.com/python-attrs/cattrs
-
Project mention: apischema v0.17 - I've developed the fastest typed JSON (de)serialization library, and you can also build your GraphQL schema with it | reddit.com/r/Python | 2022-01-18
This month, I've released version 0.17, and it's now blazing fast; there is in fact no more comparison with Pydantic, which more than 5x slower (up to 30x in serialization). It's also faster than alternatives like mashumaro or cattrs. (See the quick benchmark result in documentation, and the code)
-
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
-
dataconf
Simple dataclasses configuration management for Python with hocon/json/yaml/properties/env-vars/dict/cli support.
Project mention: Show HN: Dataconf, Python dataclasses config (hocon/JSON/YAML/env-vars/dict) | news.ycombinator.com | 2021-11-07 -
lupin is a Python JSON object mapper
Python document object mapper (load python object from JSON and vice-versa)
-
py-object-factory
objectfactory is a python package to easily implement the factory design pattern for object creation, serialization, and polymorphism
-
Project mention: Efficient multi-language message packing / serialization for embedded applications. (stuff_sack) | reddit.com/r/programming | 2021-07-17
-
Project mention: ZnJSON - another lightweight en/decoder for Python objects to Json | reddit.com/r/Python | 2022-03-11
Check it out directly via pip install znjson or on GitHub https://github.com/zincware/ZnJSON
Python Deserialization related posts
- Should I use SQLAlchemy for a side project?
- Taking JSON input for "posts", "tags" etc. How to escape '\' charecter or detect carefully?
- apischema v0.17 - I've developed the fastest typed JSON (de)serialization library, and you can also build your GraphQL schema with it
- The Pocket Guide To API Request Validation You Wish You Had Earlier
- Project Althaia - looking for performance/accuracy feedback on my shallow fork of marshmallow
- cattrs – an open source Python library for structuring and unstructuring data
- I use attrs instead of pydantic
Index
What are some of the best open-source Deserialization projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | marshmallow | 6,141 |
2 | orjson | 3,450 |
3 | Schematics | 2,509 |
4 | jsonpickle | 1,022 |
5 | cattrs | 486 |
6 | mashumaro | 418 |
7 | colander | 418 |
8 | dataconf | 50 |
9 | lupin is a Python JSON object mapper | 23 |
10 | py-object-factory | 4 |
11 | stuff_sack | 4 |
12 | ZnJSON | 2 |
Are you hiring? Post a new remote job listing for free.