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
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
neolite-0.7.4.tar.gz
(2.5 kB
view details)
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 neolite-0.7.4.tar.gz.
File metadata
- Download URL: neolite-0.7.4.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d502cc7140441f7874f033c7bd55b024a395f02f8b2c7563528300b034d8a63
|
|
| MD5 |
e9e5188e9f542e9bc623d65c660f15d2
|
|
| BLAKE2b-256 |
6fbca49cdaa8ef08ba68bb6b9f4e36e31ebf1b83cb761f7f29aa3a0644c0baeb
|
File details
Details for the file neolite-0.7.4-py3-none-any.whl.
File metadata
- Download URL: neolite-0.7.4-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6333df3532c02853a649b3819e47fcac2f73ba2190fb10c0978002692cac7e82
|
|
| MD5 |
2634293ae5ff9ae3c5da3b270bba2bb7
|
|
| BLAKE2b-256 |
65daa68b6a63fa779cf1a2c8c84a1377fa820eab02f701315aa75b794f0eb50c
|