qmetrics.net

Records

Human-friendly Python library for raw SQL queries

DatabasesDesktop/CLI app
Records screenshot

Records runs SQL against relational databases and returns rows you can slice, iterate, or export. It sits on SQLAlchemy and Tablib with a small, direct API.

Overview

Records is a Python library for sending raw SQL to relational databases without an ORM layer. You write SQL strings or load query files, execute them, and work with results as row objects that support attribute, mapping, and index access—including column names with spaces.

Supported database backends named in the documentation include Postgres, MySQL, SQLite, Oracle, MS-SQL, and RedShift, with drivers supplied separately. Results can be fetched one row at a time, iterated, materialized with all(), or reduced with first() when you expect a single row. Helpers expose asdict() for structured output.

The library adds parameterized queries, transactions, bulk query helpers, optional DATABASE_URL from the environment, and a convenience method to list table names. Iterated row sets are cached for reuse. A command-line records tool can export query output.

Through Tablib integration, result sets export to CSV, JSON, YAML, HTML tables, Excel, and Pandas DataFrames in one step, which supports reporting and sharing tabular data.

Key features

  • Raw SQL without ORM overhead
  • SQLAlchemy-powered connections
  • Row access by name or index
  • Parameterized queries
  • Transactions and bulk queries
  • Query from strings or files
  • Tablib export formats
  • CLI export tool

Use cases

  • Ad hoc analytics queries
  • Reporting and data export
  • Scripted database inspection
  • Lightweight ETL from SQL
  • Teaching SQL-first workflows

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

★ 67.9k⟳ yesterdayApache-2.0
Open Source Alternative to:PRTG Network Monitor

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

★ 65.6k⟳ todaySource-available
DatabasesSelf-hostable

etcd

Raft-backed distributed consistent key-value store

etcd stores small critical configuration and coordination data for clusters. It exposes a gRPC API, tolerates failures via Raft, and ships with the etcdctl command-line client.

★ 52.7k⟳ 3 days agoApache-2.0
DatabasesSelf-hostable

DBeaver

Universal multi-platform database tool and SQL client

Free desktop client for developers and DBAs with SQL editing, data editing, ER diagrams, exports, and support for hundreds of JDBC or ODBC databases.

★ 52.6k⟳ todayApache-2.0
DatabasesDesktop/CLI app
Open Source Alternative to:DataGripNavicat+2

ClickHouse

Column-oriented real-time analytics database management system

ClickHouse is a column-oriented database for generating analytical reports in real time using SQL on large datasets.

★ 51.2k⟳ todayApache-2.0
Open Source Alternative to:Amazon Redshift