Firestore Pydantic ODM gives Python developers a clean, type-safe layer over Google Cloud Firestore. Define your data models as Pydantic classes, then use async CRUD methods, rich query filters, projections, subcollections, and atomic batch writes—all with zero boilerplate.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/santosdevco/firestore-pydantic-odm/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
Connect to Firestore and run your first async query in under five minutes.
Installation
Install via pip and set up credentials for production or the local emulator.
Core Concepts
Learn how models, the database client, and subcollections fit together.
API Reference
Full reference for every class, method, enum, and field descriptor.
Why Firestore Pydantic ODM?
Firestore’s native Python SDK is powerful but low-level: you work directly with dictionaries, manage document references by hand, and write your own serialization logic. Firestore Pydantic ODM sits on top of that SDK and gives you:- Pydantic validation — every document is validated on read and write.
- Async-first — all I/O uses
async/awaitwithgoogle-cloud-firestore’sAsyncClient. - Pythonic filters — write
User.age >= 18instead of string-basedwhereclauses. - Projections — define a lightweight Pydantic model to fetch only the fields you need.
- Subcollections — declare parent–child relationships directly in the model
Settings. - Pydantic v1 & v2 — works transparently with either major version.
