{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/6"},{"label":"Database","url":"https://skillfed.io/packages/category/database/2"}],"enrichment":{"capability":"Beanie is an asynchronous Python object-document mapper for MongoDB that lets you define data models using Pydantic and interact with MongoDB collections through a Document-based API.","skillfed_tags":["mongodb","async-orm","pydantic-integration"],"use_cases":["Building FastAPI REST APIs backed by MongoDB with async request handlers and Pydantic validation.","Defining MongoDB schemas as Python classes to enforce type safety and validation across your application.","Querying MongoDB collections using Python syntax (e.g., Product.price < 10) instead of raw MongoDB query dictionaries.","Managing document relationships and nested Pydantic models within MongoDB documents.","Handling database migrations and index creation declaratively as part of your Document class definitions."],"what_it_does":"Beanie is an asynchronous ODM (object-document mapper) that sits on top of PyMongo and Pydantic, letting you define MongoDB collections as Python classes with type hints and validation. Instead of writing raw MongoDB queries, you work with Document subclasses that map to collections, and Beanie handles the serialization, validation, and async I/O for you.\n\nIt's designed to reduce boilerplate when building async Python applications that use MongoDB\u2014particularly useful in FastAPI projects or other async frameworks. You define a Document class with Pydantic fields, initialize Beanie with your MongoDB client, and then use methods like insert(), find_one(), and set() on your document instances. The package handles data migrations and index definitions declaratively.","worth_installing":"Yes. Beanie is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It's a solid choice if you're building async Python applications with MongoDB and want type-safe, Pydantic-based data models. The main constraint is that you must be using async/await and have MongoDB available; if you need synchronous access, the project maintains a separate package called Bunnet."},"id":"beanie","links":{"html":"https://skillfed.io/packages/beanie","md":"https://skillfed.io/packages/beanie.md","pypi":"https://pypi.org/project/beanie/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-07","license_spdx":null,"license_treatment":"permissive","name":"beanie","python_support":"supports_current","summary":"Asynchronous Python ODM for MongoDB"},"popularity":{"monthly_downloads":1710548,"position":3625,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
