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
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
slurchemy-0.1.7dev.tar.gz
(4.0 kB
view details)
File details
Details for the file slurchemy-0.1.7dev.tar.gz
.
File metadata
- Download URL: slurchemy-0.1.7dev.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349b660b798f97f6700696c1eb90f2d29e924ccf854ca8674e85e17dfba55ca7 |
|
MD5 | 4077d016b1376e2f3ef9b196549ec011 |
|
BLAKE2b-256 | e698a2da659f85dd83f61a7e47d5bef1eb1c57d512093c84bdc4cdc6a5267737 |