Python based web client to interact with Whiffle services
Project description
Whiffle client
This client allows running atmospheric large-eddy simulations (LES) with Whiffle's GPU-resident model https://whiffle.nl/. The client requires an access token, which you can configure with the command line interface by executing,
whiffle config edit user.token <your_token>
You can create a new task by executing,
whiffle task run <path_to_the_task_specification.[json|yaml]>
The client polls the progress of the task until it has finished. The task will run in the background if you abort the client. You can list the most recent tasks by executing,
whiffle task list
If you need an access token or you have any questions, please reach out to support@whiffle.nl.
Command-line interface
List the configuration
whiffle config list
Change the token in the configuration
whiffle config edit user.token <your_token>
NOTE: configuration will be stored on user config directory.
Unix systems
~/.config/whiffle/whiffle_config.yaml
macOS systems
~/Library/Application Support/whiffle/whiffle_config.yaml
Windows systems
%USERPROFILE%\AppData\Local\whiffle\whiffle_config.yaml
Run a task
whiffle task run <path_to_the_task_specification.[json|yaml]>
List tasks
whiffle task list <number of tasks>
Download a task
whiffle task download <task_id>
Attach a task
You can monitor the progress of a task and it will be automatically downloaded once the task has been successfully completed.
whiffle task attach <task_id>
Cancel a task
A task on a non-finished status can be cancelled with the following command:
whiffle task cancel <task_id>
Task description file formats
Allowed file formats are JSON and YAML. The YAML format supports includes through pyyaml-include.
Here is an example of a YAML file with include:
The task.yaml file describes the task and includes the metmasts value from another file
metmasts: !include example_yaml_include_metmasts.yaml
and the example_yaml_include_metmasts.yaml file specifies the metmasts:
example_metmast_collection:
id:
- metmast0
- metmast1
lat:
- 52.1
- 52.2
lon:
- 3.1
- 3.2
z:
- 10
- 100
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 whiffle_client-0.2.12.tar.gz
.
File metadata
- Download URL: whiffle_client-0.2.12.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d3692ed7cb3e6093ccf2e7b7348a21cd8f9ff5f1bd6b1162891b5571cbefdd2 |
|
MD5 | 4fcc4418836f559b167433e5d165f364 |
|
BLAKE2b-256 | f3e4818ca9bca09aa11fa8ecd912b3c3a91d6ebc0d0b2c1b836a744a9c3c1768 |
File details
Details for the file whiffle_client-0.2.12-py3-none-any.whl
.
File metadata
- Download URL: whiffle_client-0.2.12-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c646278624abb0d720ae17c57d59d91e2099545c18f6f091cf146662160fd61 |
|
MD5 | f3412cdc3b45a6191010cd1932f12d5b |
|
BLAKE2b-256 | 892f5660ce31c830605e132329b6f27651613b05a8eac15971fb8e23e8649cd4 |