Skip to main content

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-Python-Arango-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Flask_Python_Arango-0.0.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file Flask-Python-Arango-0.0.2.tar.gz.

File metadata

  • Download URL: Flask-Python-Arango-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for Flask-Python-Arango-0.0.2.tar.gz
Algorithm Hash digest
SHA256 70153146b0ea77ea241c1428d9ca075e250515869914cc96e9512a4053aaa191
MD5 2b5341fa6142457517eead5b6922b8e6
BLAKE2b-256 c1b5c1622486ca53477cb97397b2f459f3def4959dba1bf5e1d515af36c67f18

See more details on using hashes here.

File details

Details for the file Flask_Python_Arango-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Flask_Python_Arango-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for Flask_Python_Arango-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1a443da550e9ea8c357c6d1e8ce4fe7c6b10494b69ecacedc00b1958f98fa9ce
MD5 63956d600c78df7b285d23fa059baa8f
BLAKE2b-256 0a90e4273fe70108774ebd05260bb134084471442d1e93afb812905465633d5c

See more details on using hashes here.

Supported by

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