Hacker News new | past | comments | ask | show | jobs | submit | moqimoqidea's comments login

Friends,

Greetings!

I'm a developer, and recently I've been working on splitting a Python project into multiple microservices. During this process, I realized the need for JSON serialization and deserialization in Python. However, I couldn't find a publicly available third-party library that could serialize and deserialize any Python object without additional effort.

As we all know, Pydantic requires inheriting a base class to function, while Marshmallow necessitates defining a schema. Therefore, I created a project that dynamically combines these tasks, allowing users to serialize and deserialize without any special handling.

You can find the library here: https://pypi.org/project/pyjson_translator/

Currently, it can serialize typical object data and nested types, but I believe it's not yet complete or robust enough. If anyone is interested in contributing to the development, I would be very grateful. I hope this library can achieve functionality similar to Java's Gson, where most objects can be serialized to JSON with default configurations, making JSON transmission in Python microservices seamless.

Thank you all!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: