webstat 0.1.0__py3-none-any.whl
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.
- webstat/__init__.py +3 -0
- webstat/cli.py +407 -0
- webstat/core/checker.py +177 -0
- webstat/core/models.py +113 -0
- webstat/core/notifier.py +157 -0
- webstat/core/scheduler.py +110 -0
- webstat/core/store.py +210 -0
- webstat/utils/__init__.py +5 -0
- webstat/utils/formatting.py +74 -0
- webstat/utils/url.py +62 -0
- webstat-0.1.0.dist-info/METADATA +111 -0
- webstat-0.1.0.dist-info/RECORD +16 -0
- webstat-0.1.0.dist-info/WHEEL +5 -0
- webstat-0.1.0.dist-info/entry_points.txt +2 -0
- webstat-0.1.0.dist-info/licenses/LICENSE +21 -0
- webstat-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: webstat
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Fast website status checker, recovery watcher, and desktop reminder
|
|
5
|
+
Author: h45sh
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/h45sh/webstat
|
|
8
|
+
Project-URL: Repository, https://github.com/h45sh/webstat
|
|
9
|
+
Project-URL: Issues, https://github.com/h45sh/webstat/issues
|
|
10
|
+
Keywords: website,uptime,status,monitoring,cli,desktop-widget,omarchy
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
21
|
+
Classifier: Topic :: System :: Monitoring
|
|
22
|
+
Classifier: Topic :: System :: Networking :: Monitoring
|
|
23
|
+
Requires-Python: >=3.10
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: httpx>=0.25.0
|
|
27
|
+
Requires-Dist: rich>=13.0.0
|
|
28
|
+
Requires-Dist: typer>=0.9.0
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
31
|
+
Requires-Dist: build>=1.0.0; extra == "dev"
|
|
32
|
+
Requires-Dist: twine>=4.0.0; extra == "dev"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
# webstat
|
|
36
|
+
|
|
37
|
+
Fast website status checker, recovery watcher, and desktop reminder for Linux and Omarchy.
|
|
38
|
+
|
|
39
|
+
`webstat` is designed to solve a simple, frustrating problem: a website or service you are trying to use is down or failing to respond, and you don't want to keep pressing `F5` / `Ctrl+R` manually. You enter the site name; `webstat` checks its status immediately, monitors it in the background if it's down, and reminds you the instant it comes back online with an actionable desktop notification and automatic browser launch.
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
|
|
43
|
+
- **Instant Check**: Quick one-shot diagnosis (`webstat github.com` or `webstat check mysite.org`).
|
|
44
|
+
- **Foreground Watch Mode**: Real-time updating terminal status (`webstat watch downsite.com`).
|
|
45
|
+
- **Desktop Recovery Notification**: Dispatches native Omarchy desktop notifications (`omarchy notification send`) or standard `notify-send`.
|
|
46
|
+
- **One-Click Browser Launch**: Click the notification or use the `--open` flag to automatically open the site in your default browser once it recovers.
|
|
47
|
+
- **Persistent Watchlist**: Queue sites for background monitoring (`webstat add`, `webstat list`, `webstat remove`).
|
|
48
|
+
- **Omarchy Shell Integration**: Native top-bar widget and interactive management panel.
|
|
49
|
+
- **SSL Certificate Expiry Warnings**: Alerts if TLS certificates are expiring soon.
|
|
50
|
+
|
|
51
|
+
## Installation
|
|
52
|
+
|
|
53
|
+
### CLI Installation
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Recommended: Install from PyPI via pipx
|
|
57
|
+
pipx install webstat
|
|
58
|
+
# or standard pip:
|
|
59
|
+
pip install webstat
|
|
60
|
+
|
|
61
|
+
# Arch Linux / Omarchy (AUR):
|
|
62
|
+
yay -S webstat-git
|
|
63
|
+
|
|
64
|
+
# Or install from source:
|
|
65
|
+
git clone https://github.com/h45sh/webstat.git
|
|
66
|
+
cd webstat
|
|
67
|
+
pip install .
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Omarchy Shell Plugin Installation
|
|
71
|
+
```bash
|
|
72
|
+
# Add and enable the plugin in Omarchy
|
|
73
|
+
omarchy plugin add https://github.com/h45sh/omarchy-webstat.git --enable
|
|
74
|
+
```
|
|
75
|
+
Or for local development from this monorepo:
|
|
76
|
+
```bash
|
|
77
|
+
cp -r plugin ~/.config/omarchy/plugins/h45sh.webstat
|
|
78
|
+
omarchy plugin enable h45sh.webstat
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Usage
|
|
82
|
+
|
|
83
|
+
### Quick Status Check
|
|
84
|
+
```bash
|
|
85
|
+
webstat github.com
|
|
86
|
+
webstat check httpbin.org/status/503 --watch
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Watching a Site Until Recovery
|
|
90
|
+
```bash
|
|
91
|
+
# Watch until online and automatically open in browser
|
|
92
|
+
webstat watch mysite.com --open
|
|
93
|
+
|
|
94
|
+
# Watch multiple sites concurrently
|
|
95
|
+
webstat watch github.com api.mycorp.internal staging.service.io
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Background Watchlist Management
|
|
99
|
+
```bash
|
|
100
|
+
# Add a site to monitor in background
|
|
101
|
+
webstat add api.myservice.com --open
|
|
102
|
+
|
|
103
|
+
# View current status of all monitored sites
|
|
104
|
+
webstat list
|
|
105
|
+
|
|
106
|
+
# Remove a site
|
|
107
|
+
webstat remove api.myservice.com
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
MIT © [h45sh](https://github.com/h45sh)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
webstat/__init__.py,sha256=FoZH8t8WfyEpZKOkeDlFIOms5BwIQg330SXpRzP1J4g,89
|
|
2
|
+
webstat/cli.py,sha256=h3hShqQxbRyYTM4uB3et5WwJjN4QX8tgQknLQ-nxNtI,13474
|
|
3
|
+
webstat/core/checker.py,sha256=AAJtD7Xp_JAN_EE_ZTsCDHVN3l2R8TO90DSUHmLHgbI,6924
|
|
4
|
+
webstat/core/models.py,sha256=AKoPJkKENfUILimTtzVdkx8JQ2FWQoq0BakG-FkY8hw,3506
|
|
5
|
+
webstat/core/notifier.py,sha256=33B1oEOMnlYLUnXpndVgefRsU1Ve8Ur2_CC908aKCbY,4966
|
|
6
|
+
webstat/core/scheduler.py,sha256=8fnZ6pHgBHbZ3QrMxC_oEnhhjEAARyvSguPgUK248Xg,4080
|
|
7
|
+
webstat/core/store.py,sha256=5xbrVYBCfRJy8OhHGJwTBzwAYfnsqLeoeJoaS4L49AE,6853
|
|
8
|
+
webstat/utils/__init__.py,sha256=GleFf989xN6J1GlOsJ-pkjZs5Kel8A4idX5ubWFP1u0,149
|
|
9
|
+
webstat/utils/formatting.py,sha256=rZ876Ss6igu8IR_vhmnYDo9E3ToZy7s6UQMCzu7rbmU,2553
|
|
10
|
+
webstat/utils/url.py,sha256=u3ac5dOK6FLUaTuM8EnjcqGVYZaYH6C-zMEmMp9IoC8,2271
|
|
11
|
+
webstat-0.1.0.dist-info/licenses/LICENSE,sha256=V_rI-zSyaSHXUpZNbU8xiYXqKOgIXUK_NWdmzUt-gWI,1062
|
|
12
|
+
webstat-0.1.0.dist-info/METADATA,sha256=6izPqi8M5CkColh3rzMk-Lg7jN7bWGLWIigUHwj957Q,3889
|
|
13
|
+
webstat-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
14
|
+
webstat-0.1.0.dist-info/entry_points.txt,sha256=0AMNfMVubqUjyj3lNxYHlJyW8sLZp1Mi9M_2b1kw9BQ,45
|
|
15
|
+
webstat-0.1.0.dist-info/top_level.txt,sha256=YxXTP_7ENoTxptlFsE0AzqoQFozu60Xme-ItGF5lmoc,8
|
|
16
|
+
webstat-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 h45sh
|
|
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 @@
|
|
|
1
|
+
webstat
|