skip to navigation
skip to content

Not Logged In

booby 0.3.0

Data modeling and validation Python library

Latest Version: 0.7.0

Booby is a standalone data modeling and validation library written in Python. Booby is under active development and licensed under the Apache2 license, so feel free to contribute and report errors and suggestions.

See the sample code below to get an idea of the main features.

from booby import *

class Token(Model):
    key = StringField()
    secret = StringField()

class User(Model):
    login = StringField(required=True)
    name = StringField()
    email = EmailField()
    token = EmbeddedField(Token, required=True)
    addresses = Field(default=list)

class Address(Model):
    line_1 = StringField(required=True)
    line_2 = StringField()

jack = User(
        'key': u'vs7dfxxx',
        'secret': u'ds5ds4xxx'
        Address(line_1='Main Street'),
        Address(line_1='Main St')

except ValidationError:
    for field, error in jack.validation_errors().items():
        print field, error
    print jack.to_json(indent=2)
  "email": "",
  "login": "jack",
  "token": {
    "secret": "ds5ds4xxx",
    "key": "vs7dfxxx"
  "name": "Jack",
  "addresses": [
      "line_1": "Main St",
      "line_2": null
      "line_1": "Main Street",
      "line_2": null


You can install the last stable release of Booby from PyPI using pip or easy_install.

$ pip install booby

Also you can install the latest sources from Github.

$ pip install -e git+git://


To run the Booby test suite you should install the development requirements and then run nosetests.

$ pip install -r requirements-devel.txt
$ nosetests tests/unit
$ nosetests tests/integration


Booby docs are hosted on Read The Docs.

File Type Py Version Uploaded on Size
booby-0.3.0.tar.gz (md5) Source 2013-06-19 6KB
  • Downloads (All Versions):
  • 35 downloads in the last day
  • 289 downloads in the last week
  • 1310 downloads in the last month