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.
Metadata
Release files for SlurmSession 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slurmsession-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / slurmsession-1.0.0-py3-none-any.whl
| Download URL | slurmsession-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34637cd7e4f1bab254eecc2e24bdc8060333dd5b06af4b974f21c4551f84e179
|
|
BLAKE2b-256 checksum How to use checksums |
5639f45dc2b809ff314831cb4d6210004321993cbb4b6c30d2b9702d82d27316
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 6, 2025.
Transparency log