[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#803111: ITP: python-flask-rdf -- Flask decorator to output RDF using content negotiation

Package: wnpp
Severity: wishlist
Owner: "Iain R. Learmonth" <irl@debian.org>

* Package name    : python-flask-rdf
  Version         : 0.1.7
  Upstream Author : Walter Huf
* URL             : https://pypi.python.org/pypi/flask_rdf/0.1.7
* License         : BSD-2-clause
  Programming Lang: Python
  Description     : Flask decorator to output RDF using content negotiation

Apply the @flask_rdf decorator to a view function and return an rdflib
Graph object. Flask_rdf will automatically format it into an RDF output
format, depending on what the request’s Accept header says. If the view
function returns something besides an rdflib graph, it will be passed
through without modification.

Custom formats can be registered easily. After registering the new
serializer with rdflib’s plugin support, use the decide_format method to
register a new mimetype request to use the new formatter.

Reply to: