Skip to main content

puma - Plotting UMami Api

Code style: black Umami docs PyPI version DOI

codecov Testing workflow Linting workflow Pages workflow Docker build workflow

The Python package puma provides a plotting API for commonly used plots in flavour tagging.

ROC curves Histogram plots Variable vs efficiency

Installation

puma can be installed from PyPI or using the latest code from this repository.

Install latest release from PyPI

pip install puma-hep

The installation from PyPI only allows to install tagged releases, meaning you can not install the latest code from this repo using the above command. If you just want to use a stable release of puma, this is the way to go.

Install latest version from GitHub

pip install https://github.com/umami-hep/puma/archive/main.tar.gz

This will install the latest version of puma, i.e. the current version from the main branch (no matter if it is a release/tagged commit). If you plan on contributing to puma and/or want the latest version possible, this is what you want.

For development, we recommend using uv, a fast Python package installer and resolver. First, install uv:

# On macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# Or with pip (If installing from PyPI, we recommend installing uv into an isolated environment)
pip install uv

Then clone the repository and install puma with development dependencies:

git clone https://github.com/umami-hep/puma.git
cd puma
uv sync --extra dev

This will install puma in editable mode along with all development tools (testing, linting, etc.).

Docker images

The Docker images are built on GitHub and contain the latest version from the main branch.

The container registry with all available tags can be found here.

The puma:latest image is based on python:3.11.10-bullseye and is meant for users who want to use the latest version of puma. For each release, there is a corresponding tagged image. You can start an interactive shell in a container with your current working directory mounted into the container by using one of the commands provided below.

On a machine with Docker installed:

docker run -it --rm -v $PWD:/puma_container -w /puma_container gitlab-registry.cern.ch/aft/training-images/puma-images/puma:latest bash

On a machine/cluster with singularity installed:

singularity shell -B $PWD docker://gitlab-registry.cern.ch/aft/training-images/puma-images/puma:latest

The images are automatically updated via GitHub and pushed to this repository registry.

Metadata

Release files for puma-hep 0.5.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for puma-hep 0.5.6
File Size Uploaded
puma_hep-0.5.6.tar.gz 94.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for puma-hep 0.5.6
File Interpreter ABI Platform
puma_hep-0.5.6-py3-none-any.whl Python 3 none any Details

Total release size: 201.8 kB

Release files / puma_hep-0.5.6.tar.gz

Download URL puma_hep-0.5.6.tar.gz
Size 94.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8c7cc4758561d71da4b6477568e17d19d22139f2cf5cb5415d7dd0770a0817b4
BLAKE2b-256 checksum
How to use checksums
d4b09c0a0d035b6ee520c7a99afc411f117350652fdd5b197ded0a6cc33320b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / puma_hep-0.5.6-py3-none-any.whl

Download URL puma_hep-0.5.6-py3-none-any.whl
Size 106.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0505fac0be476e69ef3879613afc8effca54f7406e3dfffdda3fe60bdf6c7d0a
BLAKE2b-256 checksum
How to use checksums
f72ee230a2305be00d9882984a161332c7e84cf41fc46bc7853fe3b451f38e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.5.6 This release

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page