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
Metadata
Release files for slurchemy 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| slurchemy-0.2.6.tar.gz | 4.5 kB | Without provenance | Details |
Release files / slurchemy-0.2.6.tar.gz
| Download URL | slurchemy-0.2.6.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d16a9492fb928824f9b559da1dc138fc7e5f63536ac22b5d166cccba4a084f97
|
|
BLAKE2b-256 checksum How to use checksums |
0b2f0b65edd39c1873cbc6dfd9013270132d1059d17b4c4da9f296b94213c43e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for slurchemy 0.2.6
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.