carlodavid012 / cookiecutter-disco-pie

Dread deploying your API? Use Cookiecutter DiscoPie: A project template for deploying containerized, serverless, FastAPI applications (on AWS...for now).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookiecutter DiscoPie: Deployment Inside Serverless Containers of Python-Integrated Endpoints

Dread deploying your API? Use Cookiecutter DiscoPie!


Do I want Cookiecutter DiscoPie?

Ever built a sik ML model only to find that it's stuck on your stupid laptop, beefy desktop, or ephemeral cloud machine? Do you need the world to have access to ur dope deep neural net? Do you require serverless deployment because what is a server? Do you insist on containerizing your code because I mean what else are you doing is this 2015 or something? Do you loathe the idea of navigating the treacherous waters of the AWS UI?

If you answered "yes" to exactly every single one of the above questions, then you've come to right place. Cookiecutter DiscoPie is here to handle all the annoying stuff so you can focus on serving that model, or whatever else people do with REST APIs.

Cookiecutter DiscoPie

  1. Templatizes an API endpoint based on FastAPI. You just need to call your code from the routes.
  2. Containerizes the service and provides commands for local interaction.
  3. Deploys the container as a serverless REST endpoint (currently only on AWS, but we have a vision!).

Do I need Cookiecutter DiscoPie?

Probably not. There are other ways to do this. But they either don't support containers, or require silly command line steps. You are a Python data scientist, dammit, not Kevin Mitnick!

Plus, our FastAPI-based design means there's hope for supporting multiple serverless cloud backends (huge caveat: there needs to exist an ASGI adapter for each).

Just try it, you nerd!

Install it:

All you gotta do is fork this repo, navigate to the right dir and use pip to install the DiscoPie command line tool, easy.

cd /cookiecutter-disco-pie
pip install .

To create a new API, run:

cc-disco-pie https://www.github.com/caseyfitz/cookiecutter-disco-pie

About

Dread deploying your API? Use Cookiecutter DiscoPie: A project template for deploying containerized, serverless, FastAPI applications (on AWS...for now).


Languages

Language:Python 69.2%Language:Shell 16.9%Language:Makefile 13.0%Language:Dockerfile 0.9%