-
Notifications
You must be signed in to change notification settings - Fork 0
hensom/jsonmodels
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Allows you to create declarative JSON models. Heavily inspired by django models. Example: import json from jsonmodels import Model, Field, DateField class Track(Model): title = Field() release_date = DateField(key = 'date') sample_json = """ { 'title': 'Coin Operated Boy', 'date': '2007-02-01' } """ data = json.load(sample_json) track = Track.new_from_json(data) print '%s - %s' % (track.title, track.release_date.strftime('%F'))
About
Declarative JSON Models for Python
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published