Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whiffle_client-0.2.11.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

whiffle_client-0.2.11-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file whiffle_client-0.2.11.tar.gz.

File metadata

  • Download URL: whiffle_client-0.2.11.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

Hashes for whiffle_client-0.2.11.tar.gz
Algorithm Hash digest
SHA256 d9aac1f2e7bd22c7f489ccd231ce56761e715dc3e614bde53075f2cefab0dbff
MD5 423dbbb3b841a8b18bbc1cebce28e391
BLAKE2b-256 519c831a1cb19ed035682a4c60f9177aa5c075dd5bb8b33a3f6f9845bc2b0d07

See more details on using hashes here.

File details

Details for the file whiffle_client-0.2.11-py3-none-any.whl.

File metadata

File hashes

Hashes for whiffle_client-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0d77dc85112510dc8f11577031c49e53d3f3abdadad4c38f8e781386b38858af
MD5 36d525c0b1d36304085f4599cb8bf278
BLAKE2b-256 58bc95cffc45e547c1b39863df63f23f47e6a01fa25689db94a3c6ffe6448c54

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page