No project description provided
Project description
systemstat
use http requests to check the status of a system
Installation
pip install systemstat
Or from this repo:
pip install git+https://github.com/dskard/systemstat.git
Example Usage:
Use gridstat3 to check if a Selenium Grid 3 has nodes attached and is ready to accept requests
$ gridstat3 --wait 4 --url http://localhost:4444 --verbose --stdout
2022-08-21 18:07:06,714 starting gridstat3
2022-08-21 18:07:06,714 command line options: ['--wait', '4', '--url', 'http://localhost:4444', '--verbose', '--stdout']
2022-08-21 18:07:06,714 checking status of http://localhost:4444
2022-08-21 18:07:06,714 starting at 2022-08-21 18:07:06.714839
2022-08-21 18:07:06,714 ending at 2022-08-21 18:07:10.714839
2022-08-21 18:07:06,721 hub is up at http://localhost:4444/grid/api/hub
2022-08-21 18:07:06,721 2 of 2 nodes are attached
2022-08-21 18:07:06,721 all nodes are attached
2022-08-21 18:07:06,721 2 of 2 nodes are ready
2022-08-21 18:07:06,721 all nodes are ready
Use gridstat4 to check if a Selenium Grid 4 has nodes attached and is ready to accept requests
$ gridstat4 --wait 4 --url http://localhost:4444 --verbose --stdout
2022-08-21 18:48:47,497 starting gridstat4
2022-08-21 18:48:47,497 command line options: ['--wait', '4', '--url', 'http://localhost:4444', '--verbose', '--stdout']
2022-08-21 18:48:47,497 checking status of http://localhost:4444
2022-08-21 18:48:47,497 starting at 2022-08-21 18:48:47.497451
2022-08-21 18:48:47,497 ending at 2022-08-21 18:48:51.497451
2022-08-21 18:48:47,545 hub is up at http://localhost:4444/wd/hub/status
2022-08-21 18:48:47,545 all nodes are ready
Use sutstat to check if a system is listening on port 4444
$ sutstat --wait 4 --url http://localhost:4444 --verbose --stdout
2022-08-21 18:08:25,344 starting sutstat
2022-08-21 18:08:25,344 command line options: ['--wait', '4', '--url', 'http://localhost:4444', '--verbose', '--stdout']
2022-08-21 18:08:25,345 checking status of http://localhost:4444
2022-08-21 18:08:25,345 starting at 2022-08-21 18:08:25.345155
2022-08-21 18:08:25,345 ending at 2022-08-21 18:08:29.345155
2022-08-21 18:08:25,359 System under test is up at http://localhost:4444
Development
Creating a Python virtual environment:
make pyenv
Installing the development dependencies and current version of the library:
make install
Running the test cases:
make test
Running the command line tools through the development environment:
poetry run gridstat3 --wait 4 --url http://localhost:4444 --verbose --stdout
poetry run gridstat4 --wait 4 --url http://localhost:4444 --verbose --stdout
poetry run sutstat --wait 4 --url http://localhost:8080 --verbose --stdout
Clean logs and Python cache files
make clean
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file systemstat-0.1.0.tar.gz.
File metadata
- Download URL: systemstat-0.1.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.9.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20e4f8e7c7962dc5dc560cf8a0ad675e8435901b94524b1a28c9939bc527476c
|
|
| MD5 |
6cdfbea4caae72ff3d167a94319934c4
|
|
| BLAKE2b-256 |
0dbfe9adb63bb89dbd920799484d84ee9c9ba55c42ae1f5fb59e840a02636002
|
File details
Details for the file systemstat-0.1.0-py3-none-any.whl.
File metadata
- Download URL: systemstat-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.9.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e43d3e92f39ecc400f54104bfdad8b5118cd45eccb5b2ce838480a4202bf49b0
|
|
| MD5 |
9993c4eea9aea2c546c3f7e1177214d5
|
|
| BLAKE2b-256 |
9a6537e17f92aafd6c5cc15bac951b34a5a5cb06db071916ca69ffc7c769e4e8
|