Skip to main content

No project description provided

Project description

Neo4j Nodestream Plugin for Nodestream

This plugin provides a Nodestream interface to Neo4j.

Installation

pip install nodestream-plugin-neo4j

Usage

# nodestream.yaml
targets:
  neo4j:
    database: neo4j
    uri: bolt://localhost:7687
    username: neo4j
    password: neo4j
    database_name: neo4j # optional; name of the database to use.
    use_enterprise_features: false # optional; use enterprise features (e.g. node key constraints)

Extractor

The Neo4jExtractor class represents an extractor that reads records from a Neo4j database. It takes a single Cypher query as input and yields the records read from the database. The extractor will automatically paginate through the database until it reaches the end. Therefore, the query needs to include a SKIP and LIMIT clause. For example:

- implementation: nodestream_plugin_neo4j.extractor:Neo4jExtractor
  arguments:
    query: MATCH (p:Person) WHERE p.name = $name RETURN p.name SKIP $offset LIMIT $limit
    uri: bolt://localhost:7687
    username: neo4j
    password: neo4j
    database_name: my_database # Optional; defaults to neo4j
    limit: 100000 # Optional; defaults to 100
    parameters:
      # Optional; defaults to {}
      # Any parameters to be passed to the query
      # For example, if you want to pass a parameter called "name" with the value "John Doe", you would do this:
      name: John Doe

The extractor will automatically add the SKIP and LIMIT clauses to the query. The extractor will also automatically add the offset and limit parameters to the query. The extractor will start with offset set to 0 and limit set to 100 (unless overridden by setting limit) The extractor will continue to paginate through the database until the query returns no results.

Concepts

Migrations

The plugin supports migrations. Migrations are used to create indexes and constraints on the database.

As part of the migration process, the plugin will create __NodestreamMigration__ nodes in the database. This node will have a name property that is set to the name of the migration.

Additionally, the plugin will create a __NodestreamMigrationLock__ node in the database. This node will be exit when the migration process is running and will be deleted when the migration process is complete. This is used to prevent multiple migration processes from running at the same time.

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

nodestream_plugin_neo4j-0.15.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

nodestream_plugin_neo4j-0.15.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file nodestream_plugin_neo4j-0.15.1.tar.gz.

File metadata

  • Download URL: nodestream_plugin_neo4j-0.15.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nodestream_plugin_neo4j-0.15.1.tar.gz
Algorithm Hash digest
SHA256 8c6857341a2fa02c458e18b9f10bc7db6849e50037f695d29da3cdf4ff349994
MD5 bb1f65cf542ea7b19be5d8ee8a969355
BLAKE2b-256 219238b3ab81fde05d224376729e13b0becdb64cb579e6897bad78c9483c71d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for nodestream_plugin_neo4j-0.15.1.tar.gz:

Publisher: release.yaml on nodestream-proj/nodestream-plugin-neo4j

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nodestream_plugin_neo4j-0.15.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nodestream_plugin_neo4j-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5af6c8fe3d47287c61204f40cb6b6a93b174db29a6e7e2a26a3000fbb32277f
MD5 8754d0e628266eb1cb6dfcb027d01536
BLAKE2b-256 c9ed3447d355be4ac55c51a873fb6fea4ce622e1516422c3d8e0d894a7129148

See more details on using hashes here.

Provenance

The following attestation bundles were made for nodestream_plugin_neo4j-0.15.1-py3-none-any.whl:

Publisher: release.yaml on nodestream-proj/nodestream-plugin-neo4j

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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