1. 首页
  2. 数据库
  3. 其它
  4. firedantic:使用Pydantic基本模型的Firestore数据库模型 源码

firedantic:使用Pydantic基本模型的Firestore数据库模型 源码

上传者: 2021-05-05 13:43:31上传 ZIP文件 37KB 热度 13次
萤火虫 使用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"
下载地址
用户评论