qmetrics.net

SQLModel

Python library combining Pydantic and SQLAlchemy for SQL databases

SQLModel screenshot

SQLModel lets Python applications talk to SQL databases through typed classes instead of separate ORM and validation layers. One model class can represent a table row, a SQLAlchemy model, and a Pydantic schema.

Overview

SQLModel is a Python library for accessing SQL databases with ordinary classes and instances that stand in for tables and rows. It is built on type annotations and sits on top of Pydantic and SQLAlchemy, with the goal of staying intuitive, compatible, and robust.

You define models as Python classes whose attributes map to table columns, then create row objects as instances and persist or query them through a database engine and session. The documentation walks through creating tables, inserting heroes into SQLite, and selecting rows with query helpers.

The same model class acts as a SQLAlchemy model and a Pydantic model, so you can reuse definitions across validation and persistence and avoid maintaining parallel SQLAlchemy and Pydantic types. It is intended to work alongside FastAPI, Pydantic, and SQLAlchemy, including mixing with existing SQLAlchemy models or migrating SQLAlchemy apps.

Defaults and internal wiring aim to keep application code short while still exposing SQLAlchemy and Pydantic capabilities when you need them. The project emphasizes editor support such as autocompletion and inline type errors on model definitions and query results.

Install it as a package dependency with uv or pip inside a Python environment; Pydantic and SQLAlchemy are pulled in automatically. It targets current supported Python versions and is aimed especially at simplifying database access in FastAPI applications.

Key features

  • Python type annotations for models
  • Built on Pydantic and SQLAlchemy
  • Compatible with FastAPI, Pydantic, and SQLAlchemy
  • One class for ORM table and Pydantic model
  • Sensible defaults with less boilerplate
  • Sessions and engines for reads and writes
  • Editor autocompletion and inline errors
  • Works with existing SQLAlchemy models

Use cases

  • SQL-backed FastAPI applications
  • Mapping SQL tables to Python classes
  • Sharing models between validation and persistence
  • Inserting and querying rows with sessions
  • Gradual migration from SQLAlchemy

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

  • Planning and review agents
  • Skills and command library
  • Runtime hooks and memory
JavaScriptCLIDetails →
★ 316.5k⟳ 3 days agoMIT

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

  • Declarative UI rendering
  • Encapsulated stateful components
  • JSX markup beside JavaScript logic
JavaScriptWebDetails →
★ 252.7k⟳ yesterdayMIT

MarkItDown

Python utility converting office and media files to Markdown

MarkItDown converts many file types into Markdown for LLM and text analysis pipelines. It aims to preserve headings, lists, tables, and links rather than perfect human layout.

  • Multi-format file to Markdown conversion
  • Command-line and Python APIs
  • Optional Azure document services
PythonDocker, CLIDetails →
★ 199.8k⟳ 2 days agoMIT

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

  • Unified PyTorch model definitions
  • Hugging Face Hub checkpoint loading
  • Pipeline task inference helpers
PythonCLIDetails →
★ 169.6k⟳ yesterdayApache-2.0

Graphify

Codebase knowledge graph skill for AI coding assistants

Graphify maps a project’s code, docs, and media into a queryable local knowledge graph and installs as a skill for assistants such as Cursor and Claude Code.

  • Local tree-sitter AST code parsing
  • Queryable knowledge graph output
  • EXTRACTED and INFERRED edge tags
PythonLinux, macOS, Windows, CLIDetails →
★ 157k⟳ yesterdayApache-2.0

Taste Skill

Agent skill for designed company sites and browser QA

Taste Skill packages art direction, asset scripts, and headless browser checks so coding agents produce company websites with consistent layout, imagery, and copy rules.

  • Agent-oriented website build workflow
  • Dealt palettes, type, and hero layouts
  • Licensed photograph and icon resolution
JavaScriptCLIDetails →
★ 125.6k⟳ yesterdayMIT