Contents

mongoengine 0.28.2

0

MongoEngine is a Python Object-Document Mapper for working with MongoDB.

MongoEngine is a Python Object-Document Mapper for working with MongoDB.

Stars: 4143, Watchers: 4143, Forks: 1219, Open Issues: 375

The MongoEngine/mongoengine repo was created 12 years ago and the last code push was 1 weeks ago.
The project is very popular with an impressive 4143 github stars!

How to Install mongoengine

You can install mongoengine using pip

pip install mongoengine

or add it to a project with poetry

poetry add mongoengine

Package Details

Author
Harry Marr
License
MIT
Homepage
http://mongoengine.org/
PyPi:
https://pypi.org/project/mongoengine/
GitHub Repo:
https://github.com/mongoengine/mongoengine

Classifiers

  • Database
  • Software Development/Libraries/Python Modules
No  mongoengine  pypi packages just yet.

Errors

A list of common mongoengine errors.

Code Examples

Here are some mongoengine code examples and snippets.

GitHub Issues

The mongoengine package has 375 open issues on GitHub

  • Multiple fixes for cascade=True save issues
  • compare_indexes() breaks for text indexes due to sorting issue
  • improve doc related with recent change
  • Exporting Document as JSON schema
  • The id type of full object and the id type of the lazy object are different
  • Fix: DictField are always marked as changed
  • Save with cascade=True fix for unsaved child documents
  • connect exception
  • Create_index called multiple times
  • Feature/raise not retrieved field exception
  • Transactions via an internal global session var
  • Modifying document without uploading to the database
  • param null=True is no working ?
  • Fixing loading of EnumField inside ListField
  • implement Decimal128Field

See more issues on GitHub

Related Packages & Articles

flask-mongoengine 1.0.0

Flask-MongoEngine is a Flask extension that provides integration with MongoEngine and WTF model forms.

[pydantic] NameError: Field name "schema" shadows a BaseModel attribute; use a different field name with "alias='schema'".

This error is encountered when you define a pydantic class that has a attributed named schema. class EmbedDoc(BaseModel): schema: int = 1 name: str = Field(str) tags: List[str] archived: bool The schema attribute is special field for pydantic……. Workaround You can specify a field alias and when the document is serialized it will use the field name schama instead of schema_. class EmbedDoc(BaseModel): schema_: int = Field(1, alias="schema") name: str = Field(str) tags: List[str] archived: bool

motor 3.3.2

Non-blocking MongoDB driver for Tornado or asyncio

Django 5.0.3

Django is a high-level web development framework that empowers Python developers to build dynamic and robust web applications quickly and efficiently. It follows the Model-View-Controller (MVC) architectural pattern, making it easy to separate the different components of an application. With its extensive built-in features, such as URL routing, templating, forms handling, and database abstraction, Django takes care of the repetitive tasks, allowing developers to focus on writing clean and maintainable code. It relies on the Python Standard Library and includes several optional dependencies, including psycopg2, mysqlclient, and pytz for database connectivity and time zone support. Django's rich ecosystem and active community make it a popular choice for building scalable and secure web applications.