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>

Run a task

whiffle task run <path_to_the_task_specification.[json|yaml]>

Allowed file formats are JSON and YAML. The YAML format supports includes through pyyaml-include.

Here is an example of how to use the yaml-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

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>

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

Uploaded Source

Built Distribution

whiffle_client-0.2.5-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whiffle_client-0.2.5.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.7.17

File hashes

Hashes for whiffle_client-0.2.5.tar.gz
Algorithm Hash digest
SHA256 1f1d3514946346bbf7b36a6b5de43a3ef102a9e6a0ca7496ce6b1b5e08055c95
MD5 8f24184fb9471429cf57db333c93fd87
BLAKE2b-256 5cde894cbbbf3ed9a4559f7d7c7b42558619cf0ed29eb5550701adbd1d350836

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whiffle_client-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.7.17

File hashes

Hashes for whiffle_client-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a31344d2e8fa8765ba2a66cbff672b835f919e2b12077c129f87de873fbad64b
MD5 89482da7fc8c5e104c6214a4f6f753d1
BLAKE2b-256 8f87cbdd1ef3d9348bf876ce6bbed5d13d20fe7d29553f65b2df8e50160e2827

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