Skip to main content

SQLAlchemy bindings for your slurmdbd (SLURM database)

Project description

Python SQLAlchemy bindings for your slurmdbd (SLURM database).

Installing

Easy:

$ virtualenv test-environment && source test-environment/bin/activate
$ pip install slurchemy

or:

$ sudo pip install slurchemy

Using

Assuming you have slurmdbd configured in /etc/slurm/slurmdbd.conf with:

StorageType=accounting_storage/mysql
StorageHost=mysql.example.org
StoragePass=pass
StorageUser=slurm
StorageLoc=slurmdb

Then in python you can do:

import slurchemy
from sqlalchemy import create_engine
engine = create_engine('mysql://slurm:pass@mysql.example.org/slurmdb')
slurchemy.init_model(engine)
clusters = slurchemy.Cluster.query.all()

TODO

  • Builtin statistics queries

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

slurchemy-0.2.3.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file slurchemy-0.2.3.tar.gz.

File metadata

  • Download URL: slurchemy-0.2.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for slurchemy-0.2.3.tar.gz
Algorithm Hash digest
SHA256 82024a3ed8ece7f83cffab1c6d6c46bfb9de2ff826e5a45190069b9696f25271
MD5 4eb6a74370d0e0c899d02fec9233e8bf
BLAKE2b-256 f3cb41416d2694cec04dfb67ad0caaf641c2dad9ae6b24865200643dc8a36152

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page