DEV Community

Azeem Haider
Azeem Haider

Posted on

Google Cloud Firestore Client Library

FireO

A modern and simplest convenient ORM package in Python. FireO is specifically designed for the Google's Firestore, it's more than just ORM. It implements validation, type checking, relational model logic and much more facilities.

Installation

pip install fireo
Enter fullscreen mode Exit fullscreen mode

Usage Example

from fireo.models import Model
from fireo.fields import TextField

class User(Model):
    name = TextField()


u = User()
u.name = "Azeem Haider"
u.save()

# Get user
user = User.collection.get(u.key)
print(user.name)
Enter fullscreen mode Exit fullscreen mode

Appreciate our work by giving stars

Read More about FireO

Top comments (0)