A simple async package for Neo4j HTTP.
python setup.py install
All requests are async and utilize the package aiohttp so they must be executed within an ioloop.
import asyncio
import random
from neoasynchttpy.connection import Connection
conn = Connection(url='localhost', username='neo4j', password='somepassword')
async def example():
script = "CREATE (n {props}) RETURN n"
params = {
'props': {
'name': 'mark'+ str(random.random())
}
}
conn.statement(statement=script, parameters=params)
resp = await conn.query()
print(resp.results)
asyncio.get_event_loop().run_until_complete(example())