Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 notifications | RSS feed

This release

0.1-rc.1 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page