{"repo":"volfpeter/motorhead","free":true,"listed":false,"github":"https://github.com/volfpeter/motorhead","clone":"git clone https://github.com/volfpeter/motorhead.git","description":"Async MongoDB with vanilla Pydantic v2+ - made easy.","language":"Python","stars":20,"topics":["api","async","fastapi","mongodb","pydantic","python","rest","typed","odm","query-builder"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Source code : https://github.com/volfpeter/motorhead Documentation and examples : https://volfpeter.github.io/motorhead Motorhead Async MongoDB/DocumentDB with vanilla Pydantic v2+ - made easy. Key features: - Database model and API design with vanilla Pydantic v2+. - Relationship support and validation using async validators and delete rules with a declarative, decorator-based syntax. - ODM-like query builder for convenient, typed, and Pythonic query construction. - Declarative index specification. - Typed utilities for convenient model and API creation. - Ready to use, customizable async service layer with transaction support that integrates all the above to keep your business logic clean, flexible, and easy to understand. - Simplicity : by not being a classic ODM, the codebase is very simple and easy to understand (even contribute to) even for relative beginners. By providing a convenient, declarative middle layer between MongoDB/DocumentDB and your API, motorhead is halfway between an object document mapper (based on vanilla Pydantic ) and a database driver (by wrapping the official async pymongo driver). What's missing is the built-in ODM performance and memory overhead, whose benefits are rarely felt when working with document databases. See the full documentation here. Installation The library is available on PyPI and can be installed with: Examples See the documentation for usage and application examples. Requirements The project depends on pymongo (the official async","default_branch":null,"files":null,"tree":[],"storefront":"/r/volfpeter","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/volfpeter/motorhead/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}