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.
