Skip to main content

Library for getting your data into HEPData

Project description

hepdata_lib

DOI PyPI version Actions Status Coverage Status Documentation Status Docker image

Library for getting your data into HEPData

This code works with Python 3.6, 3.7, 3.8, 3.9 or 3.10.

Installation

It is highly recommended you install hepdata_lib into a virtual environment.

pip install hepdata_lib

If you are not sure about your Python environment, please also see below how to use hepdata_lib in a Docker or Apptainer container.

Getting started

For using hepdata_lib, you don't even need to install it, but can use the binder or SWAN (CERN-only) services using one of the buttons below:

Binder SWAN

You can also use the Docker image:

docker run --rm -it -p 8888:8888 -v ${PWD}:/home/hepdata ghcr.io/hepdata/hepdata_lib:latest

And then point your browser to http://localhost:8888 and use the token that is printed out. The output will end up in your current working directory (${PWD}).

If you prefer a shell, instead run:

docker run --rm -it -p 8888:8888 -v ${PWD}:/home/hepdata ghcr.io/hepdata/hepdata_lib:latest bash

If on CERN LXPLUS or anywhere else where there is Apptainer available but not Docker, you can still use the docker image:

export APPTAINER_CACHEDIR="/tmp/$(whoami)/apptainer"
apptainer shell -B /afs -B /eos docker://ghcr.io/hepdata/hepdata_lib:latest bash

Unpacking the image can take a few minutes the first time you use it. Please be patient. Both EOS and AFS should be available and the output will be in your current working directory.

Further examples

There are a few more examples available that can directly be run using the binder links below or using SWAN (CERN-only, please use LCG release LCG_94 or later) and selecting the corresponding notebook manually:

External dependencies

Make sure that you have ROOT in your $PYTHONPATH and that the convert command is available by adding its location to your $PATH if needed.

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_lib-0.14.3.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

hepdata_lib-0.14.3-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file hepdata_lib-0.14.3.tar.gz.

File metadata

  • Download URL: hepdata_lib-0.14.3.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for hepdata_lib-0.14.3.tar.gz
Algorithm Hash digest
SHA256 c74ad957d3797d21c3e99f024c47cde04cbde437ec0159652d80cddab8f065c2
MD5 0cda424ce4337d58255b1065f4346f63
BLAKE2b-256 113138645e8c6c4355ef7a6b8052d4c49a2c76d574b966bf2e312087e6841daa

See more details on using hashes here.

File details

Details for the file hepdata_lib-0.14.3-py3-none-any.whl.

File metadata

  • Download URL: hepdata_lib-0.14.3-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for hepdata_lib-0.14.3-py3-none-any.whl
Algorithm Hash digest
SHA256 62d3c4da010b6be9da0ffdb57b712d7c7336443f4c93bd5f04273fa89bd5847e
MD5 e6c62769c91ba7aba524758e61d03856
BLAKE2b-256 095b1d4fb55d21b0745e3c84eb3ba0b34536a970c15030f6aca023da6f872724

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