Contents

beanie 2.0.1

0

Asynchronous Python ODM for MongoDB

Asynchronous Python ODM for MongoDB

Stars: 2644, Watchers: 2644, Forks: 277, Open Issues: 112

The BeanieODM/beanie repo was created 4 years ago and the last code push was 11 hours ago.
The project is very popular with an impressive 2644 github stars!

How to Install beanie

You can install beanie using pip

pip install beanie

or add it to a project with poetry

poetry add beanie

Package Details

Author
None
License
None
Homepage
None
PyPi:
https://pypi.org/project/beanie/
GitHub Repo:
https://github.com/roman-right/beanie

Classifiers

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

Errors

A list of common beanie errors.

Code Examples

Here are some beanie code examples and snippets.

  • beanie code example from docs

    The following beanie code example shows how the library works by first defining two pydantic classes and then save a record to the database and retreiving a record. beanie utilizes pydantic and `motor`` to provide an asyncronys ODM for mongodb.

GitHub Issues

The beanie package has 112 open issues on GitHub

  • fix(documents): propagate DuplicateKeyError on update
  • [BUG] beanie.operators.Or creates a malformed object when one argument is an empty dictionary
  • [BUG] TypeError: object AsyncIOMotorLatentCommandCursor can't be used in 'await' expression
  • [BUG] When inheritance exceeds two levels, the subclass cannot specify the collection name using is_root=True and name.
  • [BUG] Link field query fails when document field named 'title' conflicts with Link's collection name property
  • feat: introduce ODMClient for simplified multi-database management
  • [BUG] FindQuery.count() ignores pymongo_kwargs
  • Support py314 and remove py39
  • PYTHON-4238 - Add Beanie version to handshake metadata
  • filter first other than materializing refs
  • Feat/custom class ID
  • docs: clarify state management description
  • Added context7.json #1215
  • added docstring to class DocumentWithSoftDelete #928
  • Find query session is not being propagated to delete method

See more issues on GitHub

Related Packages & Articles

fastapi 0.129.0

FastAPI framework, high performance, easy to learn, fast to code, ready for production

aredis 1.1.8

Python async client for Redis key-value store

aiohttp 3.13.3

The aiohttp Python package is an asynchronous HTTP client/server framework that leverages Python's asyncio library. It supports both client and server sides of the HTTP protocol, as well as client and server websockets. The package provides a web server with middleware support and pluggable routing. This makes it a powerful tool for building efficient, non-blocking web applications in Python. It is highly recommended for projects where concurrent network or HTTP requests are a core requirement, and it is often used in web scraping, API consumption, and web development.

sniffio 1.3.1

Sniff out which async library your code is running under