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
2 years ago
changelog Make release entry 2 years ago
flask_calibrestekje Get CI passing 2 years ago
test Get CI passing 2 years ago
.gitignore Bootstrap flask-calibrestekje 2 years ago
.readthedocs.yml Bootstrap flask-calibrestekje 2 years ago
.travis.yml Remove docs build 2 years ago
CHANGELOG.rst Make release entry 2 years ago
CODE_OF_CONDUCT.rst Bootstrap flask-calibrestekje 2 years ago
CONTRIBUTING.rst Bootstrap flask-calibrestekje 2 years ago
LICENSE Bootstrap flask-calibrestekje 2 years ago
MANIFEST.in Bootstrap flask-calibrestekje 2 years ago
README.rst Add headers 2 years ago
mypy.ini Bootstrap flask-calibrestekje 2 years ago
pyproject.toml Get CI passing 2 years ago
setup.cfg Add dependencies 2 years ago
setup.py Bootstrap flask-calibrestekje 2 years ago
tox.ini Get CI passing 2 years ago

README.rst

.. _header:

*******************
flask-calibrestekje
*******************

.. image:: https://img.shields.io/badge/license-GPL-brightgreen.svg
:target: LICENSE
:alt: Repository license

.. image:: https://badge.fury.io/py/flask-calibrestekje.svg
:target: https://badge.fury.io/py/flask-calibrestekje
:alt: PyPI package

.. image:: https://travis-ci.com/decentral1se/flask-calibrestekje.svg?branch=master
:target: https://travis-ci.com/decentral1se/flask-calibrestekje
:alt: Travis CI result

.. image:: https://readthedocs.org/projects/calibrestekje/badge/?version=latest
:target: https://calibrestekje.readthedocs.io/en/latest/
:alt: Documentation status

.. image:: http://img.shields.io/liberapay/patrons/decentral1se.svg?logo=liberapay
:target: https://liberapay.com/decentral1se
:alt: Support badge

.. _introduction:

Library prototyping based on Calibre with Flask
-----------------------------------------------

.. _example:

Example
*******

app.cfg
=======

.. code-block:: cfg

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

app.py
======

.. code-block:: python

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
============

.. code-block:: bash

$ export FLASK_APP=app.py
$ flask run

.. _documentation:

Documentation
*************

* https://calibrestekje.readthedocs.io/

Mirroring
*********

* `hack.decentral1.se/decentral1se/flask-calibrestekje`_

.. _hack.decentral1.se/decentral1se/flask-calibrestekje: https://hack.decentral1.se/decentral1se/flask-calibrestekje/