Library prototyping based on Calibre with Flask
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luke Murphy 0d14c01d0e
Add headers
4 weeks ago
changelog Make release entry 1 month ago
flask_calibrestekje Get CI passing 1 month ago
test Get CI passing 1 month ago
.gitignore Bootstrap flask-calibrestekje 1 month ago
.readthedocs.yml Bootstrap flask-calibrestekje 1 month ago
.travis.yml Remove docs build 1 month ago
CHANGELOG.rst Make release entry 1 month ago
CODE_OF_CONDUCT.rst Bootstrap flask-calibrestekje 1 month ago
CONTRIBUTING.rst Bootstrap flask-calibrestekje 1 month ago
LICENSE Bootstrap flask-calibrestekje 1 month ago
MANIFEST.in Bootstrap flask-calibrestekje 1 month ago
README.rst Add headers 4 weeks ago
mypy.ini Bootstrap flask-calibrestekje 1 month ago
pyproject.toml Get CI passing 1 month ago
setup.cfg Add dependencies 1 month ago
setup.py Bootstrap flask-calibrestekje 1 month ago
tox.ini Get CI passing 1 month ago

README.rst

flask-calibrestekje

Travis CI result Documentation status Support badge

Library prototyping based on Calibre with Flask

Example

app.cfg

CALIBRESTEKJE_SQLITE_URL = "sqlite:///mymetadata.db"

app.py

from calibrestekje import Book
from flask import Flask, jsonify

from flask_calibrestekje import CalibreStekje

app = Flask(__name__)
app.config.from_pyfile("app.cfg")
db = CalibreStekje(app)

@app.route("/")
def home():
    return jsonify({"book-count": db.session.query(Book).count()})

command-line

$ export FLASK_APP=app.py
$ flask run