AiiDA Transport/Scheduler plugins for interfacing with FirecREST.
Project description
aiida-firecrest [IN-DEVELOPMENT]
AiiDA Transport/Scheduler plugins for interfacing with FirecREST
Installation
(pip not yet available)
pip install aiida-firecrest
Or for development:
git clone
cd aiida-firecrest
pip install -e .
CLI Usage
$ aiida-firecrest-cli --help
Usage: aiida-firecrest-cli [OPTIONS] COMMAND [ARGS]...
FireCrest CLI.
Options:
--config PATH Path to the connection file (default: .firecrest-
config.json).
--help Show this message and exit.
Commands:
fs File system operations.
slurm Slurm operations.
stat Status operations.
The configuration file should look like this:
{
"url": "https://firecrest.cscs.ch",
"token_uri": "https://auth.cscs.ch/auth/realms/cscs/protocol/openid-connect/token",
"client_id": "username-client",
"client_secret": "xyz",
"machine": "daint",
"scratch_path": "/scratch/snx3000/username"
}
scratch_path
is optional.
If specified, all operations will be relative to this path.
$ aiida-firecrest-cli stat
Usage: aiida-firecrest-cli stat [OPTIONS] COMMAND [ARGS]...
Status operations.
Options:
--help Show this message and exit.
Commands:
parameters Get parameters that can be configured in environment files.
service Information about a service.
services List available services.
system Information about a system.
systems List available systems.
$ aiida-firecrest-cli fs
Usage: aiida-firecrest-cli fs [OPTIONS] COMMAND [ARGS]...
File system operations.
Options:
--help Show this message and exit.
Commands:
cat Get the contents of a file.
chmod Change the mode of a file.
cwd Get the current working directory.
ls List files in a path.
putfile Upload file to the remote.
stat Get information about a file.
$ aiida-firecrest-cli slurm
Usage: aiida-firecrest-cli slurm [OPTIONS] COMMAND [ARGS]...
Slurm operations.
Options:
--help Show this message and exit.
Commands:
sacct Retrieve information for all jobs.
squeue Retrieves information for queued jobs.
submit Submit a job script.
Code Style
To format the code and lint it, run pre-commit:
pre-commit run --all-files
Testing
It is recommended to run the tests via tox.
tox
By default, the tests are run using a mock FirecREST server (in a temporary folder). You can also provide connections details to a real FirecREST server:
tox -- --firecrest-config=".firecrest-config.json"
The format of the .firecrest-config.json
file is:
{
"url": "https://firecrest.cscs.ch",
"token_uri": "https://auth.cscs.ch/auth/realms/cscs/protocol/openid-connect/token",
"client_id": "username-client",
"client_secret": "xyz",
"machine": "daint",
"scratch_path": "/scratch/snx3000/username"
}
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
Built Distribution
File details
Details for the file aiida_firecrest-0.1.0a1.tar.gz
.
File metadata
- Download URL: aiida_firecrest-0.1.0a1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945b367824694ff7d3ec148635e8cd9d8c73a39b8b02c9b735fede9f53c12357 |
|
MD5 | 81d63493aa225e45dba24c74e39c9697 |
|
BLAKE2b-256 | 015d3fa34995de8d0ddaecc614184a4c7b3c9143dbad1646de2b937854cfe208 |
File details
Details for the file aiida_firecrest-0.1.0a1-py3-none-any.whl
.
File metadata
- Download URL: aiida_firecrest-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fe5a412257d46ae18560a63894842c0e6b447dce16d362840f173d802c3f455 |
|
MD5 | 1dd0c1400263ef2d5ddb94ee9d97085c |
|
BLAKE2b-256 | f2f0d8c3a630a41e670b8273f1d4eb5f1e887ddd36d6f9426efbe29486c850fc |