Skip to main content

CLIPPy - Command Line Interface Plus Python

╭────────────────────────────────────╮
│ It looks like you want to use HPC. │ 
│ Would you like help with that?     │
╰────────────────────────────────────╯
 ╲
  ╲
   ╭──╮  
   ⊙ ⊙│╭
   ││ ││
   │╰─╯│
   ╰───╯

Overview

Clippy (CLI + PYthon) is a Python language interface to HPC resources. Precompiled binaries that execute on HPC systems are exposed as methods to a dynamically-created Clippy Python object, where they present a familiar interface to researchers, data scientists, and others. Clippy allows these users to interact with HPC resources in an easy, straightforward environment – at the REPL, for example, or within a notebook – without the need to learn complex HPC behavior and arcane job submission commands.

Installation of Python Code

There are three ways to use the Python code:

  1. Install from PyPI:
$ pip install llnl-clippy
  1. Install from the cloned repository:
$ cd py/src && pip install .
  1. Via PYTHONPATH (see below)

Building C++ Examples

$ cd cpp && mkdir build && cd build
$ cmake ..
$ make

Running Current C++ Examples (after building)

From the repository root (using PYTHONPATH):

$ PYTHONPATH=py/src:$PYTHONPATH CLIPPY_BACKEND_PATH=$(pwd)/cpp/build/examples ipython

In [1]: from clippy import ExampleBag

In [2]: b = ExampleBag()

In [3]: b.insert(5).insert(6).insert(7)    # can chain methods
Out[3]: <clippy.backends.fs.ExampleBag at 0x107d50830>

In [4]: b.insert(5).insert(8)
Out[4]: <clippy.backends.fs.ExampleBag at 0x107d50830>

In [5]: b.size()
Out[5]: 5

In [6]: b.remove_if(b.value > 6)  # removes 2 elements
Out[6]: <clippy.backends.fs.ExampleBag at 0x107d50830>

In [7]: b.size()
Out[7]: 3

Authors

  • Seth Bromberger (seth at llnl dot gov)
  • Roger Pearce (rpearce at llnl dot gov)

License

CLIPPy is distributed under the MIT license.

See LICENSE-MIT, NOTICE, and COPYRIGHT for details.

SPDX-License-Identifier: MIT

Release

LLNL-CODE-818157

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llnl_clippy-0.5.7.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

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

llnl_clippy-0.5.7-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file llnl_clippy-0.5.7.tar.gz.

File metadata

  • Download URL: llnl_clippy-0.5.7.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for llnl_clippy-0.5.7.tar.gz
Algorithm Hash digest
SHA256 c63ee000f91ce231fb69c1bd7a6054c24ed866a4278e96d68e85da2040e41627
MD5 9872b31eee5c4fc037c0f018e658cc5b
BLAKE2b-256 172f327b33d750c3e11c20bad63b20a8dd7cda5f2857347dd08ad5013f87576f

See more details on using hashes here.

Provenance

The following attestation bundles were made for llnl_clippy-0.5.7.tar.gz:

Publisher: publish.yml on llnl/clippy

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

File details

Details for the file llnl_clippy-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: llnl_clippy-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for llnl_clippy-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 494e4c206b3ad3a36cbdcbe72a2c567479a3253c1d4803b2afd531867ec8d899
MD5 2294bbef1e030b763a13bdab91b13d3b
BLAKE2b-256 dca16b56701db4318baffbef7949fcb104e3a0c34ff10aff820e71b07d9da3f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for llnl_clippy-0.5.7-py3-none-any.whl:

Publisher: publish.yml on llnl/clippy

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

Release history Release notifications | RSS feed

This release

0.5.7 This release

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3

2 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