piercedr opened a new pull request, #2215: URL: https://github.com/apache/age/pull/2215
This commit introduces a new Python driver for Apache AGE that uses `asyncpg` for asynchronous database communication. This driver is a complete, feature-rich alternative to the existing `psycopg`-based driver. The new driver is located in the `drivers/python-asyncpg` directory and includes: - A core driver module (`age/age.py`) that provides an async API for connecting to AGE and executing Cypher queries. - Robust parsing of the `agtype` data type using an ANTLR-based parser. - Data models for `Vertex`, `Edge`, and `Path`. - Integration with the `networkx` library for graph data interchange. - A comprehensive test suite based on `pytest` and `pytest-asyncio`. - Updated documentation (`README.md`) and a `setup.py` for packaging. The driver has been designed to be fully asynchronous, leveraging `asyncio` and `asyncpg` for high performance. It also addresses security concerns by validating graph names to prevent SQL injection. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
