PyPQL Documentation

Introduction

PyPQL is a lightweight Python library that simplifies working with PostgreSQL. It is designed for projects that need easy CRUD operations with strong consistency but do not require the complexity of large-scale ORM frameworks.

Installation

pip install pypql

Quick Start


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()
      

API Overview

Best Practices