Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asyncpgx

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyncpgx

User-friendly extensions for asyncpg

  • 1.5.0
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc