asyncgp -- A database interface library based on asyncpg for GreenPlum and Python/asyncio
asyncgp is a database interface library based on asyncpg for GreenPlum and Python/asyncio.
asyncgp requires Python 3.5 or later and add supported for GreenPlum versions 5.x.
Documentation
You can refer to asyncpg document here.
Installation
asyncgp is available on PyPI. Use pip to install:
$ pip install asyncgp
or:
$ git clone https://github.com/MyColorfulDays/asyncgp.git
$ cd asyncgp
$ python setup.py install
Basic Usage
import asyncio
import asyncgp as asyncpg
async def run():
conn = await asyncpg.connect(user='user', password='password', database='database', host='127.0.0.1')
values = await conn.fetch('''SELECT * FROM mytable''')
await conn.close()
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
Metadata
Release files for asyncgp 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asyncgp-0.2.2.tar.gz | 11.9 kB | Details |
Release files / asyncgp-0.2.2.tar.gz
| Download URL | asyncgp-0.2.2.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91c60f509d4942b279c40dbe2217bd09b0d02ed0eaeb248a5c17a57850e0ea25
|
|
BLAKE2b-256 checksum How to use checksums |
45a9bf55b02b7569e50c9813ad95a146e566f603285922ad6c0c2a910150ea82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
|