Skip to content

skanjila/model-hub

 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.4%
  • Dockerfile 9.4%
  • Shell 1.2%