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] [--emoji EMOJI]
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
--emoji EMOJI set emoji 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
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 wai-client-0.1.2.tar.gz
.
File metadata
- Download URL: wai-client-0.1.2.tar.gz
- Upload date:
- Size: 6.5 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.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c229572d9210a9e564ea836feb4c19639e8ce5076ff8763281862e249a05e657 |
|
MD5 | 322a0022479f7ffac15a4c07d71a6296 |
|
BLAKE2b-256 | 135f5f3c2ed168c0841512a5dd34364a0e46229a0f6653f6d3e2602a6bbb2f68 |
File details
Details for the file wai_client-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: wai_client-0.1.2-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.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f490ab42af0575b33a044ee8694cec48ef7a5da0ed8d4d2a598180adc12e0be |
|
MD5 | dcd67c21dd719399c3d411fa2d93de2c |
|
BLAKE2b-256 | d0e6033234ac8e02372d437e9933098d550ef1093276ec429017a02eae101e08 |