serialite

Serialization and deserialization library for Python (by drhagen)

Serialite Alternatives

Similar projects and alternatives to serialite

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better serialite alternative or higher similarity.

serialite reviews and mentions

Posts with mentions or reviews of serialite. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-23.
  • Pydantic V2 leverages Rust's Superpowers [video]
    4 projects | news.ycombinator.com | 23 Apr 2023
    Pydantic is so cool and I am really excited to migrate to v2. My biggest pain point in Pydantic is that it has no abstract base class for a serializer/deserializer. There is just BaseModel. This means that there is no "Pydantic interface" to implement. If I need to serialize/deserialize something other than an object with attributes, I basically can't do it in Pydantic, or at least I couldn't figure out how to do it.

    In contrast, when I designed Serialite [1], I designed it to have a Serializer base class with two abstract methods: to_data and from_data. Then I added a @serializable decorator that can be applied to any dataclass, which injects concrete implementations of to_data and from_data. The decorator is what I usually use, but I sometimes implement the base class directly when it gets too complicated.

    Making Serialite work with FastAPI was almost impossible because there is no interface to implement, duck type or otherwise. In the end, Serialite monkey patches some key FastAPI functions to make them understand Serialite Serializers and that seems to work.

    [1] https://github.com/drhagen/serialite

Stats

Basic serialite repo stats
1
7
5.1
about 1 month ago

drhagen/serialite is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of serialite is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com