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.
|
3 years ago | |
---|---|---|
changelog | 3 years ago | |
flask_calibrestekje | 3 years ago | |
test | 3 years ago | |
.gitignore | 3 years ago | |
.readthedocs.yml | 3 years ago | |
.travis.yml | 3 years ago | |
CHANGELOG.rst | 3 years ago | |
CODE_OF_CONDUCT.rst | 3 years ago | |
CONTRIBUTING.rst | 3 years ago | |
LICENSE | 3 years ago | |
MANIFEST.in | 3 years ago | |
README.rst | 3 years ago | |
mypy.ini | 3 years ago | |
pyproject.toml | 3 years ago | |
setup.cfg | 3 years ago | |
setup.py | 3 years ago | |
tox.ini | 3 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/