Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

TurboPG

Zig-native Postgres client for Python. Zero-overhead database operations powered by pg.zig.

Install

pip install turbopg
# With psycopg2 fallback:
pip install turbopg[psycopg2]

Usage

from turbopg import Database

db = Database("postgres://user:pass@localhost/mydb", pool_size=16)

# Query rows
users = db.query("SELECT * FROM users WHERE age > $1 LIMIT $2", [18, 10])

# Single row
user = db.query_one("SELECT * FROM users WHERE id = $1", [42])

# Execute (INSERT/UPDATE/DELETE)
db.execute("INSERT INTO users (name, email) VALUES ($1, $2)", ["Alice", "a@b.com"])

With TurboAPI (zero-Python DB routes)

from turboapi import TurboAPI

app = TurboAPI()
app.configure_db("postgres://...", pool_size=16)

@app.db_get("/users/{user_id}", table="users", pk="id")
def get_user(): pass

HTTP in, JSON out. Python never touches the data. 128k req/s on DB routes.

License

MIT

Metadata

Release files for turbopg 0.1.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for turbopg 0.1.0rc1
File Size Uploaded Provenance
turbopg-0.1.0rc1.tar.gz 2.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for turbopg 0.1.0rc1
File Interpreter ABI Platform
turbopg-0.1.0rc1-py3-none-any.whl Python 3 none any Details

Total release size: 4.1 kB

Release files / turbopg-0.1.0rc1.tar.gz

Download URL turbopg-0.1.0rc1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8e6b0e98cb79def6b76f059ac8d4ad6b8f6e1638799fca99f59363ecf3380821
BLAKE2b-256 checksum
How to use checksums
c961468dd85242ce41d7018beb43cbc368f4fddb60048ab840f2212ff8e1e70f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / turbopg-0.1.0rc1-py3-none-any.whl

Download URL turbopg-0.1.0rc1-py3-none-any.whl
Size 1.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6258179d458163dc8dd4c1985bda8450017b64a419d98e034e74bc3f59396336
BLAKE2b-256 checksum
How to use checksums
00f52966b164518e950bff2c30f86c509030c1b9f771aac130f4f09de098dfeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for turbopg 0.1.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page