The IM Squonk2 Deck (Squeck)
Project description
Squeck (Squonk2 Deck) is s Textual-UI (TUI) for the summary visualisation of multiple Squonk2 environments.
Squeck uses the squonk2-python-client to create a Deck displaying summary information for multiple Squonk2 environments and uses Will McGugan’s textual framework to provide the user with a simple, text-based user interface modelled on the popular k9s Kubernetes monitor.
It displays a summary of the environments, where: -
A green tick indicates that the authenticator service has issued a token for the service
The service version is displayed for those that are running
A NO RESPONSE banner is displayed for services that are not responding
Installation
Squeck is a Python application, written with Python 3.10 and published to PyPI and is easily installed using pip:
pip install im-squeck
Execution
Before running Squeck you must have access to at least one Squonk2 environment. Squeck obtains details of the environment through a YAML-based environments file. An example file, environments, is located in the root of this project:
When Squeck starts it will look for the environments file in your home directory, in the file ~/.squonk2/environments. If you place your populated environments file there you need do nothing else prior to running Squeck. If you prefer to put your environments file elsewhere, or have multiple files, set the path to your file using the environment variable SQUONK2_ENVIRONMENTS_FILE:
export SQUONK2_ENVIRONMENTS_FILE=~/my-squonk2-environments
With an environments file in place you can run Squeck:
squeck
Logging
You can enable logging from Squeck and the underlying textual framework by setting the environment variable SQUONK2_LOGFILE when running the application:
SQUONK2_LOGFILE=./squeck.log squeck
Debugging
Textual doesn’t like anything being written to the console so printing (even to stderr) will topple the display. That’s why stderr is diverted when the application is running and nothing is printed. There comes a time, though, when you need to see the error log. For these times you can run Squeck without stderr diverted:
squeck --enable-stderr
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
Built Distribution
File details
Details for the file im-squeck-1.1.1.tar.gz
.
File metadata
- Download URL: im-squeck-1.1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 047e26e6d43e2c64bacdafd36bb33669fee8c5fbcdd3699f68a0fca088d6520d |
|
MD5 | 52963a3b1d975090f5fc6014b9f1454f |
|
BLAKE2b-256 | 336bf27569ad838e9feb489f058560d0190f66d3d3911ac8f023902d64b0a4b0 |
File details
Details for the file im_squeck-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: im_squeck-1.1.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8176ee50e9d0bb53af8abbbc78871b44f02180a868f86042d161c95bd7760817 |
|
MD5 | 7593c01d771d8497a6bbf2d6d3368674 |
|
BLAKE2b-256 | 603d2df03ba2cdecc9bd6abc949995afbc9fdd0b8beb47128bfb1577426d0a07 |