Skip to main content

asyncpgx

Build passed Test coverage Version

Extensions for asyncpg.

Based on the asyncpg and highly inspired by the sqlx package

This package supports 3.6+ python versions

Setup

Use pip install asyncpgx

Purpose

This is a thin wrapper on the asyncpg package. Our purpose is to provide convenient extensions to the original package. We're trying to delegate as much work as we can to the asyncpg (basically our extension methods are high-level proxies to the underlying ones) and make only converting job. Original asyncpg API stays the same, you can see it in the asyncpg documentation.

Functionality

  • queries with named parameters, i.e.
import asyncpgx

connection = await asyncpgx.connect('postgresql://127.0.0.1:5432')
await connection.named_fetch('''SELECT field FROM some_table WHERE id <= :id;''', {'id': 1})
  • prepared statements with named parameters, i.e.
import asyncpgx

connection = await asyncpgx.connect('postgresql://127.0.0.1:5432')
prepared_statement = await connection.named_prepare('''SELECT field FROM some_table WHERE id <= :id;''')
await prepared_statement.named_fetch({'id': 1})

Documentation

You can find project documentation here

Changelog

You can find all releases description here

Metadata

Release files for asyncpgx 1.5.0

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

Source distribution (sdist)

Source distribution for asyncpgx 1.5.0
File Size Uploaded
asyncpgx-1.5.0.tar.gz 11.0 kB Details

Built distribution (wheel)

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

Total release size: 23.5 kB

Release files / asyncpgx-1.5.0.tar.gz

Download URL asyncpgx-1.5.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2504c4831cd143a4e79216fc356500ed56a30b156be9740a3bf658d67f279412
BLAKE2b-256 checksum
How to use checksums
3f5265dbc280ed190fbc76d816fb1e015284911362c02f15b72e608670b1600e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.11.0 Linux/5.15.0-1022-azure

Release files / asyncpgx-1.5.0-py3-none-any.whl

Download URL asyncpgx-1.5.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef4ae8795423485a2ad8b18974fdeb830e25db2518b2c911087388879208b7e1
BLAKE2b-256 checksum
How to use checksums
41c66c20bfeef560542f83531dffbca03acf1b331b078017d6767e1743a0cdcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.11.0 Linux/5.15.0-1022-azure

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

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