queries
Simplified PostgreSQL client built upon Psycopg2
Decision gist · record as of 2026-08-14
No, not for new projects. The package is abandoned (last release 2021-11-16) and will not receive maintenance, security updates, or compatibility fixes. For new PostgreSQL work, use actively maintained alternatives. Only consider it if you are maintaining existing code that already depends on it and cannot migrate.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running PostgreSQL server and psycopg2 (or psycopg2cffi for PyPy) to be installed; the package itself declares no explicit runtime dependencies in its metadata.
- Installation friction is high with no runtime dependencies listed.
- The package has not been maintained since 2021-11-16 and is marked as abandoned, meaning it will not receive updates for modern Python or PostgreSQL versions.
License · maintenance · safety
BSD (permissive) — Queries is BSD licensed under a permissive license, meaning you can use, modify, and distribute it freely with minimal restrictions, though you must include the license notice.
last release 2021-11-16 (1732 days) · last repo commit 2021-11-16 · 254 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 283,931 downloads/mo, #8,070 on PyPI
Alternatives
Verify before relying
import queries
with queries.Session('postgresql://user@localhost/dbname') as session:
for row in session.query('SELECT * FROM table_name'):
print(row)- Whether psycopg2 is an implicit runtime dependency not declared in package metadata
- Current compatibility with Python versions beyond 3.8 given the maintenance gap since 2021-11-16
- Whether connection pooling behavior remains stable under modern PostgreSQL versions
What it is and what it does
Queries wraps psycopg2 to reduce boilerplate when building PostgreSQL client applications. It provides a session-based API that handles connection pooling internally, URI-based connection configuration, and automatic type support for UUIDs and Unicode. The package also includes a Tornado integration for asynchronous query execution in web applications.
The package was last released on 2021-11-16 and is no longer maintained. While it remains in production/stable status according to its classifiers, the lack of updates means it has not been tested against recent Python or PostgreSQL versions and will not receive bug fixes or security updates.
Use it for
- Building synchronous PostgreSQL client scripts or applications where connection pooling and URI-based configuration reduce setup code.
- Integrating PostgreSQL queries into Tornado web applications using the TornadoSession class for asynchronous database access.
- Maintaining legacy applications that already depend on queries and do not require modern Python version support.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No, not for new projects.
The package is abandoned (last release 2021-11-16) and will not receive maintenance, security updates, or compatibility fixes. For new PostgreSQL work, use actively maintained alternatives. Only consider it if you are maintaining existing code that already depends on it and cannot migrate.
Install
queries on PyPI
Before you install
Installation friction is high with no runtime dependencies listed. The package has not been maintained since 2021-11-16 and is marked as abandoned, meaning it will not receive updates for modern Python or PostgreSQL versions.
Requires a running PostgreSQL server and psycopg2 (or psycopg2cffi for PyPy) to be installed; the package itself declares no explicit runtime dependencies in its metadata.
License in practice
Queries is BSD licensed under a permissive license, meaning you can use, modify, and distribute it freely with minimal restrictions, though you must include the license notice.
Quickstart
import queries
with queries.Session('postgresql://user@localhost/dbname') as session:
for row in session.query('SELECT * FROM table_name'):
print(row)
Verify before relying
- Whether psycopg2 is an implicit runtime dependency not declared in package metadata
- Current compatibility with Python versions beyond 3.8 given the maintenance gap since 2021-11-16
- Whether connection pooling behavior remains stable under modern PostgreSQL versions
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,732 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 283,931 / month, #8,070 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: DatabaseTopic :: Software Development :: Libraries |
Evidence: queries-2.1.1.tar.gz
Tags
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 › “psycopg2 simplified api”
- queriesQueries is a simplified wrapper around psycopg2 that provides a…
- types-psycopg2Provides type hints for psycopg2, enabling static type checkers like…
- psycogreenIntegrates psycopg2 with coroutine libraries (eventlet, gevent) by…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also psycopg2-pool · shillelagh · postgres · buildpg · databases · psycopg · pgdb · psycopg2 · django-db-geventpool · psycopg-pool