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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file volga-0.2.0.tar.gz.

File metadata

  • Download URL: volga-0.2.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0 CPython/3.9.0 Darwin/20.1.0

File hashes

Hashes for volga-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ba678843d65087e3d7a9067710d325c9ce12d9416773cb287bda0d252be7a7fc
MD5 7c286e59673abe7abf0b4e12b8eef1a4
BLAKE2b-256 bed47cd0d3c1b980f4bb3e86c70eb74e4391d3ea15e9e937ab7858265407a06d

See more details on using hashes here.

File details

Details for the file volga-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: volga-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.0 CPython/3.9.0 Darwin/20.1.0

File hashes

Hashes for volga-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d9a28edc2daa0e1745db8b7da477866f1ab14c5bf2fc8de1578dc36a40318b8
MD5 ecde9ca936f833346f396cb773345ebf
BLAKE2b-256 31b974394d4e83af8792cd3ed79d1007a22f148ca1266e25b1b765ea78507b12

See more details on using hashes here.

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