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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nodestream_plugin_neo4j-0.14.4.tar.gz.
File metadata
- Download URL: nodestream_plugin_neo4j-0.14.4.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c5623aa35e59446a6bf3e39e7ad1a682ddab5bdc345067caf4948671fe2c2eb
|
|
| MD5 |
a05adafdc1c7f9a5dec0685d6b2fd73f
|
|
| BLAKE2b-256 |
291eb093c5001994e56967d5eb890d5b4ccdc7ad32897be52427937669f0b558
|
Provenance
The following attestation bundles were made for nodestream_plugin_neo4j-0.14.4.tar.gz:
Publisher:
release.yaml on nodestream-proj/nodestream-plugin-neo4j
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nodestream_plugin_neo4j-0.14.4.tar.gz -
Subject digest:
4c5623aa35e59446a6bf3e39e7ad1a682ddab5bdc345067caf4948671fe2c2eb - Sigstore transparency entry: 391102653
- Sigstore integration time:
-
Permalink:
nodestream-proj/nodestream-plugin-neo4j@c226db81321db9c3daf761471deedb21157a3a0c -
Branch / Tag:
refs/tags/0.14.4 - Owner: https://github.com/nodestream-proj
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@c226db81321db9c3daf761471deedb21157a3a0c -
Trigger Event:
release
-
Statement type:
File details
Details for the file nodestream_plugin_neo4j-0.14.4-py3-none-any.whl.
File metadata
- Download URL: nodestream_plugin_neo4j-0.14.4-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
583bed9c0561025fd63aca0ef294a5dc0531a769a46c82b65a3b2731bdaac33a
|
|
| MD5 |
fa71a267cee8e9d3c4a74817a9926f05
|
|
| BLAKE2b-256 |
9a97e00ade65af1842b0f6532047d3b30623fad415ced778de38f99467c3dd58
|
Provenance
The following attestation bundles were made for nodestream_plugin_neo4j-0.14.4-py3-none-any.whl:
Publisher:
release.yaml on nodestream-proj/nodestream-plugin-neo4j
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nodestream_plugin_neo4j-0.14.4-py3-none-any.whl -
Subject digest:
583bed9c0561025fd63aca0ef294a5dc0531a769a46c82b65a3b2731bdaac33a - Sigstore transparency entry: 391102674
- Sigstore integration time:
-
Permalink:
nodestream-proj/nodestream-plugin-neo4j@c226db81321db9c3daf761471deedb21157a3a0c -
Branch / Tag:
refs/tags/0.14.4 - Owner: https://github.com/nodestream-proj
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@c226db81321db9c3daf761471deedb21157a3a0c -
Trigger Event:
release
-
Statement type: