Skip to main content
PyCon US is happening May 14th-22nd in Pittsburgh, PA USA.  Learn more

Eve Neo4j extension.

Project description

Eve Neo4j extension.

https://img.shields.io/pypi/v/eve_neo4j.svg 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

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

# TODO: Override this as a defautl when ussing Neo4j as datalayer
ITEM_URL = 'regex("[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")'

History

0.1.4

  • Feature: Create relations.

  • Fix: dict data type on update.

  • Fix: Use internal remove method to delete old node.

  • Feature: Implement unique validation.

0.1.3

  • Support dict data type.

  • Use docker compose for testing

  • Improve remove method performance

  • Implement custom validator for Neo4j’s data types.

0.1.2

  • Parse timestamp fields from Node to datetime objects.

  • Update usage in docs.

  • Rename dict_to_node to create_node.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page