Skip to main content
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!

A simple library for creating models for JSON objects.

Project Description

MangoEngine is a simple library for creating models for JSON objects. Its interface is inspired by the fantastic [MongoEngine](http://mongoengine.org/) library, it resides (basically) in the public domain, and it has no dependencies.

from mangoengine import *

class City(Model):
    name = StringField()
    officials = DictField(
        of_key = StringField(),
        of_value = ListField(of = StringField(), nullable = True)
    )

city = City(name = "Gotham")
city.officials = {
    "mayor": ["Theodore Cobblepot"],
    "batman": ["Bruce Wayne"],
    "citizens": ["Joe Schmoe", "Dick", "Jane"]
}
city.validate()
Release History

Release History

This version
History Node

0.1-rc.1

History Node

v1.0.0-rc.2

History Node

v1.0.0-rc.1

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