Skip to main content

xgt_connector Package

CI Available on Pypi Pypi Versions License

This Python package is for connecting the Rocketgraph xGT graph analytics engine to other applications. Rocketgraph xGT can significantly speedup Neo4j queries.

The default connector provided is for Neo4j or AuraDB. The package also provides an optional ODBC connector for connecting to databases or applications that support ODBC. Information about the ODBC connector can be found in the documentation.

Homepage: rocketgraph.com
Documentation: rocketgraphai.github.io/xgt_connector
General Help: github.com/rocketgraphai/xgt_connector/discussions

Requirements

Installation

You can install this python package by executing this command:

python -m pip install xgt_connector

If you want to use the ODBC connector, you can install the optional dependencies like so:

python -m pip install 'xgt_connector[odbc]'

If you don't have Rocketgraph xGT, you can install and run the Developer version from Docker:

docker pull rocketgraph/xgt
docker run --publish=4367:4367 rocketgraph/xgt

Using the xgt_connector

From any Python environment, simply importing both xgt and xgt_connector is all that is needed to operate this connector.

A simple example below shows connecting to Neo4j and xGT, transferring the whole graph database to xGT, running a query in xGT, and printing the results:

import xgt
from xgt_connector import Neo4jConnector, Neo4jDriver

# Connect to xGT and Neo4j.
xgt_server = xgt.Connection()
xgt_server.set_default_namespace('neo4j')
neo4j_server = Neo4jDriver(auth=('neo4j', 'foo'))
conn = Neo4jConnector(xgt_server, neo4j_server)

# Transfer the whole graph.
conn.transfer_to_xgt()

# Run the query.
query = "match(a:foo) return a"
job = xgt_server.run_job(query)

# Print results.
print("Results: ")
for row in job.get_data():
    print(row)

API

The available properties are:

  • neo4j_relationship_types
  • neo4j_node_labels
  • neo4j_property_keys
  • neo4j_node_type_properties
  • neo4j_rel_type_properties
  • neo4j_nodes
  • neo4j_edges

The available methods are:

  • get_xgt_schemas
  • create_xgt_schemas
  • copy_data_to_xgt
  • transfer_to_xgt
  • transfer_to_neo4j

Examples

Some examples can be found here:

Download files

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

Source Distribution

xgt_connector-2.6.7.tar.gz (101.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xgt_connector-2.6.7-py3-none-any.whl (95.5 kB view details)

Uploaded Python 3

File details

Details for the file xgt_connector-2.6.7.tar.gz.

File metadata

  • Download URL: xgt_connector-2.6.7.tar.gz
  • Upload date:
  • Size: 101.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for xgt_connector-2.6.7.tar.gz
Algorithm Hash digest
SHA256 f54bc09922562596f5ee949781c96d4af166382d01295fe4435f3800e5b77624
MD5 3515dcafaa83b3d59f286df6b16743c9
BLAKE2b-256 bcaa89524fa59d221ede2ec0c8644c99d08d010adc066cec33681b0a95cf99fa

See more details on using hashes here.

File details

Details for the file xgt_connector-2.6.7-py3-none-any.whl.

File metadata

  • Download URL: xgt_connector-2.6.7-py3-none-any.whl
  • Upload date:
  • Size: 95.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for xgt_connector-2.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b983e3d41bd038ed4cb225528a30de8e93edd825892e39e0692d60e56f6653e4
MD5 207e7b2d6f99d8e6d66ef16cee6d6803
BLAKE2b-256 934bd27687ce56e95676868f59c6979ceab70f3d08608b440691bef018f875dd

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.0

2 files

This release

2.6.7 This release

2 files

2.6.6

2 files

2.6.5.post1

2 files

2.6.5

2 files

2.6.4

2 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