FastAPI style routing for starlette

Table of Contents About The Project Installation Usage Contact Acknowledgments About The Project FastApi is a great tool for developping API’s in a quick and easy way. In their own words: FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints. It is build using starlette which is in their own words: a lightweight ASGI framework/toolkit, which is ideal for building high performance asyncio services. The good One of the […]

Read more

Simple example of FastAPI + Celery + Triton for benchmarking

You can see the previous work from: with Triton Server without Triton Server Benchmark Results See Benchmark Results Preparation 1. Setup packages Install Anaconda and execute the following commands: $ make env # create a conda environment (need only once) $ source init.sh # activate the env $ make setup # setup packages (need only once) 2. Train a CNN model (Recommended on GPU) 3. Check the model repository    

Read more

Lightweight auth middleware for FastAPI that just works. Fits most auth workflows with only a few lines of code

We at Code Specialist love FastAPI for its simplicity and feature-richness. Though we were a bit staggered by the poor documentation and integrationof auth-concepts. That’s why we wrote a FastAPI Auth Middleware. It integrates seamlessly into FastAPI applications and requires minimum configuration. It is builtupon Starlette and thereby requires no dependencies you do not have included anyway. Caution: This is a middleware to plug in existing authentication. Even though we offer some sample code, this package assumes you already have […]

Read more

Backend Skeleton using FastAPI and Sqlalchemy ORM

Based on @tiangolo’s full stack postgres template, with some things added, some things removed, and some things changed. This is a work in progress! TODO: Remove fastapi_util from the app repo, and make it a separate package Add example pydantic models, sqlalchemy models, endpoints Add encode/databases support (possibly in a separate template?) GitHub https://github.com/dmontagu/backend-skeleton    

Read more

FastAPI + Postgres + Docker Compose + Heroku Deploy Template

⚠️ For educational purpose only. Not ready for production use YET Features FastAPI with Postgres setup Docker container with docker-compose JWT User Authentication Modular Project Structure Heroku Deploy with Githu Actions Manage Migrations with Alembic script TODO ENV files for variables Remove unwanted code and add comments Documentation Make it more useable GitHub https://github.com/steinskeeper/fastapi-postgres-docker    

Read more

Azure AD Authentication for FastAPI apps made easy

Azure AD Authentication for FastAPI apps made easy. 🚀Description FastAPI is a modern, fast (high-performance), web framework for building APIs with Python, based on standard Python type hints. At Intility we use FastAPI for both internal (single-tenant) and customer-facing (multi-tenant) APIs. This package enables our developers    

Read more
1 2