Skip to main content

The IM Squonk2 Deck (squeck)

Project description

PyPI - Python Version PyPI GitHub GitHub Workflow Status GitHub Workflow Status

Squeck (Squonk2 Deck) is s Textual-UI (TUI) for the summary visualisation of multiple Squonk2 environments.

docs/images/screenshot.png

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

im_squeck-2.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

im_squeck-2.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file im_squeck-2.1.0.tar.gz.

File metadata

  • Download URL: im_squeck-2.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for im_squeck-2.1.0.tar.gz
Algorithm Hash digest
SHA256 aeb71264a534d98c73db0bf33d5d026a47f6d18e7d37b9483ce8ec8b1534266e
MD5 7add45a769ba91a9138f7a825698858c
BLAKE2b-256 7a6fe88401f71353adacb63f5abaf7d75b39aded11b4521579135af5a040220b

See more details on using hashes here.

Provenance

The following attestation bundles were made for im_squeck-2.1.0.tar.gz:

Publisher: publish.yaml on InformaticsMatters/squonk2-deck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file im_squeck-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: im_squeck-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for im_squeck-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 069e543ca745c7994b6ed25b7f4ef2d7a9cddd8d96f84033294a8c9ec32dea80
MD5 b0426c9dc1d4a03811b0d7671cd824e4
BLAKE2b-256 8c63a88ba41cd266d9603bf603eae14481bd3869c68dba5c5e48f2c646b31230

See more details on using hashes here.

Provenance

The following attestation bundles were made for im_squeck-2.1.0-py3-none-any.whl:

Publisher: publish.yaml on InformaticsMatters/squonk2-deck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page