Mongomantic:基于PyMongo和Pydantic构建的MongoDB Python ORM

时间:2021-04-11 23:04:17
【文件属性】:
文件名称:Mongomantic:基于PyMongo和Pydantic构建的MongoDB Python ORM
文件大小:86KB
文件格式:ZIP
更新时间:2021-04-11 23:04:17
Python 蒙古语= pymongo + Mongomantic是基于Pydantic和PyMongo的轻量级Python MongoDB ORM,受到Mongoengine的强烈启发。 原料药 from mongomantic import BaseRepository , MongoDBModel class User ( MongoDBModel ): first_name : str last_name : str class UserRepository ( BaseRepository ): @ property def _model ( self ): # Define model type return User @ property def _collection ( self ): # Define colle
【文件预览】:
Mongomantic-main
----poetry.lock(73KB)
----mongomantic()
--------core()
--------py.typed(0B)
--------mongomantic.py(0B)
--------__init__.py(546B)
--------config.py(686B)
----.deepsource.toml(149B)
----pyproject.toml(2KB)
----docs()
--------assets()
--------index.md(2KB)
----.github()
--------dependabot.yml(558B)
--------PULL_REQUEST_TEMPLATE.md(1KB)
--------ISSUE_TEMPLATE()
--------release-drafter.yml(791B)
--------workflows()
--------.stale.yml(684B)
----mkdocs.yml(822B)
----SECURITY.md(1KB)
----tests()
--------test_mongo_model.py(0B)
--------user.py(150B)
--------user_repository.py(244B)
--------__init__.py(0B)
--------test_base_repository.py(3KB)
----LICENSE(1KB)
----CONTRIBUTING.md(1KB)
----TODO.md(10KB)
----setup.cfg(853B)
----docker()
--------Dockerfile(733B)
--------README.md(770B)
----.gitignore(10KB)
----Makefile(3KB)
----CODE_OF_CONDUCT.md(3KB)
----.dockerignore(332B)
----README.md(6KB)
----.editorconfig(424B)
----cookiecutter-config-file.yml(295B)
----.pre-commit-config.yaml(931B)

网友评论