asyncgp-0.2.2
توضیحات
An asyncio Greenplum driver
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | asyncgp-0.2.2 |
| نام | asyncgp |
| نسخه کتابخانه | 0.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | MyColorfulDays |
| ایمیل نویسنده | my_colorful_days@163.com |
| آدرس صفحه اصلی | https://github.com/MyColorfulDays/asyncgp.git |
| آدرس اینترنتی | https://pypi.org/project/asyncgp/ |
| مجوز | Apache License, Version 2.0 |
# 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())
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5.0 | Python |
نحوه نصب
نصب پکیج whl asyncgp-0.2.2:
pip install asyncgp-0.2.2.whl
نصب پکیج tar.gz asyncgp-0.2.2:
pip install asyncgp-0.2.2.tar.gz