Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> python >> python-flask-rdf
etiona  ]
[ 源代码: python-flask-rdf  ]

软件包: python-flask-rdf (0.2.0-1.1)

Flask decorator to output RDF using content negotiation (Python 2)

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.

This package works with Python versions 2.x.

其他与 python-flask-rdf 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: python
    interactive high-level object-oriented language (default version)
  • dep: python-mimeparse (>= 0.1.4)
    Parse mime-types and quality parameters - python 2.x
  • dep: python-six
    Python 2 and 3 compatibility library (Python 2 interface)

下载 python-flask-rdf

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 8.4 kB42 kB [文件列表]