{
  "id": "task_libraries:mongodb/python",
  "path": "/exapedia/python-mongodb-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python MongoDB libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python MongoDB libraries connect applications to MongoDB and read and write its documents. An object document mapper adds schemas, validation, and typed models on top of the plain dictionaries that a driver returns. These libraries let web apps and backend services store user records, content, and events as JSON-like documents."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python MongoDB libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pymongo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F130"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#motor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F137"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#beanie",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mongoengine",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#odmantic",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django-mongodb-backend",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#umongo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#pymongo",
          "label": [
            {
              "t": "text",
              "text": "PyMongo"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F127"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Synchronous document operations",
            "Pydantic document models"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pymongo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F126"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#motor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F137"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#beanie",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mongoengine",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#odmantic",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F180"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#django-mongodb-backend",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#umongo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "pymongo",
          "name": [
            {
              "t": "fact",
              "fact": "F126"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mongodb/mongo-python-driver"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pymongo"
            },
            {
              "label": "Docs",
              "href": "https://www.mongodb.com/docs/languages/python/pymongo-driver/current/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F10"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F127"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F129"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F128"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.mongodb.com/docs/languages/python/pymongo-driver/current/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F11"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pymongo import MongoClient\n\nwith MongoClient(\"mongodb://localhost:27017\") as client:\n    result = client.library_demo.notes.insert_one({\"name\": \"Hello\"})\n    print(result.inserted_id)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.mongodb.com/docs/languages/python/pymongo-driver/current/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20pymongo%20for%20task-result%20cleanup%2C%20search%20filters%20and%20document%20updates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F126"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F131"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "motor",
          "name": [
            {
              "t": "fact",
              "fact": "F137"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mongodb/motor"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/motor"
            },
            {
              "label": "Docs",
              "href": "https://motor.readthedocs.io/en/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F144"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://motor.readthedocs.io/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F137"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import asyncio\nfrom motor.motor_asyncio import AsyncIOMotorClient\n\nasync def main():\n    client = AsyncIOMotorClient(\"mongodb://localhost:27017\")\n    try:\n        result = await client.library_demo.notes.insert_one({\"name\": \"Hello\"})\n        print(result.inserted_id)\n    finally:\n        client.close()\n\nasyncio.run(main())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://motor.readthedocs.io/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=motor%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F137"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F142"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "beanie",
          "name": [
            {
              "t": "fact",
              "fact": "F150"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/BeanieODM/beanie"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/beanie"
            },
            {
              "label": "Docs",
              "href": "https://beanie-odm.dev/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F36"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://beanie-odm.dev/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F150"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/devdupont/fastapi-beanie-jwt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F163"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@router.patch(\"\", response_model=UserOut)\nasync def update_user(update: UserUpdate, user: User = Depends(current_user)):  # type: ignore[no-untyped-def]\n    \"\"\"Update allowed user fields.\"\"\"\n    fields = update.model_dump(exclude_unset=True)\n    if new_email := fields.pop(\"email\", None):\n        if new_email != user.email:\n            if await User.by_email(new_email) is not None:\n                raise HTTPException(400, \"Email already exists\")\n            user.update_email(new_email)\n    user = user.model_copy(update=fields)\n    await user.save()\n    return user",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/devdupont/fastapi-beanie-jwt/blob/71dd0fc90c08cae2938c1e2d315179b86967db8c/myserver/routes/user.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F162"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20beanie%20for%20task-result%20cleanup%2C%20search%20filters%20and%20document%20updates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F150"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import asyncio\nfrom pymongo import AsyncMongoClient\nfrom beanie import Document, init_beanie\n\nclass Note(Document):\n    name: str\n\nasync def main():\n    client = AsyncMongoClient(\"mongodb://localhost:27017\")\n    try:\n        await init_beanie(database=client.library_demo, document_models=[Note])\n        await Note(name=\"Hello\").insert()\n    finally:\n        await client.close()\n\nasyncio.run(main())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://beanie-odm.dev/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F155"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mongoengine",
          "name": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/MongoEngine/mongoengine"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/mongoengine"
            },
            {
              "label": "Docs",
              "href": "https://mongoengine-odm.readthedocs.io/apireference.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F57"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://mongoengine-odm.readthedocs.io/apireference.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F165"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F58"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F59"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pallets-eco/flask-admin",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F178"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def create_model(self, form: Form) -> Document | bool:\n    \"\"\"\n    Create model helper\n\n    :param form:\n        Form instance\n    \"\"\"\n    try:\n        model = self.model()\n        form.populate_obj(model)\n        self._on_model_change(form, model, True)\n        model.save()\n    except Exception as ex:\n        if not self.handle_view_exception(ex):\n            flash(\n                gettext(\n                    \"Failed to create record. %(error)s\", error=format_error(ex)\n                ),\n                \"error\",\n            )\n            log.exception(\"Failed to create record.\")\n\n        return False\n    else:\n        self.after_model_change(form, model, True)\n\n    return model",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pallets-eco/flask-admin/blob/861ba3806b47b28715ee3c394cf3d901d4e592b4/flask_admin/contrib/mongoengine/view.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20mongoengine%20for%20task-result%20cleanup%2C%20search%20filters%20and%20document%20updates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F165"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from mongoengine import connect, Document, StringField\n\nconnect(db=\"library_demo\", host=\"mongodb://localhost:27017\")\n\nclass Note(Document):\n    name = StringField(required=True)\n\nNote(name=\"Hello\").save()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://mongoengine-odm.readthedocs.io/apireference.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.rst"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F170"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "odmantic",
          "name": [
            {
              "t": "fact",
              "fact": "F180"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/art049/odmantic"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/odmantic"
            },
            {
              "label": "Docs",
              "href": "https://art049.github.io/odmantic/engine/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F83"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://art049.github.io/odmantic/engine/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F180"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F84"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F85"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mongodb-labs/full-stack-fastapi-mongodb",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "async def update(\n    self, db: AgnosticDatabase, *, db_obj: ModelType, obj_in: Union[UpdateSchemaType, Dict[str, Any]] # noqa\n) -> ModelType:\n    obj_data = jsonable_encoder(db_obj)\n    if isinstance(obj_in, dict):\n        update_data = obj_in\n    else:\n        update_data = obj_in.model_dump(exclude_unset=True)\n    for field in obj_data:\n        if field in update_data:\n            setattr(db_obj, field, update_data[field])\n    # TODO: Check if this saves changes with the setattr calls\n    await self.engine.save(db_obj)\n    return db_obj\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mongodb-labs/full-stack-fastapi-mongodb/blob/ac15de2b2241e3354ef7cd336e80131275dcc34d/{{cookiecutter.project_slug}}/backend/app/app/crud/base.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20odmantic%20for%20task-result%20cleanup%2C%20search%20filters%20and%20document%20updates&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F180"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pymongo import MongoClient\nfrom odmantic import Model, SyncEngine\n\nclass Note(Model):\n    name: str\n\nwith MongoClient(\"mongodb://localhost:27017\") as client:\n    engine = SyncEngine(client=client, database=\"library_demo\")\n    engine.save(Note(name=\"Hello\"))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://art049.github.io/odmantic/engine/",
                  "label": [
                    {
                      "t": "text",
                      "text": "save_with_transaction.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F185"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "django-mongodb-backend",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mongodb/django-mongodb-backend"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/django-mongodb-backend"
            },
            {
              "label": "Docs",
              "href": "https://www.mongodb.com/docs/languages/python/django-mongodb/current/get-started/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F202"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.mongodb.com/docs/languages/python/django-mongodb/current/get-started/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from django.conf import settings\n\nsettings.configure(DATABASES={\"default\": {\n    \"ENGINE\": \"django_mongodb_backend\",\n    \"HOST\": \"mongodb://localhost:27017\", \"NAME\": \"library_demo\",\n}})\nimport django\ndjango.setup()\nfrom django.db import connection\nprint(connection.get_database().command(\"ping\"))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.mongodb.com/docs/languages/python/django-mongodb/current/get-started/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=django-mongodb-backend%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "umongo",
          "name": [
            {
              "t": "fact",
              "fact": "F208"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Scille/umongo"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/umongo"
            },
            {
              "label": "Docs",
              "href": "https://umongo.readthedocs.io/en/latest/apireference.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://umongo.readthedocs.io/en/latest/apireference.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pymongo import MongoClient\nfrom umongo import Document, fields\nfrom umongo.frameworks.pymongo import PyMongoInstance\n\nwith MongoClient(\"mongodb://localhost:27017\") as client:\n    instance = PyMongoInstance(client.library_demo)\n\n    @instance.register\n    class Note(Document):\n        name = fields.StringField(required=True)\n\n    Note(name=\"Hello\").commit()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://umongo.readthedocs.io/en/latest/apireference.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "apireference.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=umongo%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F208"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F213"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python MongoDB library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pymongo",
          "label": [
            {
              "t": "text",
              "text": "PyMongo"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits most applications, with synchronous and native asyncio APIs from MongoDB. "
        },
        {
          "t": "link",
          "href": "#beanie",
          "label": [
            {
              "t": "text",
              "text": "Beanie"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits async applications that model documents with Pydantic. "
        },
        {
          "t": "link",
          "href": "#mongoengine",
          "label": [
            {
              "t": "text",
              "text": "MongoEngine"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits synchronous applications that want declarative document classes."
        }
      ]
    },
    {
      "q": "What is PyMongo?",
      "a": [
        {
          "t": "link",
          "href": "#pymongo",
          "label": [
            {
              "t": "text",
              "text": "PyMongo"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the official MongoDB driver for Python, with synchronous and native asyncio APIs. It works with raw dictionaries and BSON rather than model classes."
        }
      ]
    },
    {
      "q": "What is MongoEngine?",
      "a": [
        {
          "t": "link",
          "href": "#mongoengine",
          "label": [
            {
              "t": "text",
              "text": "MongoEngine"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a synchronous object document mapper with declarative document and field classes, validation on save, and querysets."
        }
      ]
    },
    {
      "q": "Is Motor deprecated?",
      "a": [
        {
          "t": "text",
          "text": "Yes. MongoDB has announced the deprecation of "
        },
        {
          "t": "link",
          "href": "#motor",
          "label": [
            {
              "t": "text",
              "text": "Motor"
            }
          ]
        },
        {
          "t": "text",
          "text": " and recommends migrating to the async API in "
        },
        {
          "t": "link",
          "href": "#pymongo",
          "label": [
            {
              "t": "text",
              "text": "PyMongo"
            }
          ]
        },
        {
          "t": "text",
          "text": ". Motor receives only critical bug fixes during the deprecation window."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, pymongo",
      "display": "PyMongo",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, pymongo",
      "display": "71.0M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, pymongo",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, pymongo",
      "display": "4.20.0, Nov 2026",
      "asOf": "2026-11-12"
    },
    "F5": {
      "label": "Package release date, pymongo",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F6": {
      "label": "Repository stars, pymongo",
      "display": "4.4K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Async database calls, pymongo",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Defines field indexes, pymongo",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Install, pymongo",
      "display": "pip install pymongo",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "What it does, pymongo",
      "display": "Provides synchronous and asynchronous MongoDB operations through the native Python driver.",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "strengths lead, pymongo",
      "display": "Offers synchronous and asynchronous APIs",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths, pymongo",
      "display": "Choose the native client interface that fits the application.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, pymongo",
      "display": "Coordinates multi-document transactions",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, pymongo",
      "display": "Commit related writes together or discard their changes on failure.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "limitations lead, pymongo",
      "display": "Async clients need one loop",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations, pymongo",
      "display": "Keep each AsyncMongoClient within its original thread and event loop.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, pymongo",
      "display": "Transaction operations must run sequentially",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, pymongo",
      "display": "Avoid parallel operations inside the same transaction.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, pymongo",
      "display": "import pymongo\nclient = pymongo.MongoClient(\"localhost\", 27017)\ndb = client.test\ndb.name\ndb.my_collection\ndb.my_collection.insert_one({\"x\": 10}).inserted_id\ndb.my_collection.insert_one({\"x\": 8}).inserted_id\ndb.my_collection.insert_one({\"x\": 11}).inserted_id\ndb.my_collection.find_one()\nfor item in db.my_collection.find():\n    print(item[\"x\"])\ndb.my_collection.create_index(\"x\")\nfor item in db.my_collection.find().sort(\"x\", pymongo.ASCENDING):\n    print(item[\"x\"])\n[item[\"x\"] for item in db.my_collection.find().limit(2).skip(1)]\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function, pymongo",
      "display": "def cleanup(self):\n    # ...\n    if not self.expires:\n        return\n\n    cutoff = add_seconds_to_datetime(self.app.now(), -self.expires_delta.total_seconds())\n    self.collection.delete_many(\n        {'date_done': {'$lt': cutoff}},\n    )\n    self.group_collection.delete_many(\n        {'date_done': {'$lt': cutoff}},\n    )\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function reference, pymongo",
      "display": "mongodb.py · cleanup()",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project repository, pymongo",
      "display": "celery/celery",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project stars, celery/celery",
      "display": "29.2K",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project push date, celery/celery",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F25": {
      "label": "Library name, beanie",
      "display": "Beanie",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Monthly downloads, beanie",
      "display": "1.8M",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "License, beanie",
      "display": "Apache",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Package release, beanie",
      "display": "2.2.0, Aug 2026",
      "asOf": "2026-08-07"
    },
    "F29": {
      "label": "Package release date, beanie",
      "display": "Aug 2026",
      "asOf": "2026-08-07"
    },
    "F30": {
      "label": "Repository stars, beanie",
      "display": "2.7K",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Async database calls, beanie",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Validates model fields, beanie",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Defines field indexes, beanie",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Stores model references, beanie",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Install, beanie",
      "display": "pip install beanie",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "What it does, beanie",
      "display": "Maps MongoDB collections to asynchronous Pydantic-based document models.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, beanie",
      "display": "Uses Pydantic document models",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, beanie",
      "display": "Define typed document fields and embedded Pydantic models.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, beanie",
      "display": "Includes data and schema migrations",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, beanie",
      "display": "Manage document changes with the mapper’s migration tooling.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, beanie",
      "display": "Relations need top-level fields",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, beanie",
      "display": "Keep supported document links at the top level of the model.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, beanie",
      "display": "Fetched links restrict chained writes",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, beanie",
      "display": "Separate linked-document fetching from chained update or delete operations.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, beanie",
      "display": "import asyncio\nfrom typing import Optional\n\nfrom pymongo import AsyncMongoClient\nfrom pydantic import BaseModel\n\nfrom beanie import Document, Indexed, init_beanie\n\n\nclass Category(BaseModel):\n    name: str\n    description: str\n\n\nclass Product(Document):\n    name: str                          # You can use normal types just like in pydantic\n    description: Optional[str] = None\n    price: Indexed(float)              # You can also specify that a field should correspond to an index\n    category: Category                 # You can include pydantic models as well\n\n\n# This is an asynchronous example, so we will access it from an async function\nasync def example():\n    # Beanie uses PyMongo async client under the hood\n    client = AsyncMongoClient(\"mongodb://user:pass@host:27017\")\n\n    # Initialize beanie with the Product document class\n    await init_beanie(database=client.db_name, document_models=[Product])\n\n    chocolate = Category(name=\"Chocolate\", description=\"A preparation of roasted and ground cacao seeds.\")\n    # Beanie documents work just like pydantic models\n    tonybar = Product(name=\"Tony's\", price=5.95, category=chocolate)\n    # And can be inserted into the database\n    await tonybar.insert() \n    \n    # You can find documents with pythonic syntax\n    product = await Product.find_one(Product.price < 10)\n    \n    # And update them\n    await product.set({Product.name:\"Gold bar\"})\n\n\nif __name__ == \"__main__\":\n    asyncio.run(example())\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Library name, mongoengine",
      "display": "MongoEngine",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Monthly downloads, mongoengine",
      "display": "1.6M",
      "asOf": "2026-11-16"
    },
    "F48": {
      "label": "License, mongoengine",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Package release, mongoengine",
      "display": "0.29.3, Mar 2026",
      "asOf": "2026-03-10"
    },
    "F50": {
      "label": "Package release date, mongoengine",
      "display": "Mar 2026",
      "asOf": "2026-03-10"
    },
    "F51": {
      "label": "Repository stars, mongoengine",
      "display": "4.3K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Async database calls, mongoengine",
      "display": "Unsupported",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Validates model fields, mongoengine",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Defines field indexes, mongoengine",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Stores model references, mongoengine",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Install, mongoengine",
      "display": "pip install mongoengine",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "What it does, mongoengine",
      "display": "Maps MongoDB documents to Python classes with declared fields, validation, and references.",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "strengths lead, mongoengine",
      "display": "Validates documents before saving",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "strengths, mongoengine",
      "display": "Check declared field constraints when validating or saving a document.",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "strengths lead, mongoengine",
      "display": "Links documents through declared references",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths, mongoengine",
      "display": "Assign another document to a ReferenceField and retrieve it through that field.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "limitations lead, mongoengine",
      "display": "Uses synchronous database operations",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "limitations, mongoengine",
      "display": "Choose an asynchronous mapper when database calls must be awaited.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "limitations lead, mongoengine",
      "display": "Loaded documents skip validation",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations, mongoengine",
      "display": "Validate existing records explicitly when their stored schema cannot be trusted.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "Quickstart, mongoengine",
      "display": "import datetime\nfrom mongoengine import *\n\nconnect('mydb')\n\nclass BlogPost(Document):\n    title = StringField(required=True, max_length=200)\n    posted = DateTimeField(default=lambda: datetime.datetime.now(datetime.timezone.utc))\n    tags = ListField(StringField(max_length=50))\n    meta = {'allow_inheritance': True}\n\nclass TextPost(BlogPost):\n    content = StringField(required=True)\n\nclass LinkPost(BlogPost):\n    url = StringField(required=True)\n\n# Create a text-based post\npost1 = TextPost(title='Using MongoEngine', content='See the tutorial')\npost1.tags = ['mongodb', 'mongoengine']\npost1.save()\npost2 = LinkPost(title='Example Docs', url='https://example.com/')\npost2.tags = ['mongoengine', 'documentation']\npost2.save()\nfor post in BlogPost.objects:\n    print('===', post.title, '===')\n    if isinstance(post, TextPost):\n        print(post.content)\n    elif isinstance(post, LinkPost):\n        print('Link:', post.url)\nBlogPost.objects.count()\nTextPost.objects.count()\nLinkPost.objects.count()\nBlogPost.objects(tags='mongoengine').count()\nBlogPost.objects(tags='mongodb').count()\n",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Project function, mongoengine",
      "display": "def _search(self, query: QuerySet, search_term: str) -> t.Any:\n    # TODO: Unfortunately, MongoEngine contains bug which\n    # prevents running complex Q queries and, as a result,\n    # Flask-Admin does not support per-word searching like\n    # in other backends\n    op, term = parse_like_term(search_term)\n\n    criteria = None\n\n    for field in self._search_fields:\n        if type(field) == mongoengine.ReferenceField:\n            regex: str | re.Pattern[str] = re.compile(\".*{term}.*\")\n        else:\n            regex = term\n        flt = {f\"{field.name}__{op}\": regex}\n        q = mongoengine.Q(**flt)\n\n        if criteria is None:\n            criteria = q\n        else:\n            criteria |= q\n\n    return query.filter(criteria)\n",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Project function reference, mongoengine",
      "display": "view.py · _search()",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project repository, mongoengine",
      "display": "pallets-eco/flask-admin",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project stars, pallets-eco/flask-admin",
      "display": "6.1K",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project push date, pallets-eco/flask-admin",
      "display": "Nov 2026",
      "asOf": "2026-11-14"
    },
    "F72": {
      "label": "Library name, odmantic",
      "display": "ODMantic",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Monthly downloads, odmantic",
      "display": "55.6K",
      "asOf": "2026-11-16"
    },
    "F74": {
      "label": "License, odmantic",
      "display": "ISC License (ISCL)",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Package release, odmantic",
      "display": "1.1.0, Jan 2026",
      "asOf": "2026-01-24"
    },
    "F76": {
      "label": "Package release date, odmantic",
      "display": "Jan 2026",
      "asOf": "2026-01-24"
    },
    "F77": {
      "label": "Repository stars, odmantic",
      "display": "1.2K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Async database calls, odmantic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Validates model fields, odmantic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Defines field indexes, odmantic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Stores model references, odmantic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Install, odmantic",
      "display": "pip install odmantic",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "What it does, odmantic",
      "display": "Maps MongoDB documents through typed Pydantic models and synchronous or asynchronous engines.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths lead, odmantic",
      "display": "Offers synchronous and asynchronous engines",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths, odmantic",
      "display": "Use matching engine operations in blocking or asynchronous applications.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths lead, odmantic",
      "display": "Persists referenced models automatically",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths, odmantic",
      "display": "Save a model and its declared references through the engine.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "limitations lead, odmantic",
      "display": "Saving can overwrite existing documents",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations, odmantic",
      "display": "save and save_all update records whose primary keys already exist.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations lead, odmantic",
      "display": "Model inheritance remains unsupported",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations, odmantic",
      "display": "Use separate models or composition instead of inheriting document models.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Quickstart, odmantic",
      "display": "from odmantic import Model, SyncEngine\n\n\nclass Player(Model):\n    name: str\n    game: str\n\n\nengine = SyncEngine()\n\nwith engine.transaction() as transaction:\n    transaction.save(Player(name=\"Leeroy Jenkins\", game=\"WoW\"))\n    transaction.commit()\n\nprint(engine.count(Player))\n#> 1\n\nwith engine.transaction() as transaction:\n    transaction.save(Player(name=\"Shroud\", game=\"Counter-Strike\"))\n    transaction.save(Player(name=\"Serral\", game=\"Starcraft\"))\n    transaction.abort()\n\nprint(engine.count(Player))\n#> 1\n",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Project function, odmantic",
      "display": "async def update(\n    self, db: AgnosticDatabase, *, db_obj: ModelType, obj_in: Union[UpdateSchemaType, Dict[str, Any]] # noqa\n) -> ModelType:\n    obj_data = jsonable_encoder(db_obj)\n    if isinstance(obj_in, dict):\n        update_data = obj_in\n    else:\n        update_data = obj_in.model_dump(exclude_unset=True)\n    for field in obj_data:\n        if field in update_data:\n            setattr(db_obj, field, update_data[field])\n    # TODO: Check if this saves changes with the setattr calls\n    await self.engine.save(db_obj)\n    return db_obj\n",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project function reference, odmantic",
      "display": "base.py · update()",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project repository, odmantic",
      "display": "mongodb-labs/full-stack-fastapi-mongodb",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project stars, mongodb-labs/full-stack-fastapi-mongodb",
      "display": "820",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project push date, mongodb-labs/full-stack-fastapi-mongodb",
      "display": "Jun 2026",
      "asOf": "2026-06-04"
    },
    "F98": {
      "label": "Developer need",
      "display": "Direct database operations",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose pymongo",
      "display": "native blocking and asynchronous interfaces",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "direct database operations",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "When to consider beanie",
      "display": "typed document models should sit above database calls",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Declared document references",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose mongoengine",
      "display": "reference fields on document models",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "declared document references",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider beanie",
      "display": "awaited database operations fit the application",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Asynchronous typed documents",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose beanie",
      "display": "Pydantic-based asynchronous models",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "asynchronous typed documents",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "When to consider odmantic",
      "display": "both blocking and asynchronous engines are needed",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need",
      "display": "Matching engine interfaces",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Why choose odmantic",
      "display": "synchronous and asynchronous persistence",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need in introduction",
      "display": "matching engine interfaces",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "When to consider pymongo",
      "display": "direct collection APIs fit better than document models",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Page introduction",
      "display": "Python MongoDB libraries let application developers store and query application data.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Which Python MongoDB library should I choose?",
      "display": "PyMongo exposes direct synchronous and asynchronous driver APIs.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which Python MongoDB library should I choose?",
      "display": "MongoEngine validates declared documents before saving.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which Python MongoDB library should I choose?",
      "display": "Beanie uses asynchronous Pydantic-based models.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which Python MongoDB library should I choose?",
      "display": "ODMantic provides synchronous and asynchronous engines.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Can I share an asynchronous PyMongo client across event loops?",
      "display": "Keep each AsyncMongoClient within its own thread and event loop.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Can transaction operations run in parallel with PyMongo?",
      "display": "Operations inside a single transaction must run sequentially.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Does MongoEngine validate records when reading them?",
      "display": "Loaded documents are assumed to match the declared schema; read-time validation is not automatic.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can Beanie combine linked-document fetching with chained writes?",
      "display": "Find operations using fetch_links cannot chain directly into delete or update methods.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Will ODMantic save only insert new documents?",
      "display": "save and save_all are upserts: existing primary keys cause updates.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does ODMantic support inherited document models?",
      "display": "Model and embedded-model inheritance remains unsupported.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can ODMantic transactions use a standalone MongoDB server?",
      "display": "Transactions require a replica set or a sharded cluster with replication.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "Library name, pymongo",
      "display": "PyMongo",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Monthly downloads, pymongo",
      "display": "74.1M",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "License, pymongo",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Package release, pymongo",
      "display": "4.20.0",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Package release date, pymongo",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Install, pymongo",
      "display": "python3.13 -m pip install pymongo==4.20.0",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Quickstart, pymongo",
      "display": "from pymongo import MongoClient\n\nwith MongoClient(\"mongodb://localhost:27017\") as client:\n    result = client.library_demo.notes.insert_one({\"name\": \"Hello\"})\n    print(result.inserted_id)\n",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Repository stars, pymongo",
      "display": "4.4K",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Synchronous document operations, pymongo",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Pydantic document models, pymongo",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Driver/model/async integration, pymongo",
      "display": "Official direct driver with synchronous and native asyncio APIs; raw dictionary/BSON operations without an ODM record-model layer.",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Library name, motor",
      "display": "Motor",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Monthly downloads, motor",
      "display": "10.5M",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "License, motor",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Package release, motor",
      "display": "3.7.1",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Package release date, motor",
      "display": "May 2025",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Install, motor",
      "display": "python3.13 -m pip install motor==3.7.1 pymongo==4.20.0",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Quickstart, motor",
      "display": "import asyncio\nfrom motor.motor_asyncio import AsyncIOMotorClient\n\nasync def main():\n    client = AsyncIOMotorClient(\"mongodb://localhost:27017\")\n    try:\n        result = await client.library_demo.notes.insert_one({\"name\": \"Hello\"})\n        print(result.inserted_id)\n    finally:\n        client.close()\n\nasyncio.run(main())\n",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Official description, motor",
      "display": "Provides a non-blocking MongoDB driver for Tornado or asyncio.",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Quickstart source file, motor",
      "display": "stable",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Repository stars, motor",
      "display": "2.5K",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Synchronous document operations, motor",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Pydantic document models, motor",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Driver/model/async integration, motor",
      "display": "Asyncio/Tornado driver in announced deprecation/critical-fix window; publisher recommends migration to PyMongo Async.",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Library name, beanie",
      "display": "Beanie",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Monthly downloads, beanie",
      "display": "2.0M",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "License, beanie",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Package release, beanie",
      "display": "2.2.0",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Package release date, beanie",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Install, beanie",
      "display": "python3.13 -m pip install beanie==2.2.0 pymongo==4.20.0",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Quickstart, beanie",
      "display": "import asyncio\nfrom pymongo import AsyncMongoClient\nfrom beanie import Document, init_beanie\n\nclass Note(Document):\n    name: str\n\nasync def main():\n    client = AsyncMongoClient(\"mongodb://localhost:27017\")\n    try:\n        await init_beanie(database=client.library_demo, document_models=[Note])\n        await Note(name=\"Hello\").insert()\n    finally:\n        await client.close()\n\nasyncio.run(main())\n",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Repository stars, beanie",
      "display": "2.7K",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Synchronous document operations, beanie",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Pydantic document models, beanie",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Driver/model/async integration, beanie",
      "display": "Asynchronous Pydantic document mapper using PyMongo Async in the current release; Bunnet is a separate synchronous project.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Project function, beanie",
      "display": "@router.patch(\"\", response_model=UserOut)\nasync def update_user(update: UserUpdate, user: User = Depends(current_user)):  # type: ignore[no-untyped-def]\n    \"\"\"Update allowed user fields.\"\"\"\n    fields = update.model_dump(exclude_unset=True)\n    if new_email := fields.pop(\"email\", None):\n        if new_email != user.email:\n            if await User.by_email(new_email) is not None:\n                raise HTTPException(400, \"Email already exists\")\n            user.update_email(new_email)\n    user = user.model_copy(update=fields)\n    await user.save()\n    return user",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Project source file, beanie",
      "display": "myserver/routes/user.py",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project full_name, beanie",
      "display": "devdupont/fastapi-beanie-jwt",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project stargazers_count, beanie",
      "display": "200",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Library name, mongoengine",
      "display": "MongoEngine",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Monthly downloads, mongoengine",
      "display": "1.7M",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "License, mongoengine",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Package release, mongoengine",
      "display": "0.29.3",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Package release date, mongoengine",
      "display": "Mar 2026",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Install, mongoengine",
      "display": "python3.13 -m pip install mongoengine==0.29.3",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Quickstart, mongoengine",
      "display": "from mongoengine import connect, Document, StringField\n\nconnect(db=\"library_demo\", host=\"mongodb://localhost:27017\")\n\nclass Note(Document):\n    name = StringField(required=True)\n\nNote(name=\"Hello\").save()\n",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Repository stars, mongoengine",
      "display": "4.3K",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Synchronous document operations, mongoengine",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Pydantic document models, mongoengine",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Driver/model/async integration, mongoengine",
      "display": "Synchronous declarative Document/Field ODM with save-time validation and querysets.",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project function, mongoengine",
      "display": "def create_model(self, form: Form) -> Document | bool:\n    \"\"\"\n    Create model helper\n\n    :param form:\n        Form instance\n    \"\"\"\n    try:\n        model = self.model()\n        form.populate_obj(model)\n        self._on_model_change(form, model, True)\n        model.save()\n    except Exception as ex:\n        if not self.handle_view_exception(ex):\n            flash(\n                gettext(\n                    \"Failed to create record. %(error)s\", error=format_error(ex)\n                ),\n                \"error\",\n            )\n            log.exception(\"Failed to create record.\")\n\n        return False\n    else:\n        self.after_model_change(form, model, True)\n\n    return model",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Project source file, mongoengine",
      "display": "flask_admin/contrib/mongoengine/view.py",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Project full_name, mongoengine",
      "display": "pallets-eco/flask-admin",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Project stargazers_count, mongoengine",
      "display": "6.1K",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Library name, odmantic",
      "display": "ODMantic",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Monthly downloads, odmantic",
      "display": "58.7K",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "License, odmantic",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Package release, odmantic",
      "display": "1.1.0",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Package release date, odmantic",
      "display": "Jan 2026",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Install, odmantic",
      "display": "python3.13 -m pip install odmantic==1.1.0 pymongo==4.20.0",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Quickstart, odmantic",
      "display": "from pymongo import MongoClient\nfrom odmantic import Model, SyncEngine\n\nclass Note(Model):\n    name: str\n\nwith MongoClient(\"mongodb://localhost:27017\") as client:\n    engine = SyncEngine(client=client, database=\"library_demo\")\n    engine.save(Note(name=\"Hello\"))\n",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Repository stars, odmantic",
      "display": "1.2K",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Synchronous document operations, odmantic",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Pydantic document models, odmantic",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Driver/model/async integration, odmantic",
      "display": "Pydantic models with parallel synchronous and asynchronous engines.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project function, odmantic",
      "display": "async def update(\n    self, db: AgnosticDatabase, *, db_obj: ModelType, obj_in: Union[UpdateSchemaType, Dict[str, Any]] # noqa\n) -> ModelType:\n    obj_data = jsonable_encoder(db_obj)\n    if isinstance(obj_in, dict):\n        update_data = obj_in\n    else:\n        update_data = obj_in.model_dump(exclude_unset=True)\n    for field in obj_data:\n        if field in update_data:\n            setattr(db_obj, field, update_data[field])\n    # TODO: Check if this saves changes with the setattr calls\n    await self.engine.save(db_obj)\n    return db_obj\n",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project source file, odmantic",
      "display": "{{cookiecutter.project_slug}}/backend/app/app/crud/base.py",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project full_name, odmantic",
      "display": "mongodb-labs/full-stack-fastapi-mongodb",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project stargazers_count, odmantic",
      "display": "820",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, django-mongodb-backend",
      "display": "Django MongoDB Backend",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, django-mongodb-backend",
      "display": "45.7K",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, django-mongodb-backend",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, django-mongodb-backend",
      "display": "6.1.0",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, django-mongodb-backend",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, django-mongodb-backend",
      "display": "python3.13 -m pip install django-mongodb-backend==6.1.0 pymongo==4.20.0 Django==6.1.3",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, django-mongodb-backend",
      "display": "from django.conf import settings\n\nsettings.configure(DATABASES={\"default\": {\n    \"ENGINE\": \"django_mongodb_backend\",\n    \"HOST\": \"mongodb://localhost:27017\", \"NAME\": \"library_demo\",\n}})\nimport django\ndjango.setup()\nfrom django.db import connection\nprint(connection.get_database().command(\"ping\"))\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Official description, django-mongodb-backend",
      "display": "Connects Django to MongoDB as a database backend.",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Quickstart source file, django-mongodb-backend",
      "display": "get-started",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Repository stars, django-mongodb-backend",
      "display": "229",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Synchronous document operations, django-mongodb-backend",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Pydantic document models, django-mongodb-backend",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Driver/model/async integration, django-mongodb-backend",
      "display": "Official MongoDB database backend behind Django ORM/models; requires matched Django/backend release line and backend-specific project settings.",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Library name, umongo",
      "display": "uMongo",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Monthly downloads, umongo",
      "display": "22.2K",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "License, umongo",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Package release, umongo",
      "display": "4.0.0",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release date, umongo",
      "display": "Mar 2026",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Install, umongo",
      "display": "python3.13 -m pip install umongo==4.0.0 pymongo==4.20.0",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Quickstart, umongo",
      "display": "from pymongo import MongoClient\nfrom umongo import Document, fields\nfrom umongo.frameworks.pymongo import PyMongoInstance\n\nwith MongoClient(\"mongodb://localhost:27017\") as client:\n    instance = PyMongoInstance(client.library_demo)\n\n    @instance.register\n    class Note(Document):\n        name = fields.StringField(required=True)\n\n    Note(name=\"Hello\").commit()\n",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Official description, umongo",
      "display": "Maps MongoDB documents in synchronous or asynchronous code.",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Quickstart source file, umongo",
      "display": "apireference.html",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Repository stars, umongo",
      "display": "448",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Synchronous document operations, umongo",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Pydantic document models, umongo",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Driver/model/async integration, umongo",
      "display": "Marshmallow-backed document templates registered on a framework instance; current PyMongo implementation provides synchronous persistence.",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python MongoDB libraries PyMongo MongoEngine Beanie ODMantic examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
