Pydantic Mongo

A Python library that offers an easy-to-use Repository pattern for MongoDB, supporting both synchronous and asynchronous operations. It simplifies working with databases by providing a clear interface for CRUD (Create, Read, Update, Delete) operations using Pydantic models. With built-in data validation and serialization from Pydantic, it helps manage your MongoDB data safely.

Features

  • Asynchronous and Synchronous support

  • Pydantic models integration

  • Type-safe MongoDB operations

  • Cursor-based pagination

Contents

Badges

Build Status Maintainability Test Coverage Version Downloads

Indices and tables