Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

PyPika

SQL query builder for Python that generates queries programmatically without raw SQL strings.

Databases, ORMs and clientsPYPI

GitHubWebsite

1. License

License from PyPI classifier.

github.com/kayak/pypika

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What PyPika does

SQL query builder for Python that generates queries programmatically without raw SQL strings.

PyPika popularity

56 / 100
Gid Score, #1350 overall
2.1M
downloads a week, pypi
2,924
GitHub stars
4
agent projects use it
PyPika: downloads per weekPyPI, pypika 2,143,071
PyPika: GitHub starskayak/pypika 2,924

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How PyPika is used

  • PyPika is a dependency in 4 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 224 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is SQLAlchemy (181 projects).
  • Projects that use it most often also use AnyIO (100.0%), charset-normalizer (100.0%), Click (100.0%).

Often used with

In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 100.0% of its projects
In 99.6% of its projects

More about PyPika

More in Databases, ORMs and clients

Alternatives

PyPika This page

Apache-2.0Gid 562.1M/wk

SQLAlchemy

Python SQL toolkit and object-relational mapper for database abstraction.

MITGid 80105M/wk

SQLModel

SQL ORM combining SQLAlchemy with Pydantic for Python databases.

MITGid 667.2M/wk

Compare PyPika with another tool

Get started

Install it.

pip install pypika

No step-by-step start for PyPika yet: we have not written its hand-checked card.