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](https://magicstack.github.io/asyncpg/current/>`).
## Installation
asyncgp is available on PyPI.
Use pip to install:
```shell
$ pip install asyncgp
```
or:
```shell
$ git clone https://github.com/MyColorfulDays/asyncgp.git
$ cd asyncgp
$ python setup.py install
```
## Basic Usage
```python3
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())
```
**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](https://magicstack.github.io/asyncpg/current/>`).
## Installation
asyncgp is available on PyPI.
Use pip to install:
```shell
$ pip install asyncgp
```
or:
```shell
$ git clone https://github.com/MyColorfulDays/asyncgp.git
$ cd asyncgp
$ python setup.py install
```
## Basic Usage
```python3
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
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
asyncgp-0.2.tar.gz
(1.8 kB
view details)
File details
Details for the file asyncgp-0.2.tar.gz.
File metadata
- Download URL: asyncgp-0.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cab8d565c35bd826e69b991112582da46b8cb588ad4f06dc656d6fab71dc10b2
|
|
| MD5 |
39e462b343a4c0a6c0436bf80f3916cb
|
|
| BLAKE2b-256 |
7a0b3461497bbbaa40b4bf9324933216b6cfa391e25487c157fdfe6d0775643a
|