Flask webservices enabling usage of hepdata-converter as a separate server over the network
Project description
hepdata-converter-ws
Simple Flask Web Services wrapper in Python 3 for hepdata-converter.
It allows running the hepdata-converter as a web service on top of the Flask micro web framework.
API
This web service provides one method which accepts GET
JSON requests.
The accepted format is as follows:
Request
[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, 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
}
Response
The response has MIME type application/x-gzip
and is a tar.gz file
containing the hepdata-converter-ws-data directory with the
requested file / files.
API Usage
It is recommended to use the hepdata-converter-ws-client library to interact with this web service, as it provides easier calling and more transparent usage.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hepdata-converter-ws-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3373b2e77b232393a71f3c76318605d61b7e580f8277334722673e2dee08039e |
|
MD5 | 565301d7554ebb86ed09a201f24d4b7a |
|
BLAKE2b-256 | ef578797914fe49880aceed3f14953fa2725b7760ed6a23bfc5aebb1ebc36346 |
Hashes for hepdata_converter_ws-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0045ca33f5fd0a6aca7e2286b53a5d5527f4c08af40d9844c1da3657a841db40 |
|
MD5 | a6c9e945a4237d683d2b3505a82ed899 |
|
BLAKE2b-256 | c451ef02f77972bd074340896adf6003c71169faad1564ce6d082c2f87d63835 |