Skip to content

Instantly share code, notes, and snippets.

View juanchavez4096's full-sized avatar
Working

Juan Jose Chávez Huerta juanchavez4096

Working
View GitHub Profile
@petrilli
petrilli / main.py
Last active December 28, 2024 13:14
Example combination of FastAPI and Pydantic with aiosql and aiosqlite
# -*- coding: utf-8 -*-
"""Example combination of FastAPI and Pydantic with aiosql and aiosqlite.
This module demonstrates the minimum viable integration approach for putting
together a few components:
- FastAPI. This provides a very high-performance and type-driving approach to
building APIs in Python
- Pydantic. A powerful data validation library.
- aiosql. Inspired by annosql and originally Clojure's yeSql, a way to programatically,