This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Library for easy converting between plain JSON-like data and compound structure of user defined class instances.

Project Description

Library for easy bi-direction converting between plain JSON-like data (numbers, strings, lists and dicts) and compound user-defined classes.

Trivial example:

>>> from steward import *
>>> class Comp(Component):
...     a = Field()
...     b = Field(default=1)
...
>>> v = Comp(a=0)
>>> dct = v.as_plain()
>>> dct
{'a': 0, 'b': 1}
>>> v2 = Comp.from_plain(dct)
>>> v2.a
0
>>> v2.b
1
>>> v2.a = 7
>>> v2.as_plain()
{'a': 7, 'b': 1}
Release History

Release History

This version
History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
steward-0.0.4.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Sep 26, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting