Skip to main content

Python based web client to interact with Whiffle services

Project description

Whiffle client

Quickstart

whiffle-client can be installed with pip as follows:

pip install whiffle-client or pip install "whiffle-client[analysis]" to include data-analysis packages.

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.3.2.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

whiffle_client-0.3.2-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whiffle_client-0.3.2.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for whiffle_client-0.3.2.tar.gz
Algorithm Hash digest
SHA256 9056c5e9a48b97ceba75d6e27b029f305eb5b5c0a1cf50318bca3c93e646a651
MD5 6deea8156036325f103dd773bb68e4e0
BLAKE2b-256 d482f7d153cafd1a44f8c979a2aa8e4e9aae3d7517ef8e14f5d7cb0c0c1625fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for whiffle_client-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 292dd404743fb931a7dffeb6cd06fa51f78845112817de06f6741f4c37463858
MD5 26bd6bdbcb8a4ae6cc8499a2d2bf46b8
BLAKE2b-256 0c5e4d44244f493a89068f7a070fb59fbbc839a1210ffbc067ad085e858e5ae8

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