Skip to content

rukodb/flask-ruko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Ruko

Ruko integration for Flask

Flask-Ruko is a simple Flask integration for ruko server. Connection objects are created and closed in the normal flask way.

Installation

pip install flask-ruko

Usage

from flask import Flask
from flask_ruko import RukoDB

app = Flask(__name__)
db = RukoDB(app, '0.0.0.0', 44544)

users = db['users']

@app.route('/users/<uuid>', methods=['GET'])
def get_user(uuid):
    return users.by('uuid')[uuid]()

About

Flask integration for Ruko server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages