beanie:适用于MongoDB的异步Python ODM

时间:2021-04-20 04:51:03
【文件属性】:
文件名称:beanie:适用于MongoDB的异步Python ODM
文件大小:103KB
文件格式:ZIP
更新时间:2021-04-20 04:51:03
mongodb asynchronous motor asyncio pydantic -是一个异步的Python ODM MongoDB的,基于和 。 它使用Pydantic模型和Motor集合的抽象来处理数据库。 类文档允许:创建,替换,更新,获取,查找和汇总。 Beanie支持开箱即用的迁移。 安装 画中画 pip install beanie 诗歌 poetry add beanie 快速开始 from typing import Optional , List import motor from beanie import Document , init_beanie from pydantic import BaseModel class Tag ( BaseModel ): name : str color : str class Note ( Document ): title : str text : Optional [
【文件预览】:
beanie-main
----poetry.lock(95KB)
----pyproject.toml(1KB)
----docs()
--------changelog.md(2KB)
--------tutorial()
--------documentation()
--------assets()
--------index.md(3KB)
----.github()
--------workflows()
----assets()
--------logo()
----mkdocs.yml(421B)
----tests()
--------test_beanie.py(87B)
--------conftest.py(446B)
--------odm()
--------__init__.py(0B)
--------migrations()
----beanie()
--------general_utils.py(178B)
--------executors()
--------odm()
--------__init__.py(528B)
--------migrations()
--------exceptions.py(349B)
----LICENSE(11KB)
----.gitignore(3KB)
----README.md(3KB)
----scripts()
--------build_odm_doc.sh(69B)
--------run_tests.sh(106B)
--------prepare_env.sh(33B)
----.pre-commit-config.yaml(208B)

网友评论