Skip to main content

A python framework for deserialization

Project description

volga: flexible object deserialization

Build Status Azure DevOps coverage license release python-version Docs

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

volga-0.2.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

volga-0.2.0-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page