Flask-Aerospike
Overview
Flask-Aerospike is a Flask extension that provides integration with the Aerospike database. It simplifies the process of connecting to and interacting with Aerospike from your Flask applications.
Installation
You can install Flask-Aerospike using pip:
pip install flask-aerospike
Usage
Here is a simple example of how to use Flask-Aerospike in your Flask application:
import aerospike
from flask import Flask
from flask_aerospike import FlaskAerospike
app = Flask(__name__)
app.config['FLASK_AEROSPIKE_CLIENT'] = aerospike.client({'hosts': [('127.0.0.1', 3000)]}).connect()
ap = FlaskAerospike(app)
@app.route('/')
def index():
client = ap.connection
# Your Aerospike operations here
return 'Hello, Aerospike!'
if __name__ == '__main__':
app.run()
Configuration
You can configure Flask-Aerospike using the following configuration variables:
FLASK_AEROSPIKE_CLIENT: A list of tuples containing the host and port of your Aerospike nodes.SESSION_AEROSPIKE_NAMESPACE: The namespace to use in Aerospike.SESSION_AEROSPIKE_BIND_KEY: The set to use in Aerospike.
Documentation
The full documentation is available at Read the Docs.
Contributing
Contributions are welcome! Please read the contributing guidelines for more information.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Credits
This project is maintained by:
- Ido Shraga
See the AUTHORS.md file for a full list of contributors.
Metadata
Release files for flask-aerospike 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_aerospike-0.0.1.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_aerospike-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / flask_aerospike-0.0.1.tar.gz
| Download URL | flask_aerospike-0.0.1.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6e5086147b6b1656b7067d7a258ac53598beee5a3ec98e65505f9278aa784f5
|
|
BLAKE2b-256 checksum How to use checksums |
918512970c0ffa882584aae0182021a876324fd79b0ad2846c530378a978053a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / flask_aerospike-0.0.1-py3-none-any.whl
| Download URL | flask_aerospike-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf113f8f4a14334431d984bdfbd5a94340bd4db305f2ec911cc3a2ffe5271281
|
|
BLAKE2b-256 checksum How to use checksums |
c4f93c1afbcad8ef39d69f088bbc852c27c7ee669df3812405ba94b33d8ea09b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|