Skip to content

Flask extension that provides integration with the Arango graph database.

License

Notifications You must be signed in to change notification settings

grucin/flask-arango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-Arango

A Flask extension that provides integration with the Arango graph database.

These capabilities are made possible by the library: pyArango

Installation

Using pip:

pip install flask-arango

Usage

Typical usage looks like this:

from flask import Flask

from flask_arango import Arango

# Configuration
ARANGO_URL = 'http://localhot:8529'
ARANGO_DB = 'flask'
ARANGO_GRAPH = 'my_graph'

app = Flask(__name__)
app.config.from_object(__name__)
arango = Arango(app)

@app.route('/')
def index():
    arango.gdb.createVertex('MyCollection', {'name': 'my document'})
    res = arango.db.AQLQuery(
        """
        FOR doc in MyCollection
            RETURN doc
        """,
        batchSize=1
        )
    return res[0]['name'] 

Links

About

Flask extension that provides integration with the Arango graph database.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages