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, yoda.h5, 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.2.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hepdata_converter_ws-0.3.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file hepdata_converter_ws-0.3.2.tar.gz.

File metadata

  • Download URL: hepdata_converter_ws-0.3.2.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for hepdata_converter_ws-0.3.2.tar.gz
Algorithm Hash digest
SHA256 1380d7065a3c9dd9933c04ea4fe1d2b3ff4520365a1ce0aba37fb93065ae65a0
MD5 eae360a14e5555d098ffc2d90ab35e86
BLAKE2b-256 b7c8e0a5269c0fc1e4dfdc27019d3c74fb67f0ef8e3f79454996dc4dbd4b8ce7

See more details on using hashes here.

Provenance

The following attestation bundles were made for hepdata_converter_ws-0.3.2.tar.gz:

Publisher: ci.yml on HEPData/hepdata-converter-ws

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for hepdata_converter_ws-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c985f1a4462a6ef4334ca1679461f04313b2644596611ce8fae4aa9bc65576ab
MD5 a081074be46909b008ceb7eeb87ad59a
BLAKE2b-256 eb9036f1ad17e6356c3bf44b4445eadde82b9cde73e0f295e97a5d80644a308d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hepdata_converter_ws-0.3.2-py3-none-any.whl:

Publisher: ci.yml on HEPData/hepdata-converter-ws

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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