flask-graphiti

Flask extension for Graphiti
Download

flask-graphiti Ranking & Summary

Advertisement

  • Rating:
  • License:
  • AGPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Amirouche Boubekki
  • Publisher web site:
  • http://bitbucket.org/abki/

flask-graphiti Tags


flask-graphiti Description

flask-graphiti is a Flask extension that integrates the Graphiti library with Flask.Installationcli walkthrough:pip install flask-graphitiIn your project settings provide the GRAFFITI_DATABASES setting dictionnary. For instance if you database is named in Rexster 'matrix', use neo4j and kept the default port setting, you must use:GRAFFITI_DATABASES = { 'matrix': { 'url': 'http://localhost:8182/', 'db': 'neo4j', }}UsageTo declare models you must first import the flask_graphiti module, in you models.py, the remaining imports should be done against graphiti library:from flask_graphiti import graphfrom graphiti.properties import (String, Boolean, Integer)class Person(graph.matrix.Node): name = String() age = Integer() is_a_program = Boolean()class Knows(graph.matrix.Edge): passThere is nothing specific to Django Graphiti Models in terms of API so please refer to graphiti documentation.Product's homepage


flask-graphiti Related Software