FastAlchemy
SQLAlchemy Middleware for FastAPI inspired by the official tutorial.
Install
pip install fastapi fastalchemy
Features
- Super-easy configuration: simply put
database.pyandmodels.pyfiles in your project folder with the following code.
from fastapi import FastAPI
from fastalchemy import SQLAlchemyMiddleware, db
from models import User
app = FastAPI()
app.add_middleware(SQLAlchemyMiddleware)
@app.get('/users')
def get_users():
return db.query(User).order_by(User.id).all()
Details
Please peek tests/app folder if you want to know the way to create database.py and models py.
Metadata
Release files for fastalchemy 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fastalchemy-0.1.3.tar.gz | 3.2 kB | Without provenance | Details |
Release files / fastalchemy-0.1.3.tar.gz
| Download URL | fastalchemy-0.1.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08a5b44fd0e2450c8fbc4e664d3ec3c48798e58c2410bc040a7af55aab5d5dd8
|
|
BLAKE2b-256 checksum How to use checksums |
700869b96ae52b32c5ab240e55cb8f1fc3616aa30717c85618017d6e50ec64dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.2
|
Security for fastalchemy 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.