跳转到主要内容

Flask网络服务,允许hepdata-converter作为独立服务器在网络上使用

项目描述

GitHub Actions Status Coveralls Status License GitHub Releases PyPI Version GitHub Issues

hepdata-converter-ws

Python 3的简单Flask Web服务包装,用于hepdata-converter

它允许在Flask微网络框架之上运行hepdata-converter作为网络服务。

API

此网络服务提供一个接受GET JSON请求的方法。接受的格式如下

请求

[GET] /convert  (application/json)
{
input: Base64 encoded tar.gz file containing hepdata-converter-ws-data entry (directory / file)
id: str used for caching purposes (same input files have to have same ID), not implemented?
options: dictionary with options accepted by hepdata_converter.convert function. The most important are:
         input_format: (input format identifier e.g. yaml, oldhepdata, etc.)
         output_format: (output format identifier e.g. yaml, root, yoda, yoda1, csv, etc.)
         other options are dependent on the input / output format and are documented in their respective parsers / readers
         in https://github.com/HEPData/hepdata-converter
}

响应

响应的MIME类型为application/x-gzip,是一个包含请求文件/文件的hepdata-converter-ws-data目录的tar.gz文件。

API使用

建议使用hepdata-converter-ws-client库与该网络服务交互,因为它提供了更简单的调用和更透明的使用。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源分布

hepdata-converter-ws-0.3.0.tar.gz (10.8 kB 查看哈希值)

上传于

构建分布

hepdata_converter_ws-0.3.0-py3-none-any.whl (12.0 kB 查看哈希值)

上传于 Python 3

由以下支持