Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions docs/connect/drivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ designed with fibers and concurrency in mind.
[aiopg](https://github.com/aio-libs/aiopg)
```
```{sd-item}
For connecting to CrateDB from Python, supporting Python's `asyncio` (PEP-3156/tulip) framework.
For connecting to CrateDB from Python, supporting Python's async implementations
using the PEP-3156/tulip framework.
```
```{sd-item}
[![](https://img.shields.io/github/v/tag/aio-libs/aiopg?label=latest)](https://github.com/aio-libs/aiopg)
Expand All @@ -190,7 +191,7 @@ For connecting to CrateDB from Python, supporting Python's `asyncio` (PEP-3156/t
[asyncpg](https://github.com/MagicStack/asyncpg)
```
```{sd-item}
For connecting to CrateDB from Python, supporting Python's `asyncio`.
For connecting to CrateDB from Python, supporting Python's async implementations.
```
```{sd-item}
[![](https://img.shields.io/github/v/tag/MagicStack/asyncpg?label=latest)](https://github.com/MagicStack/asyncpg)
Expand All @@ -205,7 +206,7 @@ For connecting to CrateDB from Python, supporting Python's `asyncio`.
[psycopg3](https://www.psycopg.org/psycopg3/docs/)
```
```{sd-item}
For connecting to CrateDB from Python, supporting Python's `asyncio`.
For connecting to CrateDB from Python, supporting Python's async implementations.
```
```{sd-item}
[![](https://img.shields.io/github/v/tag/psycopg/psycopg?label=latest)](https://github.com/psycopg/psycopg)
Expand Down Expand Up @@ -325,6 +326,21 @@ For connecting to CrateDB from Python, using SQLAlchemy.
```
:::

:::{sd-row}
```{sd-item} Python
```
```{sd-item}
[CrateDB Async Python driver](https://github.com/surister/cratedb-async)
```
```{sd-item}
For connecting to CrateDB from Python, supporting Python's async implementations
by using the `httpx` HTTP client.
```
```{sd-item}
[![](https://img.shields.io/github/v/tag/surister/cratedb-async?label=latest)](https://github.com/surister/cratedb-async)
```
:::

:::{sd-row}
```{sd-item} Ruby
```
Expand Down
23 changes: 23 additions & 0 deletions docs/connect/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,29 @@ The package can be installed using ``pip install sqlalchemy-cratedb``.
for record in result.all():
print(record)

.. _cratedb-async:

cratedb-async
-------------

Asynchronous Python driver for CrateDB based on HTTPX_.
See the full documentation at https://github.com/surister/cratedb-async.
The package can be installed using ``pip install cratedb-async``.

.. _HTTPX: https://www.python-httpx.org/

.. code-block:: python

import asyncio
from cratedb_async.client import CrateClient

async def main():
crate = CrateClient("https://<name-of-your-cluster>.cratedb.net:4200")
response = await crate.query("SELECT * FROM sys.summits")
print(response.as_table())

asyncio.run(main())

.. _psycopg2:

psycopg2
Expand Down
2 changes: 1 addition & 1 deletion docs/performance/inserts/bulk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The rest of this document goes into more detail.

:ref:`Best practices: Migrating from MySQL <migrating-mysql>`

:ref:`Best practices: Migrating from MongoDB <migrating-mongodb>`
:ref:`Best practices: Migrating from MongoDB <mongodb>`


.. _bulk-configure-tables:
Expand Down