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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5835bf6d3e5d276866d855334f91a1a82c0c285838f39fc892c27535ffe85d4
|
|
| MD5 |
634687aff3b203a7ac5ef9e435bcee1e
|
|
| BLAKE2b-256 |
76ab10dfb148c2ee2b6ad0428061d6d7d26d3f0085c6a1bb62d1ecced9abb959
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac5dc670288cc856d874b09d821152f151b7e5e96979ede99824678498e9e1a9
|
|
| MD5 |
8743855c216fb8711213e45d43a500a3
|
|
| BLAKE2b-256 |
0d09f757bdba0a76884160866538a1bb89d2f4e4222eaed13b5e9960e965b78a
|