Skip to content
 
 

Repository files navigation

PostgreSQL AnyIO

postgresql-anyio is an AnyIO (asyncio or trio backend) PostgreSQL client library.

It's a slighty modified version of the amazing library pgtrio created by Mostafa Razavi.

Tests

  1. Start a localhost PostgreSQL instance on port 5432 (default).

  2. Check if pg_ctl is on PATH.

  3. Run ./test.sh

Usage

Install with poetry add git+https://github.com/abraaoz/postgresql-anyio.git#main

Use as pgtrio README.md, but:

Find: Replace with:
import pgtrio import postgresql_anyio
import trio import anyio
trio.run(main) anyio.run(main, backend="trio") or anyio.run(main, backend="asyncio")

About

An AnyIO (asyncio or trio backend) PostgreSQL client library

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages