[Python] Lightweight Mongodb ODM/ORM for Python

Discussão em 'Python' iniciado por Stack, Julho 12, 2025.

  1. Stack

    Stack Membro Participativo

    I'm looking for MondoDB Python ODM/ORM that takes the best from two worlds: ODM/ORM & ultra fast direct dictionary read.

    In other words package shall comply with following requirements:

    1. Allows to define and enforce schema.
    2. Allows to validate fields.
    3. Allows to read objects directly from mongodb (no ODM/ORM overhead).
      • Collections/objects returned directly by pymongo can be accessed using ODM/ORM layer (w/o extra queries).
      • I would imagine some kind of lazy field added by pymongo driver to objects that provides access to ORM juice (pymongo allows for such extensions).
      • Imagine use case:
        • For fast read we go directly to driver,
        • For data entry we use full ODM/ORM functionality
    4. Geofields support
    5. GridFS support of normal files and images
    6. DBRef support
    7. Does not enforce any hidden, framework specific fields
    8. Will work with Flask :)
    9. Has forms framework.
      • Forms cover sublists/subdicts
      • Backbone based forms would be just awesome
    10. Creates backbone models, collections, validators based of python definition

    I know that I'm asking for much but wouldn't it be awesome to have something like this :)

    In fact question could be rephrased into: "Which of existing Python Mongodb ODM/ORMs (MongoKit, MongoEngine) could be easily extended this way."

    Continue reading...

Compartilhe esta Página