wholagged 0.3.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,75 @@
1
+ Required Notice: Copyright (c) 2026 Erik Cholakhyan (https://github.com/cholakhyanerik/wholagged)
2
+
3
+ # PolyForm Noncommercial License 1.0.0
4
+
5
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
14
+
15
+ ## Distribution License
16
+
17
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
18
+
19
+ ## Notices
20
+
21
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
22
+
23
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
24
+
25
+ ## Changes and New Works License
26
+
27
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
28
+
29
+ ## Patent License
30
+
31
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
32
+
33
+ ## Noncommercial Purposes
34
+
35
+ Any noncommercial purpose is a permitted purpose.
36
+
37
+ ## Personal Uses
38
+
39
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
40
+
41
+ ## Noncommercial Organizations
42
+
43
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
44
+
45
+ ## Fair Use
46
+
47
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
48
+
49
+ ## No Other Rights
50
+
51
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
52
+
53
+ ## Patent Defense
54
+
55
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
56
+
57
+ ## Violations
58
+
59
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
60
+
61
+ ## No Liability
62
+
63
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
64
+
65
+ ## Definitions
66
+
67
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
68
+
69
+ **You** refers to the individual or entity agreeing to these terms.
70
+
71
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
72
+
73
+ **Your licenses** are all the licenses granted to you for the software under these terms.
74
+
75
+ **Use** means anything you do with the software requiring one of your licenses.
@@ -0,0 +1,243 @@
1
+ Metadata-Version: 2.4
2
+ Name: wholagged
3
+ Version: 0.3.8
4
+ Summary: wholagged: is it your internet, your provider or Valve's servers? A network check for Dota 2.
5
+ Author: Erik
6
+ License-Expression: PolyForm-Noncommercial-1.0.0
7
+ License-File: LICENSE
8
+ Requires-Dist: pyside6-essentials>=6.12.0
9
+ Requires-Python: >=3.15
10
+ Project-URL: Homepage, https://github.com/cholakhyanerik/wholagged
11
+ Project-URL: Issues, https://github.com/cholakhyanerik/wholagged/issues
12
+ Project-URL: Changelog, https://github.com/cholakhyanerik/wholagged/blob/main/CHANGELOG.md
13
+ Description-Content-Type: text/markdown
14
+
15
+ **English** · [Հայերեն](README.hy.md)
16
+
17
+ # wholagged
18
+
19
+ [![CI](https://github.com/cholakhyanerik/wholagged/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/cholakhyanerik/wholagged/actions/workflows/ci.yml)
20
+ [![Python 3.15+](https://img.shields.io/badge/python-3.15%2B-3776AB?logo=python&logoColor=white)](https://www.python.org/)
21
+ [![Platform: Windows](https://img.shields.io/badge/platform-Windows-0078D6?logo=windows&logoColor=white)](#requirements)
22
+ [![GUI: PySide6](https://img.shields.io/badge/GUI-PySide6-41CD52?logo=qt&logoColor=white)](https://doc.qt.io/qtforpython-6/)
23
+ [![License: PolyForm Noncommercial](https://img.shields.io/badge/license-PolyForm%20Noncommercial-blue)](LICENSE)
24
+ [![Sponsor](https://img.shields.io/badge/sponsor-GitHub%20Sponsors-EA4AAA?logo=githubsponsors&logoColor=white)](#support-the-project)
25
+
26
+ **Dota 2 is stuck on "Searching for Game Coordinator". Is the problem your internet, your provider, or Valve's servers?**
27
+
28
+ wholagged is a small desktop tool that answers that one question in about 10–20 seconds:
29
+
30
+ - it runs six network checks, from basic connectivity to ping and packet loss on Valve's game relays;
31
+ - it tells you whose side the problem is on;
32
+ - it lists steps to fix it.
33
+
34
+ It runs on Windows; macOS and Linux support is in progress.
35
+
36
+ > **Note:** the app's interface is in Armenian. An Armenian version of this README is available in [README.hy.md](README.hy.md).
37
+
38
+ ## Features
39
+
40
+ - **One-click diagnosis.** Six checks run one after another; the window updates as each one finishes.
41
+ - **A clear verdict:** whose side the problem is on (yours, your provider's, Valve's, or your PC / Steam
42
+ client) and what to do next.
43
+ - **A report you can copy.** *Copy report* puts all results on the clipboard as plain text, headed by the
44
+ app name and version: evidence for your provider's support team.
45
+ - **No admin rights needed.** Ping uses the Windows `IcmpSendEcho` API directly:
46
+ - no UAC prompt;
47
+ - no console window flashing up;
48
+ - the results don't depend on the Windows language.
49
+ - **GUI or terminal.** A PySide6 window by default; `--cli` prints the same checks in the terminal.
50
+ - **Quick links** to [steamstat.us](https://steamstat.us/) and [isdown.app](https://isdown.app/status/dota-2),
51
+ to compare with what other players are seeing.
52
+
53
+ ## Requirements
54
+
55
+ - Windows 10 or 11 (for macOS and Linux, see [Platform support](#platform-support))
56
+ - [uv](https://docs.astral.sh/uv/) by Astral. **uv is required:**
57
+ - the project is managed only with uv (`pyproject.toml` + `uv.lock`);
58
+ - there is no `requirements.txt`, and `pip install` is not supported;
59
+ - uv downloads Python 3.15 for you if you don't have it.
60
+
61
+ ## Getting started
62
+
63
+ ```powershell
64
+ git clone https://github.com/cholakhyanerik/wholagged.git
65
+ cd wholagged
66
+ uv sync
67
+ uv run wholagged # opens the window
68
+ ```
69
+
70
+ Other commands:
71
+
72
+ ```powershell
73
+ uv run wholagged --cli # runs in the terminal, no window
74
+ uv run pytest # runs the tests (offline, uses a fake network)
75
+ uv run ruff check # lints the code
76
+ ```
77
+
78
+ Updating an existing clone:
79
+
80
+ ```powershell
81
+ git pull
82
+ uv sync
83
+ ```
84
+
85
+ Troubleshooting:
86
+
87
+ - The old `dota-netcheck` command says "Failed to spawn" after you update a clone older than v0.2.2
88
+ (the rename to wholagged): run `uv sync --reinstall-package wholagged` once. The `wholagged` command works either way.
89
+
90
+ ## What it checks
91
+
92
+ | # | Check | How | What it tells you |
93
+ |---|---|---|---|
94
+ | 1 | Internet connection | TCP connection to port 443 on 1.1.1.1, 8.8.8.8 and 9.9.9.9 (plain IPs, no DNS) | Are you online at all? |
95
+ | 2 | DNS | Resolves `api.steampowered.com`, `steamcommunity.com` and `google.com` | Can your DNS find Steam? |
96
+ | 3 | Steam Web API | `ISteamDirectory/GetCMListForConnect` | Can you reach Valve, and does Valve answer normally? |
97
+ | 4 | Steam login servers | TCP connection to the 6 nearest connection manager (CM) servers | Can the Steam client log in? |
98
+ | 5 | Dota 2 Game Coordinator | `IGCVersion_570/GetServerVersion` | Is the GC answering? (indirect check) |
99
+ | 6 | Valve's game network | ICMP ping to Valve's SDR relays (from `GetSDRConfig`), then 10 pings to each of the 3 fastest | Ping, packet loss, jitter and routing problems |
100
+
101
+ - No internet: the remaining checks are skipped.
102
+ - The CM server list can't be fetched or has no usable server: check 4 tests Steam's web servers instead.
103
+ - Valve's data that doesn't look right (a malformed address, an odd name, a huge list) is skipped, and
104
+ never blamed on you or your provider.
105
+ - A check crashes: it is marked as skipped, and the remaining checks still run.
106
+
107
+ ## How the verdict is decided
108
+
109
+ The rules in [`verdict.py`](src/wholagged/verdict.py) are checked from top to bottom, and the first one that matches decides the verdict:
110
+
111
+ 1. No internet → **your side**
112
+ 2. DNS can't resolve Steam → **your side (DNS)**
113
+ 3. HTTPS to Steam fails the certificate check → **your side** (wrong system clock, antivirus HTTPS scanning, a Wi-Fi login page or missing CA certificates; not your provider)
114
+ 4. Valve answers with a 5xx error or an empty server list, or the GC reports `success=false` → **Valve's side**
115
+ 5. The internet works, but no Steam server is reachable → **Valve or your provider** (check steamstat.us and try a phone hotspot)
116
+ 6. Only some Steam servers are reachable → **provider, firewall or VPN**
117
+ 7. Steam is reachable and 1.1.1.1 answers ping, but Valve's relays don't → **your provider's route to Valve**
118
+ 8. Packet loss > 5%, ping > 150 ms or jitter > 30 ms → **connection quality**
119
+ 9. Everything passes → **the network is fine; the problem is on your PC or in the Steam client**
120
+
121
+ Each verdict comes with practical advice, for example:
122
+
123
+ - restart the router;
124
+ - switch DNS to 1.1.1.1 / 8.8.8.8;
125
+ - allow `steam.exe` and `dota2.exe` through the firewall;
126
+ - test over a phone hotspot;
127
+ - verify the game files.
128
+
129
+ ## Limitations
130
+
131
+ - **The Game Coordinator is checked indirectly,** through the Web API: a direct check needs a Steam login.
132
+ If that endpoint changes, the check is skipped and Valve is not blamed.
133
+ - **The tool only opens steamstat.us in your browser** and never reads its data: that endpoint is not a
134
+ public API, and its owners ask people not to use it.
135
+ - **ICMP blocked on your network:** relay ping can't be measured, and that check is skipped.
136
+
137
+ ## Platform support
138
+
139
+ The goal is for the tool to run on Windows, macOS and Linux. For now, only Windows is fully supported.
140
+
141
+ | Platform | Status |
142
+ |---|---|
143
+ | Windows 10 / 11 | ✅ Fully supported |
144
+ | Linux | ⚠️ Runs, with known issues |
145
+ | macOS | ⚠️ Runs, not yet tested on a real Mac |
146
+
147
+ ### Known issues (fixes planned)
148
+
149
+ - **macOS and Linux: ping uses the system `ping` command.**
150
+ - It passes the timeout in the right unit (milliseconds on macOS, seconds on Linux).
151
+ - It runs in a neutral locale, so the output doesn't depend on the system language.
152
+ - A native implementation without the `ping` command, like the one on Windows, is planned.
153
+ - **Advice is Windows-specific.** Tips about Windows Firewall, `ipconfig /flushdns`, network adapter settings
154
+ and `steam.exe` / `dota2.exe` don't apply on macOS or Linux.
155
+ - **No CI on macOS yet.** Code changes are tested on Windows and Linux; a macOS run is planned. The tests
156
+ use a fake network, so they don't cover the issues above.
157
+
158
+ ### Minimum system versions
159
+
160
+ These come from the PySide6 wheels in `uv.lock`:
161
+
162
+ - macOS 14 Sonoma or newer
163
+ - Linux x86_64 with glibc 2.34+ (for example Ubuntu 22.04+, Debian 12+)
164
+ - Linux ARM64 with glibc 2.39+ (for example Ubuntu 24.04+)
165
+ - On Linux with X11, Qt also needs the `libxcb-cursor0` system package (`sudo apt install libxcb-cursor0` on Debian/Ubuntu)
166
+
167
+ ## Project structure
168
+
169
+ ```
170
+ src/wholagged/
171
+ __init__.py entry point (GUI by default, --cli for the terminal)
172
+ checks.py the six network checks (standard library only)
173
+ icmp.py ping on Windows via IcmpSendEcho (ctypes)
174
+ verdict.py turns the check results into a verdict
175
+ report.py plain-text report
176
+ models.py data classes: CheckResult, Verdict, Status, Side
177
+ gui.py PySide6 window
178
+ i18n.py translations: t(key) in the current language (hy / ru / en)
179
+ locales/ the text catalogues: hy.py (the source), ru.py, en.py
180
+ tests/
181
+ fakes.py fake network with switches to break each part
182
+ test_scenarios.py end-to-end scenarios: break one thing, expect one verdict
183
+ test_parsing.py parsing of Valve's API responses
184
+ test_net_helpers.py HTTP error handling, the ping command, version sync
185
+ test_i18n.py translation lookup, placeholders and fallbacks
186
+ test_claude_hooks.py the guard hook used by Claude Code in this repo
187
+ test_claude_md.py keeps CLAUDE.md short and its rules files valid
188
+ ```
189
+
190
+ Development notes:
191
+
192
+ - planned work: [TASKS.md](TASKS.md);
193
+ - the history of changes: [CHANGELOG.md](CHANGELOG.md);
194
+ - the rules for contributors and AI agents: [CLAUDE.md](CLAUDE.md), with the details in [`.claude/rules/`](.claude/rules/).
195
+
196
+ ## Roadmap
197
+
198
+ The checker is free for personal use, and all of its source code, including the future Pro version, will stay public.
199
+
200
+ Planned:
201
+
202
+ - **Cross-platform:** fix the [known issues](#known-issues-fixes-planned) and run the tests on macOS in CI too
203
+ (Windows and Linux already run).
204
+ - **Your network vs your provider:** also ping your own router, so the tool can tell a bad Wi-Fi connection apart
205
+ from a problem on your provider's side.
206
+ - **More Valve games:** CS2 and Deadlock use the same Valve relay network, so the same checks can cover them.
207
+ The name wholagged isn't tied to any game, so it stays the same.
208
+ - **Background monitoring (paid Pro version):** record ping and packet loss for the whole day, show graphs,
209
+ and build a PDF report you can send to your provider as evidence.
210
+ - **Microsoft Store** release.
211
+
212
+ ### Transparency
213
+
214
+ In the future, the app may suggest a third-party service, such as a gaming route optimizer, and some of these
215
+ suggestions may be affiliate links. If that happens, these suggestions will:
216
+
217
+ - always be clearly marked as a recommendation and as an affiliate link;
218
+ - appear only when the verdict points to your provider's route or an unstable connection, where such a service can actually help;
219
+ - never appear when the problem is on Valve's side, on your Wi-Fi or on your PC;
220
+ - never change the verdict itself. The verdict logic is public in [`verdict.py`](src/wholagged/verdict.py), so anyone can check this.
221
+
222
+ ## Support the project
223
+
224
+ If this tool saved you some frustration while waiting in the queue, you can support its development on GitHub Sponsors:
225
+
226
+ [![Sponsor on GitHub](https://img.shields.io/badge/Sponsor-%E2%9D%A4-EA4AAA?style=for-the-badge&logo=githubsponsors&logoColor=white)](https://github.com/sponsors/cholakhyanerik)
227
+
228
+ ## License
229
+
230
+ wholagged is **source-available** under the [PolyForm Noncommercial License 1.0.0](LICENSE).
231
+ The code is public, but it is not open source in the OSI sense.
232
+
233
+ - ✅ **Free for noncommercial use:** personal use, gaming, hobby projects and study, and use by charities,
234
+ schools and other noncommercial organizations. You may change the code and share it, as long as it stays
235
+ noncommercial and comes with the license.
236
+ - ❌ **Commercial use requires a separate license from the author.** This includes selling the software or
237
+ anything based on it, offering it as a paid service, and using it inside a business (for example, a computer club or an office).
238
+
239
+ For a commercial license, [open an issue](https://github.com/cholakhyanerik/wholagged/issues) or contact the author on GitHub.
240
+
241
+ ## Disclaimer
242
+
243
+ Dota 2 and Steam are trademarks of Valve Corporation. This project is not affiliated with or endorsed by Valve.
@@ -0,0 +1,229 @@
1
+ **English** · [Հայերեն](README.hy.md)
2
+
3
+ # wholagged
4
+
5
+ [![CI](https://github.com/cholakhyanerik/wholagged/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/cholakhyanerik/wholagged/actions/workflows/ci.yml)
6
+ [![Python 3.15+](https://img.shields.io/badge/python-3.15%2B-3776AB?logo=python&logoColor=white)](https://www.python.org/)
7
+ [![Platform: Windows](https://img.shields.io/badge/platform-Windows-0078D6?logo=windows&logoColor=white)](#requirements)
8
+ [![GUI: PySide6](https://img.shields.io/badge/GUI-PySide6-41CD52?logo=qt&logoColor=white)](https://doc.qt.io/qtforpython-6/)
9
+ [![License: PolyForm Noncommercial](https://img.shields.io/badge/license-PolyForm%20Noncommercial-blue)](LICENSE)
10
+ [![Sponsor](https://img.shields.io/badge/sponsor-GitHub%20Sponsors-EA4AAA?logo=githubsponsors&logoColor=white)](#support-the-project)
11
+
12
+ **Dota 2 is stuck on "Searching for Game Coordinator". Is the problem your internet, your provider, or Valve's servers?**
13
+
14
+ wholagged is a small desktop tool that answers that one question in about 10–20 seconds:
15
+
16
+ - it runs six network checks, from basic connectivity to ping and packet loss on Valve's game relays;
17
+ - it tells you whose side the problem is on;
18
+ - it lists steps to fix it.
19
+
20
+ It runs on Windows; macOS and Linux support is in progress.
21
+
22
+ > **Note:** the app's interface is in Armenian. An Armenian version of this README is available in [README.hy.md](README.hy.md).
23
+
24
+ ## Features
25
+
26
+ - **One-click diagnosis.** Six checks run one after another; the window updates as each one finishes.
27
+ - **A clear verdict:** whose side the problem is on (yours, your provider's, Valve's, or your PC / Steam
28
+ client) and what to do next.
29
+ - **A report you can copy.** *Copy report* puts all results on the clipboard as plain text, headed by the
30
+ app name and version: evidence for your provider's support team.
31
+ - **No admin rights needed.** Ping uses the Windows `IcmpSendEcho` API directly:
32
+ - no UAC prompt;
33
+ - no console window flashing up;
34
+ - the results don't depend on the Windows language.
35
+ - **GUI or terminal.** A PySide6 window by default; `--cli` prints the same checks in the terminal.
36
+ - **Quick links** to [steamstat.us](https://steamstat.us/) and [isdown.app](https://isdown.app/status/dota-2),
37
+ to compare with what other players are seeing.
38
+
39
+ ## Requirements
40
+
41
+ - Windows 10 or 11 (for macOS and Linux, see [Platform support](#platform-support))
42
+ - [uv](https://docs.astral.sh/uv/) by Astral. **uv is required:**
43
+ - the project is managed only with uv (`pyproject.toml` + `uv.lock`);
44
+ - there is no `requirements.txt`, and `pip install` is not supported;
45
+ - uv downloads Python 3.15 for you if you don't have it.
46
+
47
+ ## Getting started
48
+
49
+ ```powershell
50
+ git clone https://github.com/cholakhyanerik/wholagged.git
51
+ cd wholagged
52
+ uv sync
53
+ uv run wholagged # opens the window
54
+ ```
55
+
56
+ Other commands:
57
+
58
+ ```powershell
59
+ uv run wholagged --cli # runs in the terminal, no window
60
+ uv run pytest # runs the tests (offline, uses a fake network)
61
+ uv run ruff check # lints the code
62
+ ```
63
+
64
+ Updating an existing clone:
65
+
66
+ ```powershell
67
+ git pull
68
+ uv sync
69
+ ```
70
+
71
+ Troubleshooting:
72
+
73
+ - The old `dota-netcheck` command says "Failed to spawn" after you update a clone older than v0.2.2
74
+ (the rename to wholagged): run `uv sync --reinstall-package wholagged` once. The `wholagged` command works either way.
75
+
76
+ ## What it checks
77
+
78
+ | # | Check | How | What it tells you |
79
+ |---|---|---|---|
80
+ | 1 | Internet connection | TCP connection to port 443 on 1.1.1.1, 8.8.8.8 and 9.9.9.9 (plain IPs, no DNS) | Are you online at all? |
81
+ | 2 | DNS | Resolves `api.steampowered.com`, `steamcommunity.com` and `google.com` | Can your DNS find Steam? |
82
+ | 3 | Steam Web API | `ISteamDirectory/GetCMListForConnect` | Can you reach Valve, and does Valve answer normally? |
83
+ | 4 | Steam login servers | TCP connection to the 6 nearest connection manager (CM) servers | Can the Steam client log in? |
84
+ | 5 | Dota 2 Game Coordinator | `IGCVersion_570/GetServerVersion` | Is the GC answering? (indirect check) |
85
+ | 6 | Valve's game network | ICMP ping to Valve's SDR relays (from `GetSDRConfig`), then 10 pings to each of the 3 fastest | Ping, packet loss, jitter and routing problems |
86
+
87
+ - No internet: the remaining checks are skipped.
88
+ - The CM server list can't be fetched or has no usable server: check 4 tests Steam's web servers instead.
89
+ - Valve's data that doesn't look right (a malformed address, an odd name, a huge list) is skipped, and
90
+ never blamed on you or your provider.
91
+ - A check crashes: it is marked as skipped, and the remaining checks still run.
92
+
93
+ ## How the verdict is decided
94
+
95
+ The rules in [`verdict.py`](src/wholagged/verdict.py) are checked from top to bottom, and the first one that matches decides the verdict:
96
+
97
+ 1. No internet → **your side**
98
+ 2. DNS can't resolve Steam → **your side (DNS)**
99
+ 3. HTTPS to Steam fails the certificate check → **your side** (wrong system clock, antivirus HTTPS scanning, a Wi-Fi login page or missing CA certificates; not your provider)
100
+ 4. Valve answers with a 5xx error or an empty server list, or the GC reports `success=false` → **Valve's side**
101
+ 5. The internet works, but no Steam server is reachable → **Valve or your provider** (check steamstat.us and try a phone hotspot)
102
+ 6. Only some Steam servers are reachable → **provider, firewall or VPN**
103
+ 7. Steam is reachable and 1.1.1.1 answers ping, but Valve's relays don't → **your provider's route to Valve**
104
+ 8. Packet loss > 5%, ping > 150 ms or jitter > 30 ms → **connection quality**
105
+ 9. Everything passes → **the network is fine; the problem is on your PC or in the Steam client**
106
+
107
+ Each verdict comes with practical advice, for example:
108
+
109
+ - restart the router;
110
+ - switch DNS to 1.1.1.1 / 8.8.8.8;
111
+ - allow `steam.exe` and `dota2.exe` through the firewall;
112
+ - test over a phone hotspot;
113
+ - verify the game files.
114
+
115
+ ## Limitations
116
+
117
+ - **The Game Coordinator is checked indirectly,** through the Web API: a direct check needs a Steam login.
118
+ If that endpoint changes, the check is skipped and Valve is not blamed.
119
+ - **The tool only opens steamstat.us in your browser** and never reads its data: that endpoint is not a
120
+ public API, and its owners ask people not to use it.
121
+ - **ICMP blocked on your network:** relay ping can't be measured, and that check is skipped.
122
+
123
+ ## Platform support
124
+
125
+ The goal is for the tool to run on Windows, macOS and Linux. For now, only Windows is fully supported.
126
+
127
+ | Platform | Status |
128
+ |---|---|
129
+ | Windows 10 / 11 | ✅ Fully supported |
130
+ | Linux | ⚠️ Runs, with known issues |
131
+ | macOS | ⚠️ Runs, not yet tested on a real Mac |
132
+
133
+ ### Known issues (fixes planned)
134
+
135
+ - **macOS and Linux: ping uses the system `ping` command.**
136
+ - It passes the timeout in the right unit (milliseconds on macOS, seconds on Linux).
137
+ - It runs in a neutral locale, so the output doesn't depend on the system language.
138
+ - A native implementation without the `ping` command, like the one on Windows, is planned.
139
+ - **Advice is Windows-specific.** Tips about Windows Firewall, `ipconfig /flushdns`, network adapter settings
140
+ and `steam.exe` / `dota2.exe` don't apply on macOS or Linux.
141
+ - **No CI on macOS yet.** Code changes are tested on Windows and Linux; a macOS run is planned. The tests
142
+ use a fake network, so they don't cover the issues above.
143
+
144
+ ### Minimum system versions
145
+
146
+ These come from the PySide6 wheels in `uv.lock`:
147
+
148
+ - macOS 14 Sonoma or newer
149
+ - Linux x86_64 with glibc 2.34+ (for example Ubuntu 22.04+, Debian 12+)
150
+ - Linux ARM64 with glibc 2.39+ (for example Ubuntu 24.04+)
151
+ - On Linux with X11, Qt also needs the `libxcb-cursor0` system package (`sudo apt install libxcb-cursor0` on Debian/Ubuntu)
152
+
153
+ ## Project structure
154
+
155
+ ```
156
+ src/wholagged/
157
+ __init__.py entry point (GUI by default, --cli for the terminal)
158
+ checks.py the six network checks (standard library only)
159
+ icmp.py ping on Windows via IcmpSendEcho (ctypes)
160
+ verdict.py turns the check results into a verdict
161
+ report.py plain-text report
162
+ models.py data classes: CheckResult, Verdict, Status, Side
163
+ gui.py PySide6 window
164
+ i18n.py translations: t(key) in the current language (hy / ru / en)
165
+ locales/ the text catalogues: hy.py (the source), ru.py, en.py
166
+ tests/
167
+ fakes.py fake network with switches to break each part
168
+ test_scenarios.py end-to-end scenarios: break one thing, expect one verdict
169
+ test_parsing.py parsing of Valve's API responses
170
+ test_net_helpers.py HTTP error handling, the ping command, version sync
171
+ test_i18n.py translation lookup, placeholders and fallbacks
172
+ test_claude_hooks.py the guard hook used by Claude Code in this repo
173
+ test_claude_md.py keeps CLAUDE.md short and its rules files valid
174
+ ```
175
+
176
+ Development notes:
177
+
178
+ - planned work: [TASKS.md](TASKS.md);
179
+ - the history of changes: [CHANGELOG.md](CHANGELOG.md);
180
+ - the rules for contributors and AI agents: [CLAUDE.md](CLAUDE.md), with the details in [`.claude/rules/`](.claude/rules/).
181
+
182
+ ## Roadmap
183
+
184
+ The checker is free for personal use, and all of its source code, including the future Pro version, will stay public.
185
+
186
+ Planned:
187
+
188
+ - **Cross-platform:** fix the [known issues](#known-issues-fixes-planned) and run the tests on macOS in CI too
189
+ (Windows and Linux already run).
190
+ - **Your network vs your provider:** also ping your own router, so the tool can tell a bad Wi-Fi connection apart
191
+ from a problem on your provider's side.
192
+ - **More Valve games:** CS2 and Deadlock use the same Valve relay network, so the same checks can cover them.
193
+ The name wholagged isn't tied to any game, so it stays the same.
194
+ - **Background monitoring (paid Pro version):** record ping and packet loss for the whole day, show graphs,
195
+ and build a PDF report you can send to your provider as evidence.
196
+ - **Microsoft Store** release.
197
+
198
+ ### Transparency
199
+
200
+ In the future, the app may suggest a third-party service, such as a gaming route optimizer, and some of these
201
+ suggestions may be affiliate links. If that happens, these suggestions will:
202
+
203
+ - always be clearly marked as a recommendation and as an affiliate link;
204
+ - appear only when the verdict points to your provider's route or an unstable connection, where such a service can actually help;
205
+ - never appear when the problem is on Valve's side, on your Wi-Fi or on your PC;
206
+ - never change the verdict itself. The verdict logic is public in [`verdict.py`](src/wholagged/verdict.py), so anyone can check this.
207
+
208
+ ## Support the project
209
+
210
+ If this tool saved you some frustration while waiting in the queue, you can support its development on GitHub Sponsors:
211
+
212
+ [![Sponsor on GitHub](https://img.shields.io/badge/Sponsor-%E2%9D%A4-EA4AAA?style=for-the-badge&logo=githubsponsors&logoColor=white)](https://github.com/sponsors/cholakhyanerik)
213
+
214
+ ## License
215
+
216
+ wholagged is **source-available** under the [PolyForm Noncommercial License 1.0.0](LICENSE).
217
+ The code is public, but it is not open source in the OSI sense.
218
+
219
+ - ✅ **Free for noncommercial use:** personal use, gaming, hobby projects and study, and use by charities,
220
+ schools and other noncommercial organizations. You may change the code and share it, as long as it stays
221
+ noncommercial and comes with the license.
222
+ - ❌ **Commercial use requires a separate license from the author.** This includes selling the software or
223
+ anything based on it, offering it as a paid service, and using it inside a business (for example, a computer club or an office).
224
+
225
+ For a commercial license, [open an issue](https://github.com/cholakhyanerik/wholagged/issues) or contact the author on GitHub.
226
+
227
+ ## Disclaimer
228
+
229
+ Dota 2 and Steam are trademarks of Valve Corporation. This project is not affiliated with or endorsed by Valve.
@@ -0,0 +1,75 @@
1
+ [project]
2
+ name = "wholagged"
3
+ version = "0.3.8"
4
+ description = "wholagged: is it your internet, your provider or Valve's servers? A network check for Dota 2."
5
+ readme = "README.md"
6
+ license = "PolyForm-Noncommercial-1.0.0"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.15"
9
+ dependencies = ["pyside6-essentials>=6.12.0"]
10
+
11
+ [[project.authors]]
12
+ name = "Erik"
13
+
14
+ [project.urls]
15
+ Homepage = "https://github.com/cholakhyanerik/wholagged"
16
+ Issues = "https://github.com/cholakhyanerik/wholagged/issues"
17
+ Changelog = "https://github.com/cholakhyanerik/wholagged/blob/main/CHANGELOG.md"
18
+
19
+ [project.scripts]
20
+ wholagged = "wholagged:main"
21
+ dota-netcheck = "wholagged:main"
22
+
23
+ [build-system]
24
+ requires = ["uv_build>=0.13.9,<0.14.0"]
25
+ build-backend = "uv_build"
26
+
27
+ [tool.uv.build-backend]
28
+ source-exclude = [
29
+ "**/.env*",
30
+ "**/.dev.vars",
31
+ "**/.pypirc",
32
+ "**/.npmrc",
33
+ "**/.netrc",
34
+ "**/*.pem",
35
+ "**/*.key",
36
+ "**/*.pfx",
37
+ "**/*.p12",
38
+ "**/id_rsa*",
39
+ "**/id_ed25519*",
40
+ "**/id_ecdsa*",
41
+ "**/*.tmp",
42
+ "**/*.log",
43
+ "**/*.bak",
44
+ "**/*.orig",
45
+ "**/*.rej",
46
+ ]
47
+
48
+ [tool.ruff]
49
+ line-length = 120
50
+
51
+ [tool.ruff.lint]
52
+ extend-select = ["S"]
53
+
54
+ [tool.ruff.lint.per-file-ignores]
55
+ "tests/**" = ["S101"]
56
+ ".claude/hooks/*" = [
57
+ "S603",
58
+ "S607",
59
+ ]
60
+
61
+ [tool.ruff.lint.isort]
62
+ known-local-folder = ["fakes"]
63
+
64
+ [tool.pytest]
65
+ testpaths = ["tests"]
66
+ addopts = [
67
+ "-p",
68
+ "no:cacheprovider",
69
+ ]
70
+
71
+ [dependency-groups]
72
+ dev = [
73
+ "pytest>=9.2.0",
74
+ "ruff>=0.17.6",
75
+ ]