zwiftpktmon
A Python port of the C# ZwiftPacketMonitor project which monitors Zwift UDP packets.
This project implements a TCP and UDP packet monitor for the Zwift cycling simulator. It listens for packets on a specific port of a local network adapter, and when found, deserializes the payload and dispatches events that can be consumed by the caller. It uses the asyncio standard library to allow the packet parsing activities to not interfere with the event consumer.
NOTE: Because this utilizes a network packet capture to intercept the UDP packets, your system may require this code to run using elevated privileges. This is definitely required on MacOS.
Requirements
-
Requires Python version 3.10 or higher
-
Uses the project pcapy-ng as its interface to the Pcap-API. The Pcap-API exists natively on MacOS and Linux but not on Windows. On Windows, the Npcap packet capture library must be installed. Npcap is available here: https://npcap.com/dist/npcap-1.60.exe
-
The pcapy-ng library is written in Cython at must be compiled for each environment. Currently, two environments have been pre-compiled and supported:
- Windows 10+ (64bit AMD; Intel might work but untested)
- MacOS 10.13+ (High Sierra)
Setup
pip install zwiftpktmon
There are some example scripts in the .\tests folder:
- test_harness.py: A simple script allowing network selection and event logging.
- test_harness_ui.py: A simple UI based upon PySimpleGui. To use this you must pip install PySimpleGui first.
Metadata
Release files for zwiftpktmon 0.1.0
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 |
|---|---|---|---|---|
| zwiftpktmon-0.1.0.tar.gz | 15.0 kB | Without provenance | Details for zwiftpktmon-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zwiftpktmon-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for zwiftpktmon-0.1.0-py3-none-any.whl |
Total release size: 29.8 kB
Release files / zwiftpktmon-0.1.0.tar.gz
| Download URL | zwiftpktmon-0.1.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3c5ad0b7c467618443c07a77a1097379c36a4b9d8870f4f8d2cf7f89d5c4d6d
|
|
BLAKE2b-256 checksum How to use checksums |
b93e1314034f686d0da45c03c309198304d94af85b2fb72a393ebaa5dd0b23dc
|
| 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.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / zwiftpktmon-0.1.0-py3-none-any.whl
| Download URL | zwiftpktmon-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2752e4620f72052816ab4bf0fb5be5b335e031d004ab9825328f738a7c80aa9
|
|
BLAKE2b-256 checksum How to use checksums |
1662d94ad12b646c660bcd458168186b928dd020238184bbcba2d5632fbef987
|
| 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.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for zwiftpktmon 0.1.0
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.