Connector with single-request transactions for Neo4j 3.0 and above
Project description
This library contains everything you need to execute single-request transactions for Neo4j 3.0 and above through its HTTP API.
Background
Research into the speed of performing ETL and batch-type actions on Neo4j showed that using a large, single-request transaction POST-request through Neo4j’s HTTP API outperforms other currently available libraries for this use-case (e.g. the official ‘neo4j-driver’ and ‘py2neo’). The goal of this connector is to provide convenience methods and classes that abstract away the boilerplate communication code.
- Community thread about the difference in performance between drivers:
Example
import neo4j
connector = neo4j.Connector('http://localhost:7474', ('neo4j','neo4j'))
response = connector.run("""MATCH () RETURN COUNT(*) as node_count""")
first_row = response[0]
print(first_row['node_count'])
Installation
To install the latest stable version, use:
pip install neo4j-connector
Github
This library lives at https://github.com/textkernel/neo4j-connector. Suggestions, bug-reports and pull requests are welcome there.
Documentation
The full API documentation lives at https://neo4j-connector.readthedocs.io
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for neo4j_connector-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5696120af13505dd1790811625846c2f00b70d4e5523b1b4b33cfe84f27525ef |
|
MD5 | 571d7362547be27c8260ae51215c803b |
|
BLAKE2b-256 | f458c9c26a2d935e7b6c36236831605cdf3f9e342cf30191fe0cb124340e0cec |