Skip to main content

A command line interface for the high energy theory database.

Project description

HighTea cli

A quick command line interface for the database for the Events Bases Library from the Centre for Precision Studies in Particle Physics.

See A Theory-Events-Based Library of LHC Processes:

http://www.precision.hep.phy.cam.ac.uk/events-based-library/

Installation

The package is available on pip:

pip install highteacli

Basic Usage

# General help
$ highteacli --help
usage: highteacli.py [-h] {lproc,lpdf,hist} ...

A command line interface for the high energy theory database.

optional arguments:
  -h, --help         show this help message and exit

commands:
  {lproc,lpdf,hist}
    lproc            List available processes
    lpdf             List available pdfs
    hist             make and histogram


 #Help to make an histogram
 $ python highteacli.py hist --help
usage: highteacli.py hist [-h] process file

positional arguments:
  process     process to compute the histogram for
  file        JSON file with the hisogram specification

optional arguments:
  -h, --help  show this help message and exit

 $ python highteacli.py hist tests test.json
 Processing request. The token is 866dd3c269f211eaa66d0242ac120003.
 Wait for the result here or run
 highteacli token 866dd3c269f211eaa66d0242ac120003
 Token completed
 {"mean": [[[[-2.0, -1.0]], 297.7068930126204], [[[-1.0, 0.0]], -165.29122920133463], [[[0.0, 1.0]], 202.0481155648153], [[[1.0, 2.0]], 301.92919831259667]], "std": [[[[-2.0, -1.0]], 225.39857447188203], [[[-1.0, 0.0]], 305.63359250045437], [[[0.0, 1.0]], 297.698081581902], [[[1.0, 2.0]], 240.26288960758953]]}

 # Put result in res.json
 $ highteacli hist tests test.json  > res.json

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

highteacli-0.5.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

highteacli-0.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file highteacli-0.5.tar.gz.

File metadata

  • Download URL: highteacli-0.5.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for highteacli-0.5.tar.gz
Algorithm Hash digest
SHA256 81022b52332f913a4e2c134a755087862e218bebe93f206c20e61d42b949d8fb
MD5 43c375a4dbc9798ad93e6c294cb6bd47
BLAKE2b-256 d35b890f88ce9ddaedc0132acf13c3df052fd6a0ff5e737bd792fc75eacd9442

See more details on using hashes here.

File details

Details for the file highteacli-0.5-py3-none-any.whl.

File metadata

  • Download URL: highteacli-0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for highteacli-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e3a2fc35c09445c533419c993beede29203b83bad8509d52f34a5ad39a4b084e
MD5 c8fe1aafdf4b8f45b9f9f561c46efbc4
BLAKE2b-256 06550c2f0c08f0f1c3e3c7d06aa2a7501bfc2afdb1da8be23a1598ff607e8817

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