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.

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 Distribution

neolite-0.7.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file neolite-0.7.2.tar.gz.

File metadata

  • Download URL: neolite-0.7.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for neolite-0.7.2.tar.gz
Algorithm Hash digest
SHA256 2cb681a15d59e2dac3d2386ff286eb201a9ef33b7c365436e9f24604c41e6c94
MD5 839fa27a11b183826695ccd89b1ef96c
BLAKE2b-256 fefb6010939a50f87d9601f25c5cfda948e19902d8f40ba472e77cbb3f9343e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neolite-0.7.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 676e925a07f13d08323c33dc1b87199bba3d17fa6c6ab82d023f34fa458e644c
MD5 0c8e162fe4506b10d1e2ea87df1b8ca9
BLAKE2b-256 b971d7c2f751d3b5a31e77bc7b624e070cd62384e1fe19b9856a515e4ace5d27

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