ping_ws.py usage
setup
To install pip package
pip install websocket-ping
For dev version
python -m venv .venv
source .venv/bin/activate
pip install -r requirements_ws_ping.txt
cli interface
-w flag is for the websocket endpoint -d is the duration to test if the connection is maintained (in seconds)
python -m ping_ws.ping_ws -w wss://host/ws/ping/ -d [int]
examples
# Failure to connect - server rejecting connection
(.venv) $ python -m ping_ws.ping_ws -w wss://host/ws/ping/
Connection to wss unsuccessful: server rejected WebSocket connection: HTTP 502
# Success on connection
(.venv) $ python -m ping_ws.ping_ws -w ws://localhost:8000/ws/ping/
Successfully connected to ws://localhost:8000/ws/ping/, response to ping: pong
Maintained connection to ws://localhost:8000/ws/ping/, response to ping: pong
Success!
Metadata
Release files for websocket-ping 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| websocket_ping-1.0.1.tar.gz | 2.9 kB | Without provenance | Details for websocket_ping-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| websocket_ping-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for websocket_ping-1.0.1-py3-none-any.whl |
Total release size: 6.2 kB
Release files / websocket_ping-1.0.1.tar.gz
| Download URL | websocket_ping-1.0.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c63226767978bffd364e9b62dd6881146f48d637bbf8ec25c0738f11534c8f14
|
|
BLAKE2b-256 checksum How to use checksums |
71dd18563bf8df7cbf0b80dbfa8a088bdb95cd5fd38cf688e86937326a58407c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
|
Release files / websocket_ping-1.0.1-py3-none-any.whl
| Download URL | websocket_ping-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cba37aa6749eabb5b6d3be782befe27426cd7d25c32660a17c3a782073474e54
|
|
BLAKE2b-256 checksum How to use checksums |
58ac2f4a11d607c872590774d3e41d831d07a2c93b126b3811a5dd7b8855abbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
|
Security for websocket-ping 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.