Skip to main content

Super light weight neo4j python driver with multi-graph support.

Project description

NeoLite

Super light weight neo4j python driver with multi-graph support.

Installation

pip install neolite

Basic Example

from neolite import Graph

graph = Graph(host, auth=(username, password), db=db)

result = graph.cypher('''
    CREATE ( bike:Bike { weight: 10 } ) 
    CREATE ( frontWheel:Wheel { spokes: 3 } ) 
    CREATE ( backWheel:Wheel { spokes: 32 } ) 
    CREATE p1 = (bike)-[:HAS { position: 1 } ]->(frontWheel) 
    CREATE p2 = (bike)-[:HAS { position: 2 } ]->(backWheel) 
    RETURN bike, p1, p2
''')
print(result)

Advanced Usage

Show execution stats

result = graph.cypher('SOME CYPHER', stat=True)

Multiple commits in at the same time

result = graph.cypher_many([
    'SOME CYPHER',
    'ANOTHER CYPHER'
])

Get table-like results instead of graph-like ones

result = graph.cypher('SOME CYPHER', ret_type='table')

Use https over http

graph = Graph(host, encrypted=True)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

neolite-0.7.3-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file neolite-0.7.3-py3-none-any.whl.

File metadata

  • Download URL: neolite-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6

File hashes

Hashes for neolite-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 21906e3ad97be2bea65d7b42a6b4c5f94d44f699fb2f7f19d56a0912e8b64dc7
MD5 f67d9a47698aa16ca7ff4c6c3073a717
BLAKE2b-256 89276a6339e75f7e572f79305fac913ed32b96b1fab39aca8fa9f8a8d0b4c612

See more details on using hashes here.

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