837477 / IMFast-Motor

Boilerplate for Large Scale FastAPI Web Backend Structure with Motor(Mongodb)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

imfast

IMFast-Motor

Boilerplate for Large Scale FastAPI Web Backend Structure with Motor(Mongodb) (Edited 2022-07-13)

This implementation is an extension structure of IMFast optimized for Motor(Mongodb async library).

Here you can see the basic implementation concept of IMFast.

Model Implementation

...
├── app
│   ├── api
│   │   ├── __init__.py
│   │   └── v1
│   │       └── sample_model.py # Sample API with Mongodb
│   └── depends
│      └── context.py # Context depends for easy db access
│
├── model
│   ├── __init__.py
│   ├── appmodel
│   │   └── log.py # CRUD Pydantic Model
│   └── mongodb
│       ├── __init__.py # Mongodb Connector & Init.
│       ├── collection
│       │   ├── __init__.py # Base Model
│       │   ├── app_config.py # AppConfig Collection Model
│       │   └── log.py # Log Collection Model
│       └── initializer.py # Mongodb Initializer
...

References

About

Boilerplate for Large Scale FastAPI Web Backend Structure with Motor(Mongodb)

License:MIT License


Languages

Language:Python 96.6%Language:Dockerfile 1.8%Language:Shell 1.5%Language:HTML 0.1%