Skip to main content

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

Project description

Travis 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, 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.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

hepdata_converter_ws-0.2.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hepdata-converter-ws-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0

File hashes

Hashes for hepdata-converter-ws-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3373b2e77b232393a71f3c76318605d61b7e580f8277334722673e2dee08039e
MD5 565301d7554ebb86ed09a201f24d4b7a
BLAKE2b-256 ef578797914fe49880aceed3f14953fa2725b7760ed6a23bfc5aebb1ebc36346

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hepdata_converter_ws-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.0

File hashes

Hashes for hepdata_converter_ws-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0045ca33f5fd0a6aca7e2286b53a5d5527f4c08af40d9844c1da3657a841db40
MD5 a6c9e945a4237d683d2b3505a82ed899
BLAKE2b-256 c451ef02f77972bd074340896adf6003c71169faad1564ce6d082c2f87d63835

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