firedantic:使用Pydantic基本模型的Firestore数据库模型 源码
萤火虫 使用Pydantic基本模型的Firestore数据库模型。 安装 该软件包可在PyPi上找到: pip install firedantic 用法 在您的应用程序中,您将需要配置firestore数据库客户端和可选的集合前缀,默认情况下为空。 from os import environ from unittest . mock import Mock import google . auth . credentials from firedantic import configure from google . cloud . firestore import Client # Firestore emulator must be running if using locally. if environ . get ( "FIRESTORE_EMULATOR_HOST"
下载地址
用户评论