FastAPI ODM Helper
Project description
FastAPI ODM Helper
FastAPI ODM Helper helps us to work with beanie easier with lots of useful functions
How to use
- BaseRepository
from fastapi_odm_helper import BaseRepository
from users.entities.user import UserEntity
class UserRepository(BaseRepository[UserEntity]):
_entity = UserEntity
- @Entity decorator
from fastapi_odm_helper import Entity
@Entity()
class UserEntity(BaseEntity):
id: UUID
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for fastapi_odm_helper-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05bb5ed71a6428385783a138b2ed72a358a0d04552651a7b5b2f97e01c6a7f0a |
|
MD5 | 66f943c686c0877b787104d0a6f658b9 |
|
BLAKE2b-256 | 90ee8e7cac01b1ea52305f809411b86ab92ea3e49abd3cc747071d2dac99be11 |