Asyncio psycopg2 mixin
Project description
psycaio
A Python asyncio wrapper around psycopg2
Example
import asyncio
from psycaio import connect
async def test_conn():
cn = await connect(dbname='postgres')
cr = cn.cursor()
await cr.execute("SELECT 42")
print(cr.fetchone()[0])
cr = cn.cursor()
await cr.execute("SELECT 42")
print(cr.fetchone()[0])
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(test_conn())
loop.close()
About
This package is meant as a minimal asyncio mixin for psycopg2.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
psycaio-0.3.tar.gz
(13.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
psycaio-0.3-py3-none-any.whl
(11.8 kB
view details)
File details
Details for the file psycaio-0.3.tar.gz.
File metadata
- Download URL: psycaio-0.3.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4aa0bbbdf59f4fdd026bc506ca0f35ff6760a47c29f8278ba9ceb3574830e3bc
|
|
| MD5 |
a89b4fe899972648e09444cc0a89bea3
|
|
| BLAKE2b-256 |
fe8a3ecaab5de32f9bc42cb4f82c4f31eead7691b89a70c74fa97f60c678baf5
|
File details
Details for the file psycaio-0.3-py3-none-any.whl.
File metadata
- Download URL: psycaio-0.3-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c59162019d033b7f1b9a815a5a1d14c9ebb7e97cd708b74bb67b1aac1b73e94
|
|
| MD5 |
38ca38797c7f5de637fb79f22a98a249
|
|
| BLAKE2b-256 |
ad8b8220d1825d1751e0a7d908609ba051e534bcaa6828949dd07e5bade4e2da
|