Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

An asyncio Greenplum driver

Project description

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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
asyncgp-0.2.2.tar.gz (11.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page