SLURM Link Assistant Service Hub (SLASH) is a submodule for the python package sapp, dealing with the Internect connection problems.
Project description
Slash
SLURM Link Assistant Service Hub (SLASH) is a submodule for the python package sapp, dealing with the Internect connection problems on slurm compute nodes.
How to use
Quick Start
You only need to provide a subscription link. Two simple steps: create an environment and run commands.
# Create a new environment with a subscription
# e.g. https://raw.githubusercontent.com/Pawdroid/Free-servers/main/sub
slash create -n myenv -f <your_subscription>
# Run a command with the newly created environment
slash run -n myenv wget huggingface.co
There is a built-in environment called base, which is a mirror of the Internet on this machine. Useful if you need to forward it to the compute nodes on slurm.
Advanced Usage
The usage is very similar to conda. You can activate and deactivate the environment.
# Initialize the Slash environment, then open a new terminal
slash init
# (In a new terminal) Activate the environment
slash activate myenv
# Run a command with the environment
wget huggingface.co
# Deactivate the environment
slash deactivate
# List all environments
slash env list
# Remove the environment
slash remove myenv
Use -h, --help to get more information.
slash -h
Python Interface
Use the python interface to python codes.
import os
from slash import Slash
# excute a command with the environment
with Slash('myenv'):
os.system('wget huggingface.co')
Install
pip install slash-py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slash_py-0.0.2.tar.gz.
File metadata
- Download URL: slash_py-0.0.2.tar.gz
- Upload date:
- Size: 60.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb1977606b182de64ff8bd708a248bcdb274ced4bd25aafc26de8069022ebb61
|
|
| MD5 |
788977933715eb967b4b0cb187a86629
|
|
| BLAKE2b-256 |
fb64860a969fa4b9b796d17155f1ffef56fb2ee302f4724d07f18cd6f0ab5433
|
Provenance
The following attestation bundles were made for slash_py-0.0.2.tar.gz:
Publisher:
python-publish.yml on why-in-Shanghaitech/slash
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slash_py-0.0.2.tar.gz -
Subject digest:
eb1977606b182de64ff8bd708a248bcdb274ced4bd25aafc26de8069022ebb61 - Sigstore transparency entry: 264755096
- Sigstore integration time:
-
Permalink:
why-in-Shanghaitech/slash@b0850c0a0f5454dc5ee1aa93d91e7782ae1b093b -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/why-in-Shanghaitech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b0850c0a0f5454dc5ee1aa93d91e7782ae1b093b -
Trigger Event:
release
-
Statement type:
File details
Details for the file slash_py-0.0.2-py3-none-any.whl.
File metadata
- Download URL: slash_py-0.0.2-py3-none-any.whl
- Upload date:
- Size: 49.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5605651ac93cb964fb77a54fed5b869013ea27a9363ca0b1213f3ede7d937acc
|
|
| MD5 |
1029fd1e53f2b46a9000721aaef5f40d
|
|
| BLAKE2b-256 |
5a814efddd79b8f60a70e495e0d582a52e84b55c64a1e4e685a65418f689d522
|
Provenance
The following attestation bundles were made for slash_py-0.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on why-in-Shanghaitech/slash
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slash_py-0.0.2-py3-none-any.whl -
Subject digest:
5605651ac93cb964fb77a54fed5b869013ea27a9363ca0b1213f3ede7d937acc - Sigstore transparency entry: 264755097
- Sigstore integration time:
-
Permalink:
why-in-Shanghaitech/slash@b0850c0a0f5454dc5ee1aa93d91e7782ae1b093b -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/why-in-Shanghaitech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@b0850c0a0f5454dc5ee1aa93d91e7782ae1b093b -
Trigger Event:
release
-
Statement type: