Python ArangoDB support for Flask applications
Project description
Flask-Python-Arango is a python-arango support for Flask applications using ArangoDB
Installation
To install a stable version from PyPi:
~$ pip install Flask-Python-Arango
To install the latest version directly from GitHub:
~$ pip install -e git+git@github.com:zvfvrv/flask-python-arango.git@master#egg=flask-python-arango
A Simple Example
from flask import Flask, render_template
from flask_python_arango import FlaskArango
app = Flask(__name__)
app.config['ARANGODB_HOST'] = 'http://localhost:8529'
app.config['ARANGODB_DB'] = 'test'
app.config['ARANGODB_USERNAME'] = 'root'
app.config['ARANGODB_PSW'] = '12345678'
ArangoDB = FlaskArango(app)
@app.route('/')
def home_page():
# Execute an AQL query and iterate through the result cursor.
cursor = ArangoDB.connection.aql.execute('FOR doc IN nodes RETURN doc')
devices = [document for document in cursor]
return render_template('index.html', devices=devices)
Contributing
Please create an issue on GitHub.
Links
Flask Documentation: https://flask.palletsprojects.com/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for Flask-Python-Arango-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70153146b0ea77ea241c1428d9ca075e250515869914cc96e9512a4053aaa191 |
|
MD5 | 2b5341fa6142457517eead5b6922b8e6 |
|
BLAKE2b-256 | c1b5c1622486ca53477cb97397b2f459f3def4959dba1bf5e1d515af36c67f18 |
Close
Hashes for Flask_Python_Arango-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a443da550e9ea8c357c6d1e8ce4fe7c6b10494b69ecacedc00b1958f98fa9ce |
|
MD5 | 63956d600c78df7b285d23fa059baa8f |
|
BLAKE2b-256 | 0a90e4273fe70108774ebd05260bb134084471442d1e93afb812905465633d5c |