Skip to content

Commit 0d498eb

Browse files
committed
Connect/Python: Implement suggestions by CodeRabbit
1 parent 6a587b1 commit 0d498eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/connect/python.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,24 @@ The package can be installed using ``pip install sqlalchemy-cratedb``.
5656
cratedb-async
5757
-------------
5858

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

63+
.. _HTTPX: https://www.python-httpx.org/
64+
6365
.. code-block:: python
6466
6567
import asyncio
6668
from cratedb_async.client import CrateClient
6769
6870
async def main():
69-
crate = CrateClient("http://localhost:4200")
71+
crate = CrateClient("https://<name-of-your-cluster>.cratedb.net:4200")
7072
response = await crate.query("SELECT * FROM sys.summits")
7173
print(response.as_table())
7274
75+
asyncio.run(main())
76+
7377
.. _psycopg2:
7478

7579
psycopg2

0 commit comments

Comments
 (0)