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.5.4.tar.gz (31.7 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.5.4-py3-none-any.whl (44.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for groundhog_hpc-0.5.4.tar.gz
Algorithm Hash digest
SHA256 1f9ef486a6b62a3f28168689425b9b838c1abe92d76291a392299c70a4f5a0ec
MD5 b6b89ac681b4b21db27f71eaff16d602
BLAKE2b-256 ea4a79c3bef59e0e4e538875949cec290d26cf5cefd601135e190723f9fc89de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for groundhog_hpc-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 287c91211f2d64fb89b84b3be0cd26611cd3c1a29c76b83efe1219f3ad8fc53f
MD5 aeaf0ea746fb303b2aa41ce7ace84320
BLAKE2b-256 eac4abece517b27357edc102891244233e68a12de57c0cee7bd4a404ad86bb74

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