asyncpgx-1.5.0
توضیحات
User-friendly extensions for asyncpg
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | asyncpgx-1.5.0 |
| نام | asyncpgx |
| نسخه کتابخانه | 1.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vladislav Laukhin |
| ایمیل نویسنده | laukhin97@gmail.com |
| آدرس صفحه اصلی | https://github.com/laukhin/asyncpgx |
| آدرس اینترنتی | https://pypi.org/project/asyncpgx/ |
| مجوز | Apache-2.0 |
# asyncpgx
[](https://github.com/laukhin/asyncpgx/actions?query=workflow%3ACI)
[](https://codecov.io/gh/laukhin/asyncpgx)
[](https://pypi.org/project/asyncpgx/)
Extensions for asyncpg.
Based on the [asyncpg](https://github.com/MagicStack/asyncpg) and highly inspired by the [sqlx](https://github.com/jmoiron/sqlx) package
This package supports 3.6+ python versions
## Setup
Use `pip install asyncpgx`
## Purpose
This is a thin wrapper on the `asyncpg` package.
Our purpose is to provide convenient extensions to the original package.
We're trying to delegate as much work as we can to the asyncpg (basically our extension methods are high-level proxies to the underlying ones)
and make only converting job.
Original asyncpg API stays the same, you can see it in the [asyncpg documentation](https://magicstack.github.io/asyncpg/current/).
## Functionality
* queries with named parameters, i.e.
```python
import asyncpgx
connection = await asyncpgx.connect('postgresql://127.0.0.1:5432')
await connection.named_fetch('''SELECT field FROM some_table WHERE id <= :id;''', {'id': 1})
```
* prepared statements with named parameters, i.e.
```python
import asyncpgx
connection = await asyncpgx.connect('postgresql://127.0.0.1:5432')
prepared_statement = await connection.named_prepare('''SELECT field FROM some_table WHERE id <= :id;''')
await prepared_statement.named_fetch({'id': 1})
```
## Documentation
You can find project documentation [here](https://laukhin.github.io/asyncpgx/index.html)
## Changelog
You can find all releases description [here](https://github.com/laukhin/asyncpgx/releases)
نیازمندی
| مقدار | نام |
|---|---|
| >=0.21,<0.28 | asyncpg |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.2,<3.12 | Python |
نحوه نصب
نصب پکیج whl asyncpgx-1.5.0:
pip install asyncpgx-1.5.0.whl
نصب پکیج tar.gz asyncpgx-1.5.0:
pip install asyncpgx-1.5.0.tar.gz