Skip to main content

Iterative HPC function development. As many 'first tries' as you need.

Project description

Home of hog ☀️🦫🕳️

Quickstart

Groundhog makes it easy to run, tweak, and re-run python functions on HPC clusters via Globus Compute using simple decorators.

Groundhog automatically manages remote environments (powered by uv)—just update Python versions or dependencies in your script, no SSH needed.

Key concepts:

  • @hog.function() - Configures a function to run on a Globus Compute endpoint. Decorator kwargs (like endpoint, account) become the default user_endpoint_config.
  • @hog.harness() - Marks a local entry point that orchestrates remote calls via .remote() or .submit().
  • The desired remote Python environment (version and dependencies) is specified alongside your code via PEP 723 metadata.
# /// script
# requires-python = ">=3.10"
# dependencies = ["numpy"]
# ///

import groundhog_hpc as hog

@hog.function(endpoint="your-endpoint-id", account="your-account")
def compute(x: int) -> int:
    import numpy as np
    return int(np.sum(range(x)))

@hog.harness()
def main():
    result = compute.remote(100)
    print(result)

Run with: hog run myscript.py main


see also: examples/README.md

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

groundhog_hpc-0.4.0.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

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

groundhog_hpc-0.4.0-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file groundhog_hpc-0.4.0.tar.gz.

File metadata

  • Download URL: groundhog_hpc-0.4.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.6

File hashes

Hashes for groundhog_hpc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 27f25558431dc9e964ba85a199e8a918ef2d90318408a528379b0234ae1bba47
MD5 e8559cf44db8fcb062f0616c6ccf073a
BLAKE2b-256 8128fce1f47b4864719966ae51b462bc2b1208ec0ba2d283dbccc498d9790500

See more details on using hashes here.

File details

Details for the file groundhog_hpc-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for groundhog_hpc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c8fdd0b6a61c2d96c7768ce54614c6a2fef64de12b6555d513dba1066784ed5
MD5 73748efeb9530d55b90986db724665e5
BLAKE2b-256 2ee57e67e8520070203dfce603b4996acb146749c4b6ec8c56df153f05462a71

See more details on using hashes here.

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