A python framework for deserialization
Project description
volga: flexible object deserialization
What is it?
volga provides fast, extensible, and expressive APIs to deserialize any python data structure from any supported data format (such as JSON and eventually YAML and more). Volga allows full customization of the deserialization behavior of your data structures resulting in schema-tized, validated, type-checked objects.
import volga
# Define your model
class User(volga.Schema):
name: volga.fields.Str
age: volga.fields.Int
verified: volga.fields.Bool
json_data = '{"name":"bob","age":20,"verified":true}'
bob = volga.json.deserialize(json_data, User)
assert isinstance(bob, User)
print(bob) # prints object User(name='bob', age=20, verified=True)
Main Features
Documentation
Full documentation will soon be available on https://volga.readthedocs.io/en/latest/
Where to get it
The source code is currently hosted on GitHub at: https://github.com/yefrig/volga
Binary installers for the latest released version are available at the Python package index.
pip install volga
Main Contributors
-
Yefri Gaitan @yefrig
-
Ecenaz (Jen) Ozmen @eozmen410
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.