Flask网络服务,允许hepdata-converter作为独立服务器在网络上使用
项目描述
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.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 3f093e9f504cdffd2b11fcad8984f1a5bb1ed38be4898373acee6b8971a8ca92 |
|
MD5 | 5f39ec21fd65ade93f3d55ee743003a7 |
|
BLAKE2b-256 | 72c857ffd52a237fb432a81d3b21a4ce1a79aa16363b8dd5a7000c8327b3efdd |
关闭
hepdata_converter_ws-0.3.0-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 2194d3739895ea81800403110d64db2a85e37c855b22bb017318228bfe891822 |
|
MD5 | 8fe79eeadc24e63d220cc87e8c96ebf2 |
|
BLAKE2b-256 | e3f325346defcc3b4370b3018f96868bb0fcca869f97fb27c7bf8f9ff3b8efcd |