Skip to main content

kairos-smi

Multi-server gpu monitoring program

PyPI version

See change Log: change log

sample.png

usage: ksmi [-h] [-l] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -l, --loop            loop forever
  -c CONFIG, --config CONFIG
                        set config file location

quick start

1. install

Install with pip

$ pip install ksmi
or
$ pip3 install ksmi

2. Setup config file

Edit config.json. Add your gpu server address in config.json.

{
	"hosts": [
		"<username>@<host>[:port]",
		"<username>@<host>[:port]"
	]
}

3. Add rsa_id to server

create new rea_id and add to your server

$ python3 -m ksmi.copy_id -c config.json -n

4. Run It!

$ python3 -m ksmi -c config.json -l

kairos-smi

usage: kairos_smi.py [-h] [-l] [-c CONFIG]

optional arguments:
  -h, --help            show this help message and exit
  -l, --loop            loop forever
  -c CONFIG, --config CONFIG
                        set config file location

Simple usage

Run once

$ python3 -m ksmi -c config.json

Run forever

$ python3 -m ksmi -c config.json -l

utils

copy_id

usage: copy_id.py [-h] [-n] [-c CONFIG] [-s SERVER]

optional arguments:
  -h, --help            show this help message and exit
  -n, --new_id          generate new id_rsa key
  -c CONFIG, --config CONFIG
                        set config file to use host list
  -s SERVER, --server SERVER
                        set a server to copy id

copy id(rsa) to server

Use with config.json

$ python3 -m ksmi.copy_id -c config.json
or
$ python3 -m ksmi.copy_id --config config.json

Use with individual Server address

$ python3 -m ksmi.copy_id -s [username@]<IP>[:port]
or
$ python3 -m ksmi.copy_id --server [username@]<IP>[:port]

Make a new id_rsa

$ python3 -m ksmi.copy_id -n
or
$ python3 -m ksmi.copy_id --new_id

Metadata

Release files for ksmi 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ksmi 0.2.1
File Size Uploaded Provenance Actions
ksmi-0.2.1.tar.gz 4.6 kB Without provenance Details for ksmi-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ksmi 0.2.1
File Interpreter ABI Platform Actions
ksmi-0.2.1-py3-none-any.whl Python 3 none any Details for ksmi-0.2.1-py3-none-any.whl

Total release size: 10.3 kB

Release files / ksmi-0.2.1.tar.gz

Download URL ksmi-0.2.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
753b21073a984f5c8a32f5fdab239ad3428d7eaea3f1123652855d1c2419f842
BLAKE2b-256 checksum
How to use checksums
6dc7bbad7bb9e97c5ceb91e4ba3e5f3d56665710b1e84935e19f2e84c765ddcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Release files / ksmi-0.2.1-py3-none-any.whl

Download URL ksmi-0.2.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b0c96537c61ce0f1f1acb61ccb5875fda448eb88ae0afc2de43f7f0442bae58
BLAKE2b-256 checksum
How to use checksums
4244c457c5a487a9a43e7ff6db45da98d92ca15f86f475b2e5e2139dfa61cc7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

Security for ksmi 0.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page