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 2, not yet 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
File details
Details for the file hepdata-converter-ws-0.1.7.tar.gz
.
File metadata
- Download URL: hepdata-converter-ws-0.1.7.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b58dfb4f8d8c14548dc7cc56b84dc8ea2c7c4bde7265c36bf5b89348fc0238c |
|
MD5 | d95920f266652c8ba825044a3f3ddf96 |
|
BLAKE2b-256 | 89b24093c3754aa85df013c04da3dc8f4b29795ba746a1c9a8d47434b59ced65 |
File details
Details for the file hepdata_converter_ws-0.1.7-py2-none-any.whl
.
File metadata
- Download URL: hepdata_converter_ws-0.1.7-py2-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72606f9c4e7400386d73a8b15dfceeedbc83271a0854c602f6dd85c82cbf5fcc |
|
MD5 | 428a68a65f5fe3d3af97e08a9e9de443 |
|
BLAKE2b-256 | 54026e69587739a5382a377ca4212639f55e2af4fe8c58caab85c00698524d38 |