Skip to main content

A lightweight Pythonic interface for PostgreSQL

Project description

PyPQL

Beta Notice
PyPQL is currently in its first beta release. Some features may not work as intended, and the API may change in future versions. Use with caution in production environments.

PyPQL is a lightweight, Pythonic interface for interacting with PostgreSQL databases. It allows developers to build readable, composable, and expressive queries in pure Python — no need to write raw SQL.

Features

  • Intuitive, fluent query syntax
  • Built-in support for PostgreSQL async operations via asyncpg
  • Easy integration with FastAPI and modern Python web frameworks
  • Designed for clarity, flexibility, and developer happiness

Installation

Install from PyPI:

pip install pypql

Or download the ZIP directly from the official website if preferred. GitHub repository coming soon.

Example

import asyncio
from pypql import tableobj

users = Table('user', 'password', 'database', 'host', 'table_name')
await users.connect()
await users.insert_single(['name'], ['Bobby']) # Inserts new row with value "Bobby" into name column of users table
await users.close()

License

MIT License — see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypql-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypql-0.1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pypql-0.1.1.tar.gz.

File metadata

  • Download URL: pypql-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for pypql-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7c87499d8e928b3e8d93db50fb6319737ea05b71a7a2e1cfc16926e35cc5b769
MD5 2407328a4dc30adcff1f997dedf7dc21
BLAKE2b-256 aa5c0dc5ad8271cfbfad6842c63e8082a57335c97977b57cd1a5576667839668

See more details on using hashes here.

File details

Details for the file pypql-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pypql-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.5

File hashes

Hashes for pypql-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f7a74a852d3f67841f65c5cbc6424bc0a39805accd51f26986866f917e8010
MD5 feae799a1a37cb826d839aa52250e62c
BLAKE2b-256 9ed4d3beb2d3051eb067af6540503b7ed81c32791e0e9c63ab27b9ac2a1839b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page