blip-speedtest 0.2.0__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.
- blip_speedtest-0.2.0/LICENSE +21 -0
- blip_speedtest-0.2.0/PKG-INFO +397 -0
- blip_speedtest-0.2.0/README.md +368 -0
- blip_speedtest-0.2.0/blip.py +2092 -0
- blip_speedtest-0.2.0/blip_speedtest.egg-info/PKG-INFO +397 -0
- blip_speedtest-0.2.0/blip_speedtest.egg-info/SOURCES.txt +9 -0
- blip_speedtest-0.2.0/blip_speedtest.egg-info/dependency_links.txt +1 -0
- blip_speedtest-0.2.0/blip_speedtest.egg-info/entry_points.txt +2 -0
- blip_speedtest-0.2.0/blip_speedtest.egg-info/top_level.txt +1 -0
- blip_speedtest-0.2.0/pyproject.toml +55 -0
- blip_speedtest-0.2.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Soumitri Pattnaik <https://picogeeks.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: blip-speedtest
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Zero-dependency terminal bandwidth & latency monitor
|
|
5
|
+
Author: Soumitri Pattnaik
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/picogeeks/blip
|
|
8
|
+
Project-URL: Website, https://picogeeks.com
|
|
9
|
+
Project-URL: Repository, https://github.com/picogeeks/blip
|
|
10
|
+
Project-URL: Issues, https://github.com/picogeeks/blip/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/picogeeks/blip/releases
|
|
12
|
+
Keywords: bandwidth,cli,latency,network,speedtest,terminal,tui
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Console :: Curses
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: System :: Networking
|
|
24
|
+
Classifier: Topic :: Terminals
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
```text
|
|
31
|
+
██╗ ██╗ ●
|
|
32
|
+
██║ ██║██╗██████╗
|
|
33
|
+
██████╗ ██║██║██╔══██╗
|
|
34
|
+
██████╔╝██║██║██████╔╝
|
|
35
|
+
╚═════╝ ╚═╝╚═╝██╔═══╝
|
|
36
|
+
made with ♥ by picogeeks.com
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
# blip
|
|
40
|
+
|
|
41
|
+
**A fast, zero-dependency internet speed test CLI + TUI for your terminal.**
|
|
42
|
+
|
|
43
|
+
[](https://github.com/picogeeks/blip/actions/workflows/ci.yml) [](https://github.com/picogeeks/blip/releases/latest) [](https://github.com/picogeeks/blip/blob/main/LICENSE)  
|
|
44
|
+
|
|
45
|
+
`blip` measures your internet speed from the terminal. It ships as a standalone binary for **macOS** and **Linux** (`x86_64` and `arm64`) with **no Python runtime required**, installs from PyPI as the pure-Python package [`blip-speedtest`](https://pypi.org/project/blip-speedtest/), or runs directly from source using nothing but the Python standard library.
|
|
46
|
+
|
|
47
|
+
- **Interactive TUI** — live latency, download, and upload gauges, speed-trend sparklines, and a browsable run history.
|
|
48
|
+
- **CLI and JSON modes** — scriptable one-shot tests with structured output for automation and dashboards.
|
|
49
|
+
- **More than a number** — ISP and ASN, edge node, TLS version, public IP, physical interface, and VPN detection.
|
|
50
|
+
- **Private and local** — runs are stored in SQLite on your machine. No accounts, no telemetry, no analytics.
|
|
51
|
+
- **Built-in Privacy Mode** — redact ISP, location, IPs, interface, VPN, and edge node everywhere with one flag.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Table of Contents
|
|
56
|
+
|
|
57
|
+
- [Quick start](#quick-start)
|
|
58
|
+
- [Demo](#demo)
|
|
59
|
+
- [Features](#features)
|
|
60
|
+
- [Installation](#installation)
|
|
61
|
+
- [One-line installer](#one-line-installer)
|
|
62
|
+
- [Package managers](#package-managers)
|
|
63
|
+
- [From source](#from-source)
|
|
64
|
+
- [Uninstall](#uninstall)
|
|
65
|
+
- [Usage](#usage)
|
|
66
|
+
- [Interactive TUI](#interactive-tui)
|
|
67
|
+
- [Headless CLI](#headless-cli)
|
|
68
|
+
- [JSON output](#json-output)
|
|
69
|
+
- [History](#history)
|
|
70
|
+
- [Reference](#reference)
|
|
71
|
+
- [TUI keybindings](#tui-keybindings)
|
|
72
|
+
- [CLI flags](#cli-flags)
|
|
73
|
+
- [Payload presets](#payload-presets)
|
|
74
|
+
- [Privacy Mode](#privacy-mode)
|
|
75
|
+
- [Data and storage](#data-and-storage)
|
|
76
|
+
- [Troubleshooting](#troubleshooting)
|
|
77
|
+
- [How it works](#how-it-works)
|
|
78
|
+
- [Development](#development)
|
|
79
|
+
- [License](#license)
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Quick start
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Install the standalone binary (macOS or Linux)
|
|
87
|
+
curl -fsSL https://github.com/picogeeks/blip/releases/latest/download/install.sh | bash
|
|
88
|
+
|
|
89
|
+
# Launch the interactive dashboard
|
|
90
|
+
blip
|
|
91
|
+
|
|
92
|
+
# Or run a one-shot test in the terminal
|
|
93
|
+
blip --run
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
The installer verifies the download, installs to `~/.local/bin`, and prints the commands for your shell. See [Installation](#installation) for other methods.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Demo
|
|
101
|
+
|
|
102
|
+
### TUI recording
|
|
103
|
+
|
|
104
|
+

|
|
105
|
+
|
|
106
|
+
### CLI recording
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+
|
|
110
|
+
> Both recordings run in **Privacy Mode** (`--privacy`), so ISP, location, IPs, interface, VPN, and edge node are redacted. Regenerate them locally with [`./assets/record.sh`](https://github.com/picogeeks/blip/blob/main/assets/record.sh) (requires [VHS](https://github.com/charmbracelet/vhs)).
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Features
|
|
115
|
+
|
|
116
|
+
- **Zero external dependencies.** Built entirely on the Python 3 standard library: `curses`, `sqlite3`, `http.client`, `ssl`, `threading`, `json`, and `argparse`.
|
|
117
|
+
- **Real-time dashboard.** Watch latency, download, and upload update live with smooth progress bars, color-coded metric cards, and Unicode sparklines for recent runs.
|
|
118
|
+
- **Browsable history.** Inspect any past run in a detail modal, step between runs, or delete entries without leaving the terminal.
|
|
119
|
+
- **Connection awareness.** Reports ISP and ASN, location, public and LAN IP, edge node, TLS version, physical interface, and active VPN.
|
|
120
|
+
- **Resilient engine.** Uses `speed.cloudflare.com` and automatically falls back to alternative endpoints if Cloudflare blocks the request.
|
|
121
|
+
- **Automation friendly.** Headless `--run` and `--history` modes emit themed logs or structured JSON, with `--no-save` for throwaway checks.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Installation
|
|
126
|
+
|
|
127
|
+
### One-line installer
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
curl -fsSL https://github.com/picogeeks/blip/releases/latest/download/install.sh | bash
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
The installer detects your OS and CPU, downloads the matching binary, verifies its SHA-256 checksum, and clears the macOS quarantine attribute. Install somewhere else, pin a release, or preview without changing anything:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
# Custom install directory and a pinned release
|
|
137
|
+
curl -fsSL https://github.com/picogeeks/blip/releases/latest/download/install.sh \
|
|
138
|
+
| BLIP_INSTALL_DIR="$HOME/bin" BLIP_VERSION=v0.2.0 bash
|
|
139
|
+
|
|
140
|
+
# Preview the detected platform and URLs
|
|
141
|
+
curl -fsSL https://github.com/picogeeks/blip/releases/latest/download/install.sh | bash -s -- --dry-run
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
| Platform | Architectures | Requirements |
|
|
145
|
+
| :--- | :--- | :--- |
|
|
146
|
+
| **macOS** | `arm64` (Apple Silicon), `x86_64` (Intel) | macOS; no Python needed |
|
|
147
|
+
| **Linux** | `aarch64` (`arm64`), `x86_64` | glibc 2.17+; no Python needed |
|
|
148
|
+
|
|
149
|
+
> **macOS note:** binaries are ad-hoc signed but not notarized. The installer removes the quarantine attribute automatically. If you downloaded a binary manually and macOS blocks it, run `xattr -d com.apple.quarantine /path/to/blip`.
|
|
150
|
+
>
|
|
151
|
+
> **Not covered:** Windows (no `curses`), 32-bit Linux, and `armv7`. On Alpine/musl or other architectures, install from PyPI or run from source.
|
|
152
|
+
|
|
153
|
+
### Package managers
|
|
154
|
+
|
|
155
|
+
| Method | Command | Status |
|
|
156
|
+
| :--- | :--- | :--- |
|
|
157
|
+
| **PyPI** (pure Python) | `pipx install blip-speedtest` | Available |
|
|
158
|
+
| **Homebrew** | `brew install picogeeks/tap/blip` | Planned |
|
|
159
|
+
| **AUR** | `yay -S blip-bin` | Planned |
|
|
160
|
+
|
|
161
|
+
The PyPI distribution is `blip-speedtest`; the installed command is still `blip`. It needs **Python 3.10+**:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
pipx install blip-speedtest
|
|
165
|
+
|
|
166
|
+
# or, without pipx
|
|
167
|
+
python3 -m pip install --user blip-speedtest
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Homebrew and AUR are still planned. Until they land, use the [one-line installer](#one-line-installer) or run [from source](#from-source).
|
|
171
|
+
|
|
172
|
+
### From source
|
|
173
|
+
|
|
174
|
+
`blip` needs **Python 3.10+** and nothing else:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
git clone https://github.com/picogeeks/blip.git
|
|
178
|
+
cd blip
|
|
179
|
+
python3 blip.py
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
To install the `blip` command in an isolated environment while developing:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
pipx install .
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Uninstall
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
curl -fsSL https://github.com/picogeeks/blip/releases/latest/download/install.sh \
|
|
192
|
+
| bash -s -- --uninstall
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Use the same `BLIP_INSTALL_DIR` you installed to if you overrode it. Your history at `~/.blip/history.db` is intentionally left in place; run `rm -rf ~/.blip` to remove it too. If you added the install directory to your `PATH`, undo that edit manually.
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Usage
|
|
200
|
+
|
|
201
|
+
> Examples use the installed `blip` command. Running [from source](#from-source)? Use `python3 blip.py` with the same flags.
|
|
202
|
+
|
|
203
|
+
### Interactive TUI
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
blip
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
The dashboard shows your connection profile and edge route, three live metric cards (latency, download, upload), a progress bar, and a scrollable test history. Press `R` to start a test, `↑`/`↓` to browse runs, and `Enter` to open a run's full details.
|
|
210
|
+
|
|
211
|
+
The TUI needs a terminal of at least **82×27** characters. Smaller windows show a compact resize prompt instead of the dashboard.
|
|
212
|
+
|
|
213
|
+
### Headless CLI
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
# Run a speed test and print logs plus a summary
|
|
217
|
+
blip --run
|
|
218
|
+
|
|
219
|
+
# Use a larger payload preset (50 MB down / 20 MB up)
|
|
220
|
+
blip --run --size 50
|
|
221
|
+
|
|
222
|
+
# Run with Privacy Mode enabled
|
|
223
|
+
blip --run --privacy
|
|
224
|
+
|
|
225
|
+
# Test without writing to history
|
|
226
|
+
blip --run --no-save
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### JSON output
|
|
230
|
+
|
|
231
|
+
Add `--json` for a single structured object on `stdout` (implies `--run`):
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
blip --run --json --no-save
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
```json
|
|
238
|
+
{
|
|
239
|
+
"ok": true,
|
|
240
|
+
"version": "0.2.0",
|
|
241
|
+
"tested_at": "2026-12-03 17:20",
|
|
242
|
+
"privacy_mode": false,
|
|
243
|
+
"saved": false,
|
|
244
|
+
"db_path": null,
|
|
245
|
+
"ping_ms": 77.4,
|
|
246
|
+
"download_mbps": 38.89,
|
|
247
|
+
"upload_mbps": 40.84,
|
|
248
|
+
"down_mb": 25.0,
|
|
249
|
+
"up_mb": 10.0,
|
|
250
|
+
"profile": {
|
|
251
|
+
"isp": "Example ISP (AS64500)",
|
|
252
|
+
"location": "City, Region, CC",
|
|
253
|
+
"ip": "203.0.113.10",
|
|
254
|
+
"lan_ip": "192.0.2.20",
|
|
255
|
+
"iface": "Wi-Fi (en0)",
|
|
256
|
+
"vpn": "",
|
|
257
|
+
"edge": "DEL (New Delhi, IN)",
|
|
258
|
+
"server": "speed.cloudflare.com",
|
|
259
|
+
"protocol": "HTTP/1.1 • TLS 1.3"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
`blip --run` exits with `0` on success and `1` on failure; on failure the JSON payload is `{"ok": false, "error": "..."}`.
|
|
265
|
+
|
|
266
|
+
### History
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
# Show the 20 most recent runs
|
|
270
|
+
blip --history
|
|
271
|
+
|
|
272
|
+
# Show every saved run
|
|
273
|
+
blip --history 0
|
|
274
|
+
|
|
275
|
+
# Export history as JSON with Privacy Mode enabled
|
|
276
|
+
blip --history 0 --privacy --json
|
|
277
|
+
|
|
278
|
+
# Use a different database
|
|
279
|
+
blip --history --db /path/to/history.db
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
History queries return `total_runs`, `shown_runs`, aggregate `stats` (average and peak download/upload), and a `runs` array.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Reference
|
|
287
|
+
|
|
288
|
+
### TUI keybindings
|
|
289
|
+
|
|
290
|
+
| Key | Action |
|
|
291
|
+
| :--- | :--- |
|
|
292
|
+
| `R` | Start a new speed test |
|
|
293
|
+
| `S` | Cycle payload preset (`25 MB` → `50 MB` → `100 MB`) |
|
|
294
|
+
| `↑` / `↓` | Browse test history rows |
|
|
295
|
+
| `Enter` | Open run details modal (`Esc`, `Enter`, `Q`, or `C` to close; `←`/`→` or `↑`/`↓` to step runs) |
|
|
296
|
+
| `P` | Toggle Privacy Mode |
|
|
297
|
+
| `D` | Delete the selected run from SQLite history |
|
|
298
|
+
| `Q` | Quit `blip` |
|
|
299
|
+
|
|
300
|
+
### CLI flags
|
|
301
|
+
|
|
302
|
+
| Flag | Default | Description |
|
|
303
|
+
| :--- | :--- | :--- |
|
|
304
|
+
| `-v`, `--version` | — | Show `blip` version and exit |
|
|
305
|
+
| `--run`, `--cli` | `False` | Run a speed test in non-TUI CLI mode and print logs to `stdout` |
|
|
306
|
+
| `--history [N]` | `20` | Print saved test history from SQLite to `stdout` (`0` for all runs) |
|
|
307
|
+
| `-s`, `--size {25,50,100}` | `25` | Download payload preset in MB (`25`, `50`, or `100`) |
|
|
308
|
+
| `-p`, `--privacy` | `False` | Enable Privacy Mode (redact ISP, location, IPs, device, VPN, edge) |
|
|
309
|
+
| `--no-save` | `False` | Do not save the CLI test result to SQLite history (CLI mode only) |
|
|
310
|
+
| `--db PATH` | `~/.blip/history.db` | Custom path to the SQLite history database |
|
|
311
|
+
| `--json` | `False` | Output the CLI test result as JSON (implies `--run`) |
|
|
312
|
+
| `--no-color` | `False` | Disable ANSI colors in CLI mode |
|
|
313
|
+
|
|
314
|
+
### Payload presets
|
|
315
|
+
|
|
316
|
+
| Preset | Download payload | Upload payload |
|
|
317
|
+
| :--- | :---: | :---: |
|
|
318
|
+
| `25 MB` *(default)* | 25 MB | 10 MB |
|
|
319
|
+
| `50 MB` | 50 MB | 20 MB |
|
|
320
|
+
| `100 MB` | 100 MB | 25 MB |
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Privacy Mode
|
|
325
|
+
|
|
326
|
+
Enable with `-p` / `--privacy`, or press `P` in the TUI. `blip` redacts sensitive metadata across every UI surface and CLI output:
|
|
327
|
+
|
|
328
|
+
- **ISP:** `ISP Hidden` / `ISP Hidden (AS•••••)`
|
|
329
|
+
- **Location:** `Location Hidden`
|
|
330
|
+
- **Public IP & LAN IP:** `•••.•••.•••.•••`
|
|
331
|
+
- **Interface:** keeps the media type (`Wi-Fi`, `Ethernet`), masks the device name as `(•••)`
|
|
332
|
+
- **VPN:** `•••` when active, blank when inactive
|
|
333
|
+
- **Edge node:** `••• (Location Hidden)`
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## Data and storage
|
|
338
|
+
|
|
339
|
+
- Everything is stored locally in SQLite at `~/.blip/history.db` (override with `--db`).
|
|
340
|
+
- Use `--no-save` for one-off CLI tests, or press `D` in the TUI to delete a run.
|
|
341
|
+
- New columns are added through idempotent migrations, so older databases upgrade in place.
|
|
342
|
+
- `blip` contains no telemetry, analytics, or accounts. The only network calls are to the speed test endpoints.
|
|
343
|
+
- Removing `~/.blip` deletes all saved history; the app recreates it on the next run.
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
## Troubleshooting
|
|
348
|
+
|
|
349
|
+
| Symptom | Fix |
|
|
350
|
+
| :--- | :--- |
|
|
351
|
+
| `blip: command not found` | Add the install directory to `PATH`: `export PATH="$HOME/.local/bin:$PATH"`, then restart your shell. |
|
|
352
|
+
| `Terminal window too small` | Resize to at least **82×27** characters, or zoom out the terminal font. |
|
|
353
|
+
| macOS blocks the binary | Remove the quarantine flag: `xattr -d com.apple.quarantine "$(command -v blip)"`. |
|
|
354
|
+
| `unsupported ... architecture` or musl Linux | Use PyPI: `pipx install blip-speedtest`, or [run from source](#from-source). |
|
|
355
|
+
| TLS certificate errors | Point `blip` at your trust store: `SSL_CERT_FILE=/etc/ssl/cert.pem blip --run`. |
|
|
356
|
+
| Test fails behind a firewall or proxy | `blip` retries with fallback endpoints; if it still fails, try another network or payload size. |
|
|
357
|
+
| History looks empty | You may be reading a different database; pass the same `--db` path you tested with. |
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## How it works
|
|
362
|
+
|
|
363
|
+
1. **Metadata** — `GET /meta` on `speed.cloudflare.com` returns ISP/ASN, location, public IP, and the edge `colo`.
|
|
364
|
+
2. **Latency** — one warmup request followed by four timed requests; the median round-trip time is reported.
|
|
365
|
+
3. **Download** — streams `GET /__down?bytes=N` in 64 KB chunks with live throughput updates.
|
|
366
|
+
4. **Upload** — streams `POST /__up` in 128 KB chunks with live throughput updates.
|
|
367
|
+
5. **Fallback** — if Cloudflare returns an HTTP 403 or WAF block, metadata moves to `ipinfo.io`, download to `nbg1-speed.hetzner.com`, and upload to `postman-echo.com`.
|
|
368
|
+
|
|
369
|
+
Interfaces and VPNs are detected separately: physical links (`en*`, `eth*`, `wl*`, `wwan*`) are reported as media type plus device, while tunnel interfaces (`utun`, `tun`, `tap`, `wg`, `tailscale`, `ppp`, `ipsec`, `zt`, `nordlynx`, `proton`, `mullvad`) are reported as the active VPN.
|
|
370
|
+
|
|
371
|
+
---
|
|
372
|
+
|
|
373
|
+
## Development
|
|
374
|
+
|
|
375
|
+
```bash
|
|
376
|
+
python3 -m venv .venv
|
|
377
|
+
.venv/bin/pip install -r requirements-dev.txt
|
|
378
|
+
python3 -m py_compile blip.py
|
|
379
|
+
python3 scripts/check_stdlib_only.py
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
Build a standalone binary for the current machine:
|
|
383
|
+
|
|
384
|
+
```bash
|
|
385
|
+
./scripts/build_macos_binary.sh # macOS
|
|
386
|
+
./scripts/build_linux_binary.sh x86_64 # Linux
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
Regenerate the README demos with [`./assets/record.sh`](https://github.com/picogeeks/blip/blob/main/assets/record.sh) after any TUI or CLI output change. Release tags, GitHub Releases, and the asset layout are documented in [`docs/RELEASING.md`](https://github.com/picogeeks/blip/blob/main/docs/RELEASING.md).
|
|
390
|
+
|
|
391
|
+
Contributions are welcome. `blip.py` must remain a single file with **standard-library imports only**; CI enforces this with [`scripts/check_stdlib_only.py`](https://github.com/picogeeks/blip/blob/main/scripts/check_stdlib_only.py). See [`AGENTS.md`](https://github.com/picogeeks/blip/blob/main/AGENTS.md) for the full project guardrails.
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## License
|
|
396
|
+
|
|
397
|
+
[MIT](https://github.com/picogeeks/blip/blob/main/LICENSE) © 2026 Soumitri Pattnaik • [picogeeks.com](https://picogeeks.com)
|