Skip to content

QuaererePlatform/Flask-arango-orm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Flask-arango-orm is used to connect to an ArangoDB instance using arango-orm as an object model layer to your Flask app. ArangoDB is a hybrid database that can provide a document, graph, and relational mode which can be taken advantage of using arango-orm.

Installation

Using pip:

pip install Flask-arango-orm

Or using setup.py:

python setup.py install

Tests can be ran using:

python setup.py test

Documentation can be generated using:

python setup.py build_sphinx

Usage

This extension for the Flask framework uses arango-orm to provide an Object Model to use within the Flask application.

from flask import Flask
from flask_arango_orm import ArangoORM

app = Flask(__name__)
arango = ArangoORM(app)

@app.route('/route')
def some_route():
   db_conn = arango.connection