Skip to main content

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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neo4j-connector-1.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

neo4j_connector-1.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file neo4j-connector-1.1.0.tar.gz.

File metadata

  • Download URL: neo4j-connector-1.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for neo4j-connector-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d648144911af73dfb504fea3ba54080e3660876f5af6055d4c6be9768a28f78a
MD5 95a755548c9d1655ffc0de0c93d327e3
BLAKE2b-256 57397bd2dce2721b991fbbc1a016602881ccd0bd7f3c001e27ee63f37f482537

See more details on using hashes here.

File details

Details for the file neo4j_connector-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: neo4j_connector-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for neo4j_connector-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47c743fa302a64e8e11b7400e7607533e18aa10a414793c2950ebd718727067b
MD5 63c56b4ebba6245ae6d9351f152d9973
BLAKE2b-256 f7417672b5068ea4542c3e3ea7c08206d5b569536854a6bd0d16fd5f09e14365

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page