Metadata-Version: 2.4
Name: fastapi_odm_helper
Version: 0.0.13
Summary: FastAPI ODM Helper
Project-URL: Homepage, https://github.com/megatron-global/fastapi-odm-helper
Project-URL: Bug Tracker, https://github.com/megatron-global/fastapi-odm-helper/issues
Author-email: Dzung Nguyen <dung@megatron-solutions.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: beanie>=1.21.0
Requires-Dist: fastapi-exception>=1.2.5
Requires-Dist: pymongo>=4.5.0
Description-Content-Type: text/markdown

# FastAPI ODM Helper

FastAPI ODM Helper helps us to work with beanie easier with lots of useful functions

## How to use

1. BaseRepository

```python
from fastapi_odm_helper import BaseRepository
from users.entities.user import UserEntity

class UserRepository(BaseRepository[UserEntity]):
    _entity = UserEntity
```

2. @Entity decorator

```python
from fastapi_odm_helper import Entity

@Entity()
class UserEntity(BaseEntity):
    id: UUID
```
