Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 966 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 966 Bytes

Model_hub built on top of fastapi and mongodb

Features

  • Docker with MongoDB and FastAPI
  • Poetry as dependency manager
  • Works well async (all, with db)
  • Supported snake_case -> cammelCase conversion
  • Env file parsed by Pydantic
  • ObjectID works well with FastAPI & Pydantic (I've created custom field. Compatible with FastAPI generic docs)
  • Structure with Dependency Injection (database implementation)

Build on Python: 3.8.

Installation and usage

  • Create env from template: cp example.env .env (only once)
  • Run docker stack sudo docker-compose up

TODO

Example is completely and works very well. In the future probably I add more.

  • Scheme for MongoDB
  • More examples with custom response models
  • [Maybe] File handling with external provider (Amazon S3, DO Spaces)
  • [Maybe] Authorization by external provider (Auth0)