Skip to main content

A simple neo4j api driver

Project description

Neo4jApi

A simple Neo4j api driver.

Usage

  • select node/relation from neo4j:
with Neo4jApi() as dbi:
    res = (dbi.select_by_nodes(
        Node('ds', labels='DATASET', datasource_id=1)
        .relationship(Relation('rel'), Node('sj', labels='SUB_DATAJOB')),
        ds__id=1, ds__name=(['kafka', 'elastisearch'], 'IN')))
  • start a transaction:
with Neo4jApi() as dbi:
    with dbi.start_transaction() as _t:
        dbi.insert(Node(labels='DATASOURCE', **data_source), t=_t)

Project details


Download files

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

Files for neo4japi, version 1.1.3
Filename, size File type Python version Upload date Hashes
Filename, size neo4japi-1.1.3.tar.gz (9.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page