Skip to content

Grupo-Abraxas/eve-neo4j

Repository files navigation

Eve Neo4j extension.

https://travis-ci.org/Abraxas-Biosystems/eve-neo4j.svg?branch=master Documentation Status Updates Python 3

Eve-Neo4j is a Neo4j data layer for eve REST framework.

Features

  • Neo4j's nodes CRUD.

License

Install

$ pip install eve-neo4j

Usage

Set neo4j as your eve data layer.

import eve
from eve_neo4j import Neo4j

app = eve.Eve(data=Neo4j)
app.run()

Config

Add the following to your settings.py

GRAPH_DATABASE = 'http://localhost:7474/db/data/'
GRAPH_USER = 'neo4j'
GRAPH_PASSWORD = 'neo4j'

# TODO: Override this as a default when using Neo4j as a data layer
ITEM_URL = 'regex("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")'