WSQLite lets developers use Pydantic v2 models directly as SQLite schemas
WSQLite is an open-source Python library (MIT licensed) built by developer William Steve Rodríguez Villamizar that eliminates the need to maintain separate Pydantic validation schemas and SQLAlchemy database models. The library maps Pydantic v2 class definitions directly to SQLite tables in a 1:1 fashion, auto-generating and migrating schemas at startup without manual SQL files. It supports both synchronous and asynchronous code, and uses WAL (Write-Ahead Logging) mode with a thread-safe connection pool capable of handling over 5,000 insertions per second. The project is available on GitHub with more than 50 verified tests and can be installed via PyPI.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in