Streamlit example app with SQLAlchemy 2.0 ORM.
This Streamlit app is only a simple example of how to use SQLAlchemy 2.0 ORM with Streamlit. It uses a local SQLite database to store the data.
This app is a simple post generator with fake data.
Random posts are generated with the Faker
library and the py-avataaars
library is used to generate avatars.
You can add random posts, delete posts and delete all posts.
- Add more CSS styling for the Streamlit app
- Test Streamlit app on Streamlit Cloud from different clients
- Make example with an external database instead of local SQLite
- This app only uses a local SQLite database, there is no external database connection, therefore data is not persistent.
- Streamlit app is working
- Last changed:
2023-11-26
Used Python Libraries in this app:
- SQLAlchemy ❤️
- https://www.sqlalchemy.org/
- SQLAlchemy 2.0 Documentation
- SQLAlchemy ORM
- Awesome SQLAlchemy
- GeoAlchemy 2
- sqlacodegen
- Alembic
- Alchemical
- What's New in SQLAlchemy 2.0?
- retrofun
- sqlalchemy-sqlite-playground
- SQLAlchemy Data Model Visualizer
- SQLModel
- not yet ported to pydantic 2 and sqlalchemy 2 versions...
- https://sqlmodel.tiangolo.com/
- Tortoise ORM
- Prisma
- https://www.prisma.io/
- https://www.prisma.io/ecosystem
- https://github.com/prisma/prisma
- Prisma Client Python
- promising, but unstable...
- https://prisma-client-py.readthedocs.io/en/stable/
- https://github.com/RobertCraigie/prisma-client-py
- Piccolo
- PeeWee
- Pony ORM
- Ormar
- sqlobject
- 7 Best Python ORM Libraries You Should Know
- Object-relational Mappers (ORMs)
- databases
- apsw
- pypika
SQLAlchemy 2.0 related video tutorials on Youtube:
- SQLAlchemy & Copilot
- TUTORIAL: SQLAlchemy 2.0
- SQLAlchemy 2.0 ORM Crash Course