Skip to main content

Wai client app

Project description

Wai client app

This is a simple command-line or GUI application to query and update a Wai server. A Wai server is a simple information service API that stores and provides users' given location and status.

What's Wai

Wai is a ridiculously simple server that records the textual location, status and status emoji for the user to be retrieved by others, such as friends or colleagues. The impetus was for the author to advertise on a webpage when they would next be working on campus.

Usage

Wai provides a simple graphical user interface and a non-interactive command-line interface. They do not necessarily provide the same functionality.

The app launches in GUI mode when no command (such as query) is provided.

wai --help

usage: wai [-h] [-c CONFIG] [--uri URI] [--uuid UUID] {query,update} ...

Query or update location and status information with Wai server.

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        configuration file
  --uri URI             URI for Wai server
  --uuid UUID           user ID

actions:
  Perform actions non-interactively. If unspecified, GUI will be launched

  {query,update}
    query               query for current user info
    update              update user info

wai query --help

usage: wai query [-h] [--shell]

Query for current user info

optional arguments:
  -h, --help  show this help message and exit
  --shell     output results as shell variables

wai update --help

usage: wai update [-h] [--key KEY] [--location LOCATION] [--status STATUS]

Update user information

optional arguments:
  -h, --help           show this help message and exit
  --key KEY            user's API key
  --location LOCATION  set location
  --status STATUS      set status

Configuration file

The Wai client will look for a configuration file as specified on the command line or in either of $HOME/.config/wai/wai.conf or $HOME/.wai. This example shows the format:

[wai]
uri = <URI of Wai server>
uuid = <uuid given at registration>
key = <key used to register>

Limitations

The Wai client does not currently support registration.

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

wai-client-0.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

wai_client-0.1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file wai-client-0.1.1.tar.gz.

File metadata

  • Download URL: wai-client-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for wai-client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ff95d11a8c52184983655273aac4d83ccebe21d31a429e1e6397926100688f43
MD5 94766110ed84c5c7a8111da940068494
BLAKE2b-256 6faa1cdb770700ce8e07e16deef98a8d0a273531639e1310ff8e5b7c6a9f071b

See more details on using hashes here.

File details

Details for the file wai_client-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wai_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for wai_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8934f0eb5a287d98b58dcd40d73b8244bcbb3e26e7be5fb0e987e72bcbf33bf5
MD5 041f15ca43673ff98a2f8e5ee32124b9
BLAKE2b-256 6b4f29b2a27a93d8abb7b1bcbd7b572472cf50e40604f722eee3b50df20b0ec3

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