Skip to content

Conversation

amotl
Copy link
Member

@amotl amotl commented Aug 6, 2025

Copy link

coderabbitai bot commented Aug 6, 2025

Warning

Rate limit exceeded

@amotl has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 18 minutes and 14 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 0d4798a and 27d0380.

📒 Files selected for processing (2)
  • docs/connect/python.rst (1 hunks)
  • docs/performance/inserts/bulk.rst (1 hunks)

Walkthrough

Updated driver documentation: standardized wording for several Python HTTP drivers, added a new "CrateDB Async Python driver" entry, and inserted a cratedb-async usage block into Python docs (docs/connect/python.rst). No code or public API changes.

Changes

Cohort / File(s) Change Summary
Docs: HTTP driver wording updates
docs/connect/drivers.md
Standardized descriptions for Python HTTP drivers (aiopg, asyncpg, psycopg3, psycopg) replacing mentions of "Python's asyncio" with "Python's async implementations" and adjusted aiopg wording/line break.
Docs: Add CrateDB Async Python HTTP driver
docs/connect/drivers.md
Added new CrateDB Async Python driver entry (surister/cratedb-async) with description, GitHub link, and latest badge.
Docs: Insert cratedb-async usage & install
docs/connect/python.rst
Added cratedb-async section (anchor, install instruction, and async usage example) in two places: inside crate-python and sqlalchemy-cratedb sections.

Sequence Diagram(s)

(omitted — changes are documentation-only and do not modify runtime control flow)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested reviewers

  • surister
  • karynzv
  • hammerhead

Poem

I hop through docs with bytes and cheer,
A new async driver now appears here.
Install, await, query — watch it run,
CrateDB and Python, having fun.
🐇📦✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cratedb-async

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@amotl amotl requested review from hammerhead and surister August 6, 2025 22:45
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
docs/connect/drivers.md (2)

330-334: Mention asyncio for consistency with other Python driver descriptions

Other Python entries (e.g., aiopg, asyncpg) explicitly state that they “support Python’s asyncio”. Adding the same phrasing here keeps the table uniform and highlights the async nature of the driver.

-For connecting to CrateDB from Python, using httpx.
+For connecting to CrateDB from Python, supporting Python’s `asyncio` and using the `httpx` HTTP client.

336-337: Optional: Add an example-snippet badge to match neighbouring rows

Most Python rows include either an “example-snippet” or “docs-by-example” badge. If a quick-start snippet exists (or once one is added), consider linking it to keep the UX consistent across drivers.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5450da9 and cae1f8d.

📒 Files selected for processing (1)
  • docs/connect/drivers.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: the `records.database("crate://", echo=true)` connection string for cratedb works with defaults: loc...
Learnt from: amotl
PR: crate/cratedb-guide#207
File: docs/integrate/etl/iceberg-risingwave.md:205-207
Timestamp: 2025-06-05T14:29:15.512Z
Learning: The `records.Database("crate://", echo=True)` connection string for CrateDB works with defaults: localhost as host, "crate" as user, and blank password. This is valid and functional code in the records library.

Applied to files:

  • docs/connect/drivers.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build docs

@amotl amotl force-pushed the cratedb-async branch 2 times, most recently from 08a09d3 to 643566f Compare August 6, 2025 22:57
@amotl amotl marked this pull request as ready for review August 6, 2025 23:00
@amotl amotl force-pushed the cratedb-async branch 2 times, most recently from 7758740 to b4b373f Compare August 6, 2025 23:17
[CrateDB Async Python driver](https://github.com/surister/cratedb-async)
```
```{sd-item}
For connecting to CrateDB from Python, supporting Python’s `asyncio` by
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: it supports other async implementations like trio

Copy link
Member Author

@amotl amotl Aug 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Do you think the other async driver implementations are equally well supporting trio or others?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've generalized the statement with 0d4798a, thanks again.

@amotl amotl requested a review from karynzv August 7, 2025 20:04
@amotl amotl added the new content New content being added. label Aug 8, 2025
@amotl amotl changed the title Drivers: Add cratedb-async Connect/Python: Add driver cratedb-async Aug 15, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (1)
docs/connect/drivers.md (1)

336-341: Reflect multi-runtime async support and add an example link badge.

  • httpx supports multiple async event loops (e.g., asyncio, Trio), which this driver inherits; make that explicit.
  • Add an example-snippet badge linking to the new section in the Python docs for consistency with other entries.
-For connecting to CrateDB from Python, supporting Python's async implementations
-by using the `httpx` HTTP client.
+For connecting to CrateDB from Python, supporting multiple async event loops
+(e.g., asyncio, Trio) via the HTTPX client.
 [![](https://img.shields.io/github/v/tag/surister/cratedb-async?label=latest)](https://github.com/surister/cratedb-async)
+[![](https://img.shields.io/badge/example-snippet-darkcyan)](#cratedb-async)
🧹 Nitpick comments (5)
docs/connect/python.rst (2)

59-62: Clarify/capitalize HTTPX and add a link to its docs.

Small wording polish to improve accuracy and reader convenience.

-Asynchronous driver for CrateDB based on httpx.
-See the full documentation at https://github.com/surister/cratedb-async.
+Asynchronous Python driver for CrateDB based on HTTPX.
+See the full documentation at https://github.com/surister/cratedb-async.

Additionally (outside the selected range), consider adding a reference link at the end of the file:

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

65-72: Make the example runnable and consistent with earlier connection URLs.

  • The snippet defines an async function but never runs it. Add asyncio.run(main()).
  • Use the same HTTPS cloud URL pattern as used in the crate-python example for consistency.
     import asyncio
     from cratedb_async.client import CrateClient

     async def main():
-        crate = CrateClient("http://localhost:4200")
+        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())
docs/connect/drivers.md (3)

178-180: aiopg is asyncio-specific; avoid implying other async runtimes.

aiopg targets asyncio (PEP 3156). Suggest clearer wording.

-For connecting to CrateDB from Python, supporting Python's async implementations
-using the PEP-3156/tulip framework.
+For connecting to CrateDB from Python, using Python's asyncio (PEP 3156) framework.

194-195: asyncpg is asyncio-specific; tighten phrasing.

Avoid suggesting support beyond asyncio.

-For connecting to CrateDB from Python, supporting Python's async implementations.
+For connecting to CrateDB from Python, using Python's asyncio.

209-210: psycopg3 async support is asyncio-based; clarify wording.

Align phrasing with actual runtime support.

-For connecting to CrateDB from Python, supporting Python's async implementations.
+For connecting to CrateDB from Python, with asyncio-based async support.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between b4b373f and 0d4798a.

📒 Files selected for processing (2)
  • docs/connect/drivers.md (4 hunks)
  • docs/connect/python.rst (1 hunks)
🔇 Additional comments (1)
docs/connect/python.rst (1)

66-71: No changes needed: import path and API usage are correct

I’ve confirmed that:

  • from cratedb_async.client import CrateClient is the official import.
  • The query() response object does indeed include an as_table() method in the package’s examples and README.

Comment on lines 54 to 72
.. _cratedb-async:

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

Asynchronous 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``.

.. code-block:: python
import asyncio
from cratedb_async.client import CrateClient
async def main():
crate = CrateClient("http://localhost:4200")
response = await crate.query("SELECT * FROM sys.summits")
print(response.as_table())
Copy link
Member Author

@amotl amotl Aug 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@surister: I've also added the canonical code snippet from the project's README here, so it will be added to the knowledgebase outline, so LLMs can know about it, at their disposal.

@amotl amotl merged commit 0d498eb into main Aug 15, 2025
3 checks passed
@amotl amotl deleted the cratedb-async branch August 15, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new content New content being added.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants