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.
Metadata
Release files for wai-client 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wai-client-0.1.2.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wai_client-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / wai-client-0.1.2.tar.gz
| Download URL | wai-client-0.1.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c229572d9210a9e564ea836feb4c19639e8ce5076ff8763281862e249a05e657
|
|
BLAKE2b-256 checksum How to use checksums |
135f5f3c2ed168c0841512a5dd34364a0e46229a0f6653f6d3e2602a6bbb2f68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / wai_client-0.1.2-py3-none-any.whl
| Download URL | wai_client-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f490ab42af0575b33a044ee8694cec48ef7a5da0ed8d4d2a598180adc12e0be
|
|
BLAKE2b-256 checksum How to use checksums |
d0e6033234ac8e02372d437e9933098d550ef1093276ec429017a02eae101e08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|