Skip to main content

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


Download files

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

Source Distribution

slash_py-0.0.2.tar.gz (60.0 kB view details)

Uploaded Source

Built Distribution

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

slash_py-0.0.2-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

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

Hashes for slash_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 eb1977606b182de64ff8bd708a248bcdb274ced4bd25aafc26de8069022ebb61
MD5 788977933715eb967b4b0cb187a86629
BLAKE2b-256 fb64860a969fa4b9b796d17155f1ffef56fb2ee302f4724d07f18cd6f0ab5433

See more details on using hashes here.

Provenance

The following attestation bundles were made for slash_py-0.0.2.tar.gz:

Publisher: python-publish.yml on why-in-Shanghaitech/slash

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

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

Hashes for slash_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5605651ac93cb964fb77a54fed5b869013ea27a9363ca0b1213f3ede7d937acc
MD5 1029fd1e53f2b46a9000721aaef5f40d
BLAKE2b-256 5a814efddd79b8f60a70e495e0d582a52e84b55c64a1e4e685a65418f689d522

See more details on using hashes here.

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

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