{"categories":[{"label":"Internet","url":"https://skillfed.io/packages/category/internet"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http"},{"label":"Database","url":"https://skillfed.io/packages/category/database"},{"label":"Database Engines/Servers","url":"https://skillfed.io/packages/category/database-database-engines-servers"},{"label":"HTTP Servers","url":"https://skillfed.io/packages/category/internet-www-http-http-servers"}],"enrichment":{"capability":"SQLModel combines SQLAlchemy and Pydantic to let you define SQL database tables and rows as Python classes with type annotations, eliminating code duplication between ORM models and data validators.","skillfed_tags":["orm","fastapi-integration","type-safe-sql"],"use_cases":["Build FastAPI applications where request/response models and database models are the same class, cutting model definition code in half.","Migrate existing SQLAlchemy projects to gain Pydantic validation without rewriting your ORM layer.","Define type-safe database schemas with Python type hints, getting IDE autocompletion for both model creation and query results.","Reduce boilerplate in data-heavy applications by using one model definition for validation, serialization, and persistence.","Prototype database-backed services quickly with minimal schema duplication between API contracts and storage."],"what_it_does":"SQLModel is a thin layer bridging SQLAlchemy and Pydantic, letting you write a single Python class that simultaneously acts as a SQL table definition, an ORM model, and a data validator. Instead of maintaining separate SQLAlchemy models and Pydantic schemas, you annotate class attributes with types and Field() declarations, and SQLModel handles both database persistence and request/response validation. It's built for FastAPI applications but works in any Python codebase that needs SQL databases.\n\nThe library handles the boilerplate of mapping Python objects to database rows and back, with full editor autocompletion and type checking throughout. You create instances of your model class to represent rows, pass them to a Session for database operations, and query using SQLAlchemy's select() syntax. Because the same class serves dual duty, you avoid duplicating field definitions and validation logic.","worth_installing":"Yes. SQLModel is actively maintained, has no known vulnerabilities, installs with low friction, and solves a real pain point\u2014eliminating duplicate model definitions. It's well-suited for FastAPI projects and SQLAlchemy migrations. The 0.0.39 version number signals beta status, so production use should account for potential API changes, but the library is widely used and stable in practice."},"id":"sqlmodel","links":{"html":"https://skillfed.io/packages/sqlmodel","md":"https://skillfed.io/packages/sqlmodel.md","pypi":"https://pypi.org/project/sqlmodel/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-25","license_spdx":"MIT","license_treatment":"permissive","name":"sqlmodel","python_support":"supports_current","summary":"SQLModel, SQL databases in Python, designed for simplicity, compatibility, and robustness."},"popularity":{"monthly_downloads":21035871,"position":1017,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.0.39"}
