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.3.2.tar.gz (127.9 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.3.2-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for groundhog_hpc-0.3.2.tar.gz
Algorithm Hash digest
SHA256 048fb69aaa69730502388b1b905257ad546b9e7e523c85873a4f33245900aa0f
MD5 448b0581dff96ac9759d04c8bf398d34
BLAKE2b-256 e2079efcd7e3bd14958aeccb2fac679430c353c3040569e5db308d0f41b4d9ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for groundhog_hpc-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec90b789c143222a9e60a1b89ac393e893f1cf48855e04a6e4703f6b03bb5c59
MD5 8b613c3c726272013d33f315dc1a9ec7
BLAKE2b-256 815941ae198b941d2122a9ea18abb978e49b2ef967938fd2b0a5e86f825ccf7d

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