Skip to main content

This is Flask extension for integration ArangoDB using python-arango. It’s inspired by Flask-Arango, an extension for the pyArango library.

Usage

Install using pip:

pip install flask-arangodb

Example

Typical usage looks like this:

from flask import Flask

from flask_arangodb import ArangoDB

# Configuration
ARANGO_SETTINGS = {'host': 'localhost', 'port': 8529}
ARANGO_DB = 'mydatabase'

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

@app.route('/')
def index():
    # refer to python-arango for more information

    # Set up some test data to query against
    arango.db.collection('students').insert_many([
        {'_key': 'Abby', 'age': 22},
        {'_key': 'John', 'age': 18},
        {'_key': 'Mary', 'age': 21}
    ])

    # Execute the query
    cursor = db.aql.execute(
        'FOR s IN students FILTER s.age < @value RETURN s',
        bind_vars={'value': 19}
    )

    # Iterate through the result cursor
    return([student['_key'] for student in cursor])

Metadata

Release files for Flask-Arangodb 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Arangodb 1.0.4
File Size Uploaded Provenance
Flask-Arangodb-1.0.4.tar.gz 3.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-Arangodb 1.0.4
File Interpreter ABI Platform
Flask_Arangodb-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / Flask-Arangodb-1.0.4.tar.gz

Download URL Flask-Arangodb-1.0.4.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d331d5ec98ac4d92456e1a49176ee0c6149a470a18effc9b76e70ad6185a62da
BLAKE2b-256 checksum
How to use checksums
3916d3dba3a132f146c709bc33dd5d9e62ae864a4c6871aa48011e02c08de6a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Flask_Arangodb-1.0.4-py3-none-any.whl

Download URL Flask_Arangodb-1.0.4-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa1ccdeedeeebfe8028198e572896f99844b87852f0b23f14f3a2fd0975485ba
BLAKE2b-256 checksum
How to use checksums
d43cba09338321f5521410ac6ebc8e4f71f31101e9285281ca0ea0114f82ab24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Flask-Arangodb 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page