Skip to main content

Flask webservices enabling usage of hepdata-converter as a separate server over the network

Project description

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

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, 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
}

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hepdata-converter-ws-0.3.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

hepdata_converter_ws-0.3.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file hepdata-converter-ws-0.3.0.tar.gz.

File metadata

  • Download URL: hepdata-converter-ws-0.3.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hepdata-converter-ws-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3f093e9f504cdffd2b11fcad8984f1a5bb1ed38be4898373acee6b8971a8ca92
MD5 5f39ec21fd65ade93f3d55ee743003a7
BLAKE2b-256 72c857ffd52a237fb432a81d3b21a4ce1a79aa16363b8dd5a7000c8327b3efdd

See more details on using hashes here.

File details

Details for the file hepdata_converter_ws-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hepdata_converter_ws-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2194d3739895ea81800403110d64db2a85e37c855b22bb017318228bfe891822
MD5 8fe79eeadc24e63d220cc87e8c96ebf2
BLAKE2b-256 e3f325346defcc3b4370b3018f96868bb0fcca869f97fb27c7bf8f9ff3b8efcd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page