Python SQL

Open-source Python projects categorized as SQL

Top 23 Python SQL Projects

  • devops-exercises

    Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • sqlmodel

    SQL databases in Python, designed for simplicity, compatibility, and robustness.

  • pandas-ai

    Chat with your database (SQL, CSV, pandas, polars, mongodb, noSQL, etc). PandasAI makes data analysis conversational using LLMs (GPT 3.5 / 4, Anthropic, VertexAI) and RAG.

    Project mention: Using RAG to Build Your IDE Agents | dev.to | 2024-06-18

    In this blog, we will build a powerful IDE agent for PandasAI using Dash Agent. Then later on, we'll understand how using RAG can significantly improve LLM responses.

  • vanna

    🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using RAG 🔄.

    Project mention: Database Education Needs Moderization | dev.to | 2024-04-11

    vanna-ai is a pretty cool project that combines AI with database knowledge. SQLAI seems to be a small German company which specializes in this area. I will start exploring these in my free time.

  • q

    q - Run SQL directly on delimited files and multi-file sqlite databases (by harelba)

  • modin

    Modin: Scale your Pandas workflows by changing a single line of code

  • SQLAlchemy

    The Database Toolkit for Python

    Project mention: Creating an arXiv DB | dev.to | 2024-08-31

    We will define our database schema using SQLAlchemy. First, we will store a subset of the information in a single table called documents. This is to test that our database configuration is correct and avoid storing nested data now. The code is fairly simple to create a SQLite3 database with SQLAlchemy:

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB logo
  • datasette

    An open source multi-tool for exploring and publishing data

    Project mention: Show HN: SQLite Transaction Benchmarking Tool | news.ycombinator.com | 2024-07-17

    I wrote an async wrapper around SQLite in Python - I'm using a thread pool: https://github.com/simonw/datasette/blob/main/datasette/data...

    I have multiple threads for reads and a single dedicated thread for writes, which I send operations to via a queue. That way I avoid ever having two writes against the same connection at the same time.

  • Mage

    🧙 The modern replacement for Airflow. Mage is an open-source data pipeline tool for transforming and integrating data. https://github.com/mage-ai/mage-ai

    Project mention: 25 Open Source AI Tools to Cut Your Development Time in Half | dev.to | 2024-07-11

    Mage AI is a data transforming and integrating framework that allows data scientists and ML engineers to build and automate data pipelines without extensive coding. Data scientists can easily connect to their data sources, ingest data, and build production-ready data pipelines within Mage notebooks.

  • sqlfluff

    A modular SQL linter and auto-formatter with support for multiple dialects and templated code.

    Project mention: 🐍🐍 23 issues to grow yourself as an exceptional open-source Python expert 🧑‍💻 🥇 | dev.to | 2023-10-19

    Repo : https://github.com/sqlfluff/sqlfluff

  • sqlglot

    Python SQL Parser and Transpiler

    Project mention: The Future of MySQL is PostgreSQL: an extension for the MySQL wire protocol | news.ycombinator.com | 2024-04-26

    This is probably referring to "zero changes to your driver code" and not "zero changes to the SQL you send over this driver".

    Translating between SQL dialects is notoriously hard and attempts to translate [1] are working in 95% of cases. But the last 5% would require 5x amount of work. That's because "SQL dialect" also includes weird edge cases of type inference of things like COALESCE(5, FALSE) and emulation of system catalogs (pg_catalog, information_schema).

    [1] https://github.com/tobymao/sqlglot

  • ibis

    the portable Python dataframe library

    Project mention: DuckDB 1.1.0 Released | news.ycombinator.com | 2024-09-09

    There is is still much to do especially on large table formats (iceberg/delta) and memory management when running on bigger boxes on cloud. Eg the elusive "Failed to allocate ..." bug[1] is an inhibitor to the claim that big data is dead[2]. As it is, we tried and abandoned DuckDB as a cheaper replacement for some databricks batch jobs.

    [0] https://github.com/ibis-project/ibis

  • dataset

    Easy-to-use data handling for SQL data stores with support for implicit table creation, bulk loading, and transactions.

  • Flask-AppBuilder

    Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/

    Project mention: Top 8 Open-Source CRUD Projects with the Most GitHub Stars | dev.to | 2024-09-04

    GitHub https://github.com/dpgaspar/Flask-AppBuilder GitHub Stars 4.6k Most Recent Update on GitHub 2 days ago Open Source License BSD-3-Clause Number of Active Contributors This Year 11 Acceptance of External PRs Yes Official Website / Documentation https://flask-appbuilder.readthedocs.io/en/latest/

  • dataherald

    Interact with your SQL database, Natural Language to SQL using LLMs

    Project mention: AIM Weekly 27 May 2024 | dev.to | 2024-05-28
  • ethereum-etl

    Python scripts for ETL (extract, transform and load) jobs for Ethereum blocks, transactions, ERC20 / ERC721 tokens, transfers, receipts, logs, contracts, internal transactions. Data is available in Google BigQuery https://goo.gl/oY5BCQ

    Project mention: Blockchain transactions decoding: making wallet activity understandable | dev.to | 2023-10-27

    Event is a log entity which EVM smart contracts can emit during transaction execution. Events are very good at signalling that an some action has taken place on-chain. Applications can subscribe and listen to events to trigger some off-chain logic or they can index, transform and store events in some off-chain storage (look at The Graph protocol or Ethereum ETL).

  • django-sql-explorer

    SQL reporting that Just Works. Fast, simple, and confusion-free. Write and share queries in a delightful SQL editor, with AI assistance.

    Project mention: Show HN: SQL Explorer – Open-source reporting tool that just works | news.ycombinator.com | 2024-07-02

    You got it! You'll need three values set in settings.py:

    https://github.com/explorerhq/django-sql-explorer/blob/64170...

    ```

  • alembic

    A database migrations tool for SQLAlchemy.

    Project mention: Setting up a standalone SQLAlchemy 2.0 ORM application | dev.to | 2024-05-20

    The ORM is built on top of this Core foundation. It expands upon it through a domain object model that is mapped to a database schema. This means you can have classes that are mapped to the database tables and columns, and implement different operations in an object-oriented way. This can be further expanded with external tools such as Alembic, which is a migration tool, or marshmallow, which is a serialization tool.

  • PyPika

    PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially useful for data analysis.

  • pg_activity

    pg_activity is a top like application for PostgreSQL server activity monitoring.

    Project mention: FLaNK AI for 11 March 2024 | dev.to | 2024-03-11
  • fugue

    A unified interface for distributed computing. Fugue executes SQL, Python, Pandas, and Polars code on Spark, Dask and Ray without any rewrites.

    Project mention: FLaNK Stack Weekly 22 January 2024 | dev.to | 2024-01-22
  • djongo

    Django and MongoDB database connector

  • learning

    Learning Shell,Python,Golang,System,Network (by anzhihe)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python SQL discussion

Log in or Post with

Python SQL related posts

  • Show HN: An open source project in Python to inspect databases through CLI fast

    1 project | news.ycombinator.com | 15 Sep 2024
  • Show HN: SQL Explorer – Open-source reporting tool that just works

    6 projects | news.ycombinator.com | 2 Jul 2024
  • Analyzing Svenskalag Data using DBT and DuckDB

    4 projects | dev.to | 17 Jun 2024
  • Track Errors in Your Python Flask Application with AppSignal

    2 projects | dev.to | 12 Jun 2024
  • Show HN: SQLFrame – I ran PySpark without Spark on a SQL database

    3 projects | news.ycombinator.com | 20 May 2024
  • Setting up a standalone SQLAlchemy 2.0 ORM application

    4 projects | dev.to | 20 May 2024
  • The Future of MySQL is PostgreSQL: an extension for the MySQL wire protocol

    1 project | news.ycombinator.com | 26 Apr 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Sep 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source SQL projects in Python? This list will help you:

Project Stars
1 devops-exercises 65,830
2 sqlmodel 14,032
3 pandas-ai 12,553
4 vanna 10,730
5 q 10,183
6 modin 9,744
7 SQLAlchemy 9,428
8 datasette 9,389
9 Mage 7,703
10 sqlfluff 7,647
11 sqlglot 6,390
12 ibis 5,061
13 dataset 4,752
14 Flask-AppBuilder 4,628
15 dataherald 3,304
16 ethereum-etl 2,920
17 django-sql-explorer 2,738
18 alembic 2,724
19 PyPika 2,479
20 pg_activity 2,454
21 fugue 1,957
22 djongo 1,874
23 learning 1,836

Sponsored
Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com

Did you konow that Python is
the 1st most popular programming language
based on number of metions?