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
Better logging
_time -> datetime casting
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.3dev.tar.gz
(3.5 kB
view details)
File details
Details for the file slurchemy-0.1.3dev.tar.gz
.
File metadata
- Download URL: slurchemy-0.1.3dev.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c493f1875fd345b55785cf7d0cf1e198d147a471daa738ff90006d1b97cf0f |
|
MD5 | 0eecc13ca1842dd27313f64f31275a7f |
|
BLAKE2b-256 | fe3c9a190a302905bc4b5c4989688b89ca159bc496b523dc6470bdeccbe501cb |