Library prototyping based on Calibre with Flask
This repository has been archived on 2024-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2023-05-29 18:09:08 +02:00
changelog Make release entry 2020-03-01 01:52:34 +00:00
flask_calibrestekje Get CI passing 2020-03-01 01:49:43 +00:00
test Get CI passing 2020-03-01 01:49:43 +00:00
.gitignore Bootstrap flask-calibrestekje 2020-03-01 00:57:33 +00:00
.readthedocs.yml Bootstrap flask-calibrestekje 2020-03-01 00:57:33 +00:00
.travis.yml Remove docs build 2020-03-01 01:42:36 +00:00
CHANGELOG.md chore: rst -> md 2023-05-29 18:09:08 +02:00
CONTRIBUTING.md chore: rst -> md 2023-05-29 18:09:08 +02:00
LICENSE Bootstrap flask-calibrestekje 2020-03-01 00:57:33 +00:00
MANIFEST.in chore: rst -> md 2023-05-29 18:09:08 +02:00
mypy.ini Bootstrap flask-calibrestekje 2020-03-01 00:57:33 +00:00
pyproject.toml chore: rst -> md 2023-05-29 18:09:08 +02:00
README.md chore: rst -> md 2023-05-29 18:09:08 +02:00
README.rst chore: rst -> md 2023-05-29 18:09:08 +02:00
setup.cfg chore: rst -> md 2023-05-29 18:09:08 +02:00
setup.py Bootstrap flask-calibrestekje 2020-03-01 00:57:33 +00:00
tox.ini Get CI passing 2020-03-01 01:49:43 +00:00

flask-calibrestekje

Repository license PyPI package 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

Documentation