Skip to main content

Starts an interactive session on a compute node via Slurm.

Project description

SlurmSession

Starts an interactive session on a compute node via Slurm.

Can't remember the exact command plus various arguments when all you want is an interactive shell on a compute node? Just run slurmsession, or sls for short, and this application will prompt you for the options in the terminal. Enter the compute resources, such as number of CPU cores and memory per core, or quickly press Enter to accept the defaults, which you can configure as needed.

Installation

❯ uv tool install SlurmSession

This assumes you have installed the UV Python package manager. Alternatively, you could use PipX or even the standard Python package manager Pip.

❯ pip install pipx
❯ pipx install SlurmSession

UV and PipX both isolate the dependencies of this application, so that they will not pollute your current Python environment. The commands slurmsession and sls will be available in the shell no matter the Python environment.

Usage

Type sls or slurmsession to start the application, follow the prompts, and either accept the default value by just pressing Enter or enter the custom value you want instead. The remote shell session will then be started via Slurm on the compute node(s). Type exit when done to return to the log-in node. Run sls --help to see the location of the configuration file, which you can edit to customize the defaults.

release coverage

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

slurmsession-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file slurmsession-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: slurmsession-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for slurmsession-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34637cd7e4f1bab254eecc2e24bdc8060333dd5b06af4b974f21c4551f84e179
MD5 e3616bd0b26f5af3f99903a6d6320727
BLAKE2b-256 5639f45dc2b809ff314831cb4d6210004321993cbb4b6c30d2b9702d82d27316

See more details on using hashes here.

Provenance

The following attestation bundles were made for slurmsession-1.0.0-py3-none-any.whl:

Publisher: publish_release.yml on john-hen/SlurmSession

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

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