Repository navigation
v6.4.0 - Feedback wanted on HTTP Query API support #1358
robsdedude
announced in
Preview Features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
HTTP Query API support
In version 6.4.0 we're introducing support for the HTTP Query API of neo4j to the driver: https://neo4j.com/docs/query-api/current/
Getting Started
Dependencies
This feature relies on 3rd party HTTP libraries (
aiohttpfor the async driver andurllib3for the sync driver). In order to not cause anImportErrorwhen using the feature, install thehttpextra of the driver (pip install neo4j[http]==x.y.zinstead ofpip install neo4j==x.y.zor similar depending on the used package manager).Configuration
This feature is designed to have the minimal possible impact on the driver API. All that is needed is to configure the driver with an
httporhttpsURI, e.g.,Limitations
While the driver tries to abstract away as many implementation details as possible to provide a uniform API over both bolt and query API, the HTTP Query API does not have feature parity with bolt. Some of these gaps are expected to be closed in the future while others are by design and will likely remain.
At the time of writing, these are:
Therefore, an explicit database name must be provided for every transaction (e.g.,
driver.execute_query(..., _database="myDb"), ordriver.session(database="myDb")).basic(withoutrealm) andbearerare supported.neo4j.ResultSummary.server.protocol_info) might be missing or inaccurate.UnsupportedTypetype, andUUIDs cannot be exchanged with the DBMS.fetch_sizehas no effect, there is no backpressure mechanism.notifications_min_severity,notifications_disabled_categories,notifications_disabled_classifications) have no effect.Additional Information
An up-to-date list of the above information as well as on this feature's interaction with other driver configuration options can be found in the API docs: https://neo4j.com/docs/api/python-driver/current/api.html#httpdriver
Feedback wanted
This new API is currently marked as preview. What it means is that we are eagerly waiting for your feedback. Does it work well in your scenario? Do you wish there was more?
Let us know so we can correct course in the next releases!
All reactions