Skip to main content

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:

https://community.neo4j.com/t/barebones-http-requests-much-faster-than-python-neo4j-driver-and-py2neo

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 documentation (including changelog) lives at https://neo4j-connector.readthedocs.io

Release files for neo4j-connector 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neo4j-connector 1.1.0
File Size Uploaded
neo4j-connector-1.1.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neo4j-connector 1.1.0
File Interpreter ABI Platform
neo4j_connector-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / neo4j-connector-1.1.0.tar.gz

Download URL neo4j-connector-1.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d648144911af73dfb504fea3ba54080e3660876f5af6055d4c6be9768a28f78a
BLAKE2b-256 checksum
How to use checksums
57397bd2dce2721b991fbbc1a016602881ccd0bd7f3c001e27ee63f37f482537
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

Release files / neo4j_connector-1.1.0-py3-none-any.whl

Download URL neo4j_connector-1.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47c743fa302a64e8e11b7400e7607533e18aa10a414793c2950ebd718727067b
BLAKE2b-256 checksum
How to use checksums
f7417672b5068ea4542c3e3ea7c08206d5b569536854a6bd0d16fd5f09e14365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page