awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
pallets-eco avatar

pallets-eco/flask-sqlalchemy

0
View on GitHub↗
4,314 stars·908 forks·Python·BSD-3-Clause·14 viewsflask-sqlalchemy.readthedocs.io↗

Flask Sqlalchemy

Flask-SQLAlchemy is a toolkit that integrates the SQLAlchemy relational database toolkit with the Flask web framework. It enables relational data modeling by defining database table structures as Python classes and manages the persistence and retrieval of database records within a web application.

The project binds database session lifecycles to the active application request context to ensure automatic connection cleanup. It provides specialized utilities for web data access, including query result pagination and a mechanism to automatically trigger 404 Not Found responses when a requested database record is missing.

The extension covers a broad range of database management capabilities, including declarative model mapping, schema reflection, and the generation of physical table structures. It supports advanced connection management through multi-bind query routing and provides observability tools for auditing SQL query performance and execution timing.

Features

  • ORM Model Declarations - Creates table structures using declarative classes that map application objects to database rows.
  • Flask Integrations - Integrates the SQLAlchemy relational database toolkit with the Flask web framework for data persistence.
  • Database Connection Configurations - Provides support for defining connection URIs and engine options for primary and secondary data stores.
  • Database Query Execution - Runs selection queries to retrieve specific records or collections of data from the database.
  • Record Creations and Updates - Performs create, update, and delete operations on model objects and persists changes through a session.
  • Relational Data Modeling - Defines database table structures as Python classes to map application objects to relational database rows.
  • Database Session Lifecycles - Automatically manages database connection and transaction lifecycles within the scope of a web request.
  • Request-Bound Session Management - Binds database sessions to the active application request lifecycle to ensure automatic connection cleanup after responses.
  • Application-Context Session Scoping - Binds database sessions to the active application context for automatic connection cleanup.
  • Web Data Access Utilities - Implements specialized utilities for web data access, including query pagination and automatic 404 responses for missing records.
  • Multi-Bind Schema Management - Enables creating or dropping tables across all configured database connections or targeting a specific subset.
  • Database Table Generation - Provides utilities to automatically generate physical database table structures from defined model classes.
  • Model-Based Query Routing - Directs database queries to specific data stores by associating model classes with designated database engines.
  • Paginated Results - Splits large datasets into numbered chunks with metadata for request-parameter based navigation.
  • Custom Query Interface Methods - Supports adding custom methods to the query interface globally or on a per-model basis.
  • Query Performance Monitors - Records SQL execution time and application location for every query to identify performance bottlenecks.
  • Single Record Retrievers - Provides a utility to retrieve a single database record or automatically trigger a 404 Not Found response.
  • SQL Query Debuggers - Provides tools for monitoring executed SQL statements and recording performance metadata to identify bottlenecks.
  • Model-Engine Routing - Maps specific models or tables to different database engines to manage data across distinct stores.
  • Database Connection Pooling - Manages a pool of database connections with recycling and pre-ping checks to maintain stability across HTTP requests.
  • Connection Stability Features - Prevents connection timeouts and handles disconnects using pool recycling and pre-ping checks.
  • Database Schema Reflection - Inspects existing database structures at runtime to automatically generate application-level metadata and models.

Star history

Star history chart for pallets-eco/flask-sqlalchemyStar history chart for pallets-eco/flask-sqlalchemy

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Flask Sqlalchemy

Similar open-source projects, ranked by how many features they share with Flask Sqlalchemy.
  • mitsuhiko/flask-sqlalchemymitsuhiko avatar

    mitsuhiko/flask-sqlalchemy

    4,311View on GitHub↗

    Flask-SQLAlchemy is a relational database toolkit that integrates the SQLAlchemy object-relational mapper into web applications. It serves as a database session manager and schema toolkit, providing the necessary infrastructure to define data models and execute queries within a request lifecycle. The project is distinguished by its multi-database routing engine, which uses bind-keys to map different models to multiple distinct database engines. It also includes a SQL query auditing tool that captures and logs executed statements and timing data for a single request to identify performance bot

    Python
    View on GitHub↗4,311
  • tortoise/tortoise-ormtortoise avatar

    tortoise/tortoise-orm

    5,582View on GitHub↗

    Tortoise ORM is an asynchronous object-relational mapper for Python that mirrors Django's model and queryset API while running on asyncio. It defines database tables as Python classes with typed fields and supports foreign key, many-to-many, and one-to-one relations, providing a chainable query API for filtering, annotating, grouping, and prefetching related objects without blocking the event loop. The ORM includes a built-in migration engine that detects model changes, generates migration files, and applies or reverts schema changes through a command-line tool. It connects to PostgreSQL, MyS

    Pythonasyncasynciomysql
    View on GitHub↗5,582
  • diesel-rs/dieseldiesel-rs avatar

    diesel-rs/diesel

    14,021View on GitHub↗

    This project is a type-safe database toolkit and object-relational mapper designed to enforce structural consistency between database schemas and application code. By leveraging compile-time validation, it ensures that SQL queries and data structures remain synchronized, preventing common errors before the application executes. It provides a comprehensive framework for relational data modeling, allowing developers to define table associations and map database results directly into strongly-typed language objects. The library distinguishes itself through its focus on compile-time safety and au

    Rustmysqlormpostgresql
    View on GitHub↗14,021
  • dapperlib/dapperDapperLib avatar

    DapperLib/Dapper

    18,331View on GitHub↗

    Dapper is a lightweight object-relational mapper for .NET that functions as a high-performance data access library. It operates by extending standard database connection interfaces, allowing developers to execute raw SQL queries while automating the mapping of database results to strongly-typed objects. The library distinguishes itself through its use of runtime code generation, which creates high-performance instructions to map database rows to object properties with minimal overhead. It provides flexible data retrieval options, supporting both memory-buffered loading for speed and row-by-ro

    C#ado-netdappersql
    View on GitHub↗18,331
See all 30 alternatives to Flask Sqlalchemy→

Frequently asked questions

What does pallets-eco/flask-sqlalchemy do?

Flask-SQLAlchemy is a toolkit that integrates the SQLAlchemy relational database toolkit with the Flask web framework. It enables relational data modeling by defining database table structures as Python classes and manages the persistence and retrieval of database records within a web application.

What are the main features of pallets-eco/flask-sqlalchemy?

The main features of pallets-eco/flask-sqlalchemy are: ORM Model Declarations, Flask Integrations, Database Connection Configurations, Database Query Execution, Record Creations and Updates, Relational Data Modeling, Database Session Lifecycles, Request-Bound Session Management.

What are some open-source alternatives to pallets-eco/flask-sqlalchemy?

Open-source alternatives to pallets-eco/flask-sqlalchemy include: mitsuhiko/flask-sqlalchemy — Flask-SQLAlchemy is a relational database toolkit that integrates the SQLAlchemy object-relational mapper into web… tortoise/tortoise-orm — Tortoise ORM is an asynchronous object-relational mapper for Python that mirrors Django's model and queryset API while… diesel-rs/diesel — This project is a type-safe database toolkit and object-relational mapper designed to enforce structural consistency… dapperlib/dapper — Dapper is a lightweight object-relational mapper for .NET that functions as a high-performance data access library. It… seaql/sea-orm — Sea-ORM is an asynchronous SQL object-relational mapper and database toolkit for mapping relational tables to strongly… sqlpad/sqlpad — Sqlpad is a web-based SQL client and multi-tenant workbench used for writing, executing, and saving queries across…