Skip to main content

A lightweight Pythonic interface for PostgreSQL

Project description

PyPQL

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

PyPQL is not yet on PyPI. For now, you can clone the repo or download the ZIP:

git clone https://github.com/xAblivpypql.git
cd pypql
python setup.py install

Example

from pypql import Table

users = Table('users')
query = users.select().where(users.age > 18)
print(str(query))  # Outputs: SELECT * FROM users WHERE age > 18;

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.0.tar.gz (2.6 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.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypql-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 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.0.tar.gz
Algorithm Hash digest
SHA256 b5835bf6d3e5d276866d855334f91a1a82c0c285838f39fc892c27535ffe85d4
MD5 634687aff3b203a7ac5ef9e435bcee1e
BLAKE2b-256 76ab10dfb148c2ee2b6ad0428061d6d7d26d3f0085c6a1bb62d1ecced9abb959

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypql-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac5dc670288cc856d874b09d821152f151b7e5e96979ede99824678498e9e1a9
MD5 8743855c216fb8711213e45d43a500a3
BLAKE2b-256 0d09f757bdba0a76884160866538a1bb89d2f4e4222eaed13b5e9960e965b78a

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