mongoengine
mongoengine copied to clipboard
A Python Object-Document-Mapper for working with MongoDB
We encountered an issue in some rare and unpredictable situations, primarily during long-running iterations over MongoEngine querysets. Occasionally, for loops over these querysets would enter an infinite loop, repeatedly iterating...
On Visual Studio Code, there is no useful hint on the parameters and the type for the instanciation of the object. Example: ``` from mongoengine import Document, StringField class User(Document):...
When working on Visual Studio Code, the hint of the type isn't very helpful. Could we make it better ? can I help doing that ? Example: ``` from mongoengine...
A Code of Conduct is crucial for open-source GitHub projects as it helps foster a respectful and inclusive community by setting clear expectations for behavior. It encourages collaboration by defining...
A `SECURITY.md` is highly beneficial as it outlines how to report vulnerabilities, enhancing user trust and transparency. It guides contributors in responsible disclosure, aligning with best practices for open-source projects...
With claude code, [our team](https://github.com/mom-mom) can add async support to this lovely mongoengine. Our team is testing in our application(fastAPI). --- # Comprehensive Async Support for MongoEngine This PR adds...
fix: modify `datetime.datetime.utcnow()` to `datetime.datetime.now(datetime.timezone.utc)` inside tests since utcnow() is deprecated from 3.12 onwards fix: change code inside `defining-documents.rst` and `signals.rst` to accommodate `datetime.datetime.now(datetime.timezone.utc)` This is a follow up for...
Update pc hooks
Improves performance of large documents with nested `DictFields` by nearly 20x, addressing #1230. Modified benchmark script pulled from https://stackoverflow.com/questions/35257305/mongoengine-is-very-slow-on-large-documents-compared-to-native-pymongo-usage/: ``` import datetime import itertools import random import timeit from collections...
`collection.objects` can be a partial function. When it is, trying to call `in_bulk` on it was causing error. Note: I added explicit type check before calling it, but I can...