$npx skillfedfor your agent

sqlglotc

mypyc-compiled extensions for sqlglot

With conditionsPyPI DatabaseReleased Aug 20262.1M downloads / moMITPlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — sqlglotc-30.17.0-cp310-cp310-macosx_10_9_universal2.whl · sqlglotc-30.17.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl · sqlglotc-30.17.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
v30.17.0 · released 2026-08-12 · Python >=3.10 · 1 runtime deps: sqlglot

Yes, if you use sqlglot and performance matters. The compiled extensions are a strict speedup with no API changes—install sqlglotc and operations run 3-5x faster. The trade-off is medium install friction (compiled wheels for common platforms, but source builds elsewhere) and a requirement for Python 3.10 or later. No known vulnerabilities and actively maintained. Skip it only if you need custom dialects or are on an unsupported platform where source compilation is impractical.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; source builds on unsupported platforms may require a C compiler and mypyc toolchain.
  • Medium install friction due to compiled wheels; prebuilt binaries are available for Python 3.10–3.14 on macOS, Linux (x86_64 and aarch64), and Windows, but source builds may be required on unsupported platforms.
  • Package is actively maintained with releases every few days.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 9,529 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,119,006 downloads/mo, #3,281 on PyPI

Verify before relying

pip install "sqlglotc[c]"

import sqlglot
result = sqlglot.transpile("SELECT * FROM table", read="postgres", write="duckdb")[0]
  • Whether custom dialects work correctly with the compiled extensions (documentation notes potential incompatibility).
  • Exact performance improvement margin on real-world workloads beyond the stated 3-5x benchmark range.
  • Whether the [c] extra is available for sqlglotc or if compilation is automatic.
Same gist for agents: .md · .json

What it is and what it does

sqlglotc bundles mypyc-optimized C extensions to accelerate SQL parsing and manipulation through sqlglot. It wraps sqlglot and trades pure-Python portability for speed, delivering roughly 3-5x faster execution on parsing, transpilation, and analysis tasks. The package is designed as a drop-in replacement: install it instead of the base package, and operations run faster without code changes.

The underlying sqlglot library handles SQL parsing across over 30 dialects (DuckDB, Presto, Spark, Snowflake, BigQuery, and others), transpilation between them, query optimization, and syntax error detection. sqlglotc simply accelerates these operations by compiling hot paths to native code. It depends on sqlglot as its runtime dependency and is most useful when parsing or transpiling large volumes of SQL or running in performance-sensitive applications.

Use it for

  • Accelerate batch SQL transpilation pipelines that convert queries between multiple database dialects.
  • Speed up query analysis and metadata extraction (finding columns, tables, and dependencies) in large codebases.
  • Reduce latency in real-time SQL formatting or validation services that handle many requests per second.
  • Optimize data warehouse migration tools that parse and rewrite SQL at scale.
  • Improve performance of SQL linting or code-review tools that analyze many queries in sequence.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you use sqlglot and performance matters.

The compiled extensions are a strict speedup with no API changes—install sqlglotc and operations run 3-5x faster. The trade-off is medium install friction (compiled wheels for common platforms, but source builds elsewhere) and a requirement for Python 3.10 or later. No known vulnerabilities and actively maintained. Skip it only if you need custom dialects or are on an unsupported platform where source compilation is impractical.

Install

sqlglotc on PyPI

Before you install

Medium install friction due to compiled wheels; prebuilt binaries are available for Python 3.10–3.14 on macOS, Linux (x86_64 and aarch64), and Windows, but source builds may be required on unsupported platforms. Package is actively maintained with releases every few days.

Requires Python 3.10 or later; source builds on unsupported platforms may require a C compiler and mypyc toolchain.

License in practice

MIT license permits commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install "sqlglotc[c]"

import sqlglot
result = sqlglot.transpile("SELECT * FROM table", read="postgres", write="duckdb")[0]

Verify before relying

  • Whether custom dialects work correctly with the compiled extensions (documentation notes potential incompatibility).
  • Exact performance improvement margin on real-world workloads beyond the stated 3-5x benchmark range.
  • Whether the [c] extra is available for sqlglotc or if compilation is automatic.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
sqlglot
MaintenanceActively maintained 2 days since the last release
Last repo commit
First released
Downloads2,119,006 / month, #3,281 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: sqlglotc-30.17.0-cp310-cp310-macosx_10_9_universal2.whl; sqlglotc-30.17.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; sqlglotc-30.17.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; sqlglotc-30.17.0-cp310-cp310-win_amd64.whl; sqlglotc-30.17.0-cp311-cp311-macosx_10_9_universal2.whl; sqlglotc-30.17.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; sqlglotc-30.17.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; sqlglotc-30.17.0-cp311-cp311-win_amd64.whl; sqlglotc-30.17.0-cp312-cp312-macosx_10_13_universal2.whl; sqlglotc-30.17.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; sqlglotc-30.17.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; sqlglotc-30.17.0-cp312-cp312-win_amd64.whl; sqlglotc-30.17.0-cp313-cp313-macosx_10_13_universal2.whl; sqlglotc-30.17.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; sqlglotc-30.17.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; sqlglotc-30.17.0-cp313-cp313-win_amd64.whl; sqlglotc-30.17.0-cp314-cp314-macosx_10_15_universal2.whl; sqlglotc-30.17.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; sqlglotc-30.17.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; sqlglotc-30.17.0-cp314-cp314-win_amd64.whl

Tags

Capabilities
sqlglot c extensionsfast sql parsercompiled sqlglotsql transpiler performancemypyc compiled sqlsql dialect translationoptimized sql parsing
Topics
sql-parsingperformance-optimizationcompiled-extension

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “sqlglot c extensions”

  • sqlglotcProvides mypyc-compiled C extensions that accelerate sqlglot's SQL…
  • apache-superset-coreProvides base classes, decorators, and utilities for building Apache…
  • sqlglotSQLGlot parses, transpiles, optimizes, and analyzes SQL across over…

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also sqlglot · sql-metadata · sqlglotrs · acryl-sqlglot · collate-sqlfluff · sqlfluff · collate-sqllineage · sqlfluff-templater-dbt · simple-ddl-parser · librt