pendify 0.1.8__tar.gz → 0.1.9__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.
- {pendify-0.1.8/src/pendify.egg-info → pendify-0.1.9}/PKG-INFO +3 -3
- {pendify-0.1.8 → pendify-0.1.9}/README.md +2 -2
- {pendify-0.1.8 → pendify-0.1.9}/pyproject.toml +1 -1
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/watcher.py +9 -1
- {pendify-0.1.8 → pendify-0.1.9/src/pendify.egg-info}/PKG-INFO +3 -3
- {pendify-0.1.8 → pendify-0.1.9}/LICENSE +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/MANIFEST.in +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/setup.cfg +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/__init__.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/__main__.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/alert.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/autostart.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/client.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/codes.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/config.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/icon.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/page.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/pairing.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/pendify.ico +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/plate_almena.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/qr.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/runfile.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/tray.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/update.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify/worker.py +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify.egg-info/SOURCES.txt +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify.egg-info/dependency_links.txt +0 -0
- {pendify-0.1.8 → pendify-0.1.9}/src/pendify.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pendify
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
4
4
|
Summary: Pairs this PC with a phone account by a QR on a loopback page and sends it two kinds of alerts.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/ElkinDev/PendiFy
|
|
@@ -73,7 +73,7 @@ El botón de arriba a la derecha cambia entre el tema claro y el oscuro, y el pr
|
|
|
73
73
|
|
|
74
74
|
### Qué envía y a quién
|
|
75
75
|
|
|
76
|
-
Solo envía, al servicio de enlace de Pendi, el tipo de aviso (partida encontrada o partida empezada) junto con el identificador del enlace y el secreto de este PC, que viven en `%APPDATA%\pendify\config.json`. El servicio lo entrega a la cuenta que enlazaste. No envía tu nombre, tus partidas ni nada más del juego. Para saber cuándo empieza la partida lee el reloj del juego en este mismo PC, y no lo guarda ni lo envía. Si el juego no da su reloj, lee en su lugar el registro propio del juego en este mismo PC, solo la hora de dos clases de línea, y no guarda ni envía nada de él.
|
|
76
|
+
Solo envía, al servicio de enlace de Pendi, el tipo de aviso (partida encontrada o partida empezada) junto con el identificador del enlace y el secreto de este PC, que viven en `%APPDATA%\pendify\config.json`. El servicio lo entrega a la cuenta que enlazaste. No envía tu nombre, tus partidas ni nada más del juego. Para saber cuándo empieza la partida lee el reloj del juego en este mismo PC, y no lo guarda ni lo envía. Si el juego no da su reloj, lee en su lugar el registro propio del juego en este mismo PC, solo la hora de dos clases de línea, y no guarda ni envía nada de él. Una vez empezada la partida, pregunta al cliente del juego una vez cada cinco segundos, solo para ver cuándo termina.
|
|
77
77
|
|
|
78
78
|
### `--dry`
|
|
79
79
|
|
|
@@ -152,7 +152,7 @@ License: MIT
|
|
|
152
152
|
python -m pendify ping <kind>
|
|
153
153
|
|
|
154
154
|
The first loads the config, starts the page and opens it in the default browser, paired or not.
|
|
155
|
-
It also watches the game client on this PC: when a match is found it accepts after a short random delay, beeps, and sends the found-match alert; when the loading screen starts it beeps, and when the match itself starts it beeps and sends the started alert.
|
|
155
|
+
It also watches the game client on this PC: when a match is found it accepts after a short random delay, beeps, and sends the found-match alert; when the loading screen starts it beeps, and when the match itself starts it beeps and sends the started alert. Once the match has started it asks the game client once every five seconds, only to see the match end.
|
|
156
156
|
Add `--dry` to watch and alert without accepting. Add `--quiet` for the start by the system at logon, the line the start with Windows switch writes (`pythonw -m pendify --quiet`): it never opens the browser, a start that ends well shows no window, and a second quiet start prints `already running` and exits. One copy runs per config folder: a second start opens the page of the one that runs and exits. Ctrl+C stops the page and the watcher together.
|
|
157
157
|
The second sends one alert with the stored pair and prints one line with the answer.
|
|
158
158
|
|
|
@@ -57,7 +57,7 @@ El botón de arriba a la derecha cambia entre el tema claro y el oscuro, y el pr
|
|
|
57
57
|
|
|
58
58
|
### Qué envía y a quién
|
|
59
59
|
|
|
60
|
-
Solo envía, al servicio de enlace de Pendi, el tipo de aviso (partida encontrada o partida empezada) junto con el identificador del enlace y el secreto de este PC, que viven en `%APPDATA%\pendify\config.json`. El servicio lo entrega a la cuenta que enlazaste. No envía tu nombre, tus partidas ni nada más del juego. Para saber cuándo empieza la partida lee el reloj del juego en este mismo PC, y no lo guarda ni lo envía. Si el juego no da su reloj, lee en su lugar el registro propio del juego en este mismo PC, solo la hora de dos clases de línea, y no guarda ni envía nada de él.
|
|
60
|
+
Solo envía, al servicio de enlace de Pendi, el tipo de aviso (partida encontrada o partida empezada) junto con el identificador del enlace y el secreto de este PC, que viven en `%APPDATA%\pendify\config.json`. El servicio lo entrega a la cuenta que enlazaste. No envía tu nombre, tus partidas ni nada más del juego. Para saber cuándo empieza la partida lee el reloj del juego en este mismo PC, y no lo guarda ni lo envía. Si el juego no da su reloj, lee en su lugar el registro propio del juego en este mismo PC, solo la hora de dos clases de línea, y no guarda ni envía nada de él. Una vez empezada la partida, pregunta al cliente del juego una vez cada cinco segundos, solo para ver cuándo termina.
|
|
61
61
|
|
|
62
62
|
### `--dry`
|
|
63
63
|
|
|
@@ -136,7 +136,7 @@ License: MIT
|
|
|
136
136
|
python -m pendify ping <kind>
|
|
137
137
|
|
|
138
138
|
The first loads the config, starts the page and opens it in the default browser, paired or not.
|
|
139
|
-
It also watches the game client on this PC: when a match is found it accepts after a short random delay, beeps, and sends the found-match alert; when the loading screen starts it beeps, and when the match itself starts it beeps and sends the started alert.
|
|
139
|
+
It also watches the game client on this PC: when a match is found it accepts after a short random delay, beeps, and sends the found-match alert; when the loading screen starts it beeps, and when the match itself starts it beeps and sends the started alert. Once the match has started it asks the game client once every five seconds, only to see the match end.
|
|
140
140
|
Add `--dry` to watch and alert without accepting. Add `--quiet` for the start by the system at logon, the line the start with Windows switch writes (`pythonw -m pendify --quiet`): it never opens the browser, a start that ends well shows no window, and a second quiet start prints `already running` and exits. One copy runs per config folder: a second start opens the page of the one that runs and exits. Ctrl+C stops the page and the watcher together.
|
|
141
141
|
The second sends one alert with the stored pair and prints one line with the answer.
|
|
142
142
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pendify"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.9"
|
|
8
8
|
description = "Pairs this PC with a phone account by a QR on a loopback page and sends it two kinds of alerts."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -12,7 +12,9 @@ start line stamped no earlier than 30 s before the loading screen. A game that n
|
|
|
12
12
|
announced after 120 s of the watch with InProgress read; a read of a boundary phase, or 120 s with no client,
|
|
13
13
|
ends the watch with no alert. While the game's log shows a join line and no start line, the game in its match and
|
|
14
14
|
not started yet, those 120 s are held, up to 300 s from the loading screen. A reconnect is the same game. The
|
|
15
|
-
console gets fixed lines only: no phase, no port, no clock, no token.
|
|
15
|
+
console gets fixed lines only: no phase, no port, no clock, no token. Once the match has started, or was already
|
|
16
|
+
under way when the client was found, a turn that reads InProgress with no watch running answers IN_GAME_PAUSE, so
|
|
17
|
+
the client is asked once every five seconds, only to see the game end, and a pause from the page waits up to that.
|
|
16
18
|
|
|
17
19
|
pause() and resume() come from the page's thread and only set or clear an event; the loop honors it on its own
|
|
18
20
|
thread. While paused run() makes no step, so nothing reads the client's files or process, its port or the game's
|
|
@@ -41,6 +43,10 @@ GAME_BOUNDARY_PHASES = frozenset({"None", "Lobby", "Matchmaking", READY_CHECK, "
|
|
|
41
43
|
ACCEPT_DELAY = (1.0, 2.5) # S:136
|
|
42
44
|
HOLD_SECONDS = 15.0 # S:778, S:793
|
|
43
45
|
STEP_PAUSE = 0.3 # S:799
|
|
46
|
+
# During a match no watch runs and the phase is read only to see a boundary end the game: one read every five
|
|
47
|
+
# seconds is enough, about 300 in a 25 minute match where 0.3 s made 5,000. A pause from the page waits up to this
|
|
48
|
+
# long; a stop does not, since the sleep is the stop event's wait.
|
|
49
|
+
IN_GAME_PAUSE = 5.0
|
|
44
50
|
NO_CLIENT_PAUSE = 3.0 # S:739
|
|
45
51
|
LIVE_POLL_SECONDS = 1.0 # the game's clock is asked at most once a second during the watch
|
|
46
52
|
LIVE_FALLBACK_SECONDS = 120.0 # restarted by each clock not above zero, the wait announces a game giving no clock
|
|
@@ -209,6 +215,8 @@ class Watcher:
|
|
|
209
215
|
self._forget()
|
|
210
216
|
phase = None
|
|
211
217
|
self._watch(phase)
|
|
218
|
+
if phase == IN_PROGRESS and self._watch_since is None: # the match under way: read only to see its end
|
|
219
|
+
return IN_GAME_PAUSE
|
|
212
220
|
return STEP_PAUSE
|
|
213
221
|
|
|
214
222
|
def snapshot(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pendify
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.9
|
|
4
4
|
Summary: Pairs this PC with a phone account by a QR on a loopback page and sends it two kinds of alerts.
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/ElkinDev/PendiFy
|
|
@@ -73,7 +73,7 @@ El botón de arriba a la derecha cambia entre el tema claro y el oscuro, y el pr
|
|
|
73
73
|
|
|
74
74
|
### Qué envía y a quién
|
|
75
75
|
|
|
76
|
-
Solo envía, al servicio de enlace de Pendi, el tipo de aviso (partida encontrada o partida empezada) junto con el identificador del enlace y el secreto de este PC, que viven en `%APPDATA%\pendify\config.json`. El servicio lo entrega a la cuenta que enlazaste. No envía tu nombre, tus partidas ni nada más del juego. Para saber cuándo empieza la partida lee el reloj del juego en este mismo PC, y no lo guarda ni lo envía. Si el juego no da su reloj, lee en su lugar el registro propio del juego en este mismo PC, solo la hora de dos clases de línea, y no guarda ni envía nada de él.
|
|
76
|
+
Solo envía, al servicio de enlace de Pendi, el tipo de aviso (partida encontrada o partida empezada) junto con el identificador del enlace y el secreto de este PC, que viven en `%APPDATA%\pendify\config.json`. El servicio lo entrega a la cuenta que enlazaste. No envía tu nombre, tus partidas ni nada más del juego. Para saber cuándo empieza la partida lee el reloj del juego en este mismo PC, y no lo guarda ni lo envía. Si el juego no da su reloj, lee en su lugar el registro propio del juego en este mismo PC, solo la hora de dos clases de línea, y no guarda ni envía nada de él. Una vez empezada la partida, pregunta al cliente del juego una vez cada cinco segundos, solo para ver cuándo termina.
|
|
77
77
|
|
|
78
78
|
### `--dry`
|
|
79
79
|
|
|
@@ -152,7 +152,7 @@ License: MIT
|
|
|
152
152
|
python -m pendify ping <kind>
|
|
153
153
|
|
|
154
154
|
The first loads the config, starts the page and opens it in the default browser, paired or not.
|
|
155
|
-
It also watches the game client on this PC: when a match is found it accepts after a short random delay, beeps, and sends the found-match alert; when the loading screen starts it beeps, and when the match itself starts it beeps and sends the started alert.
|
|
155
|
+
It also watches the game client on this PC: when a match is found it accepts after a short random delay, beeps, and sends the found-match alert; when the loading screen starts it beeps, and when the match itself starts it beeps and sends the started alert. Once the match has started it asks the game client once every five seconds, only to see the match end.
|
|
156
156
|
Add `--dry` to watch and alert without accepting. Add `--quiet` for the start by the system at logon, the line the start with Windows switch writes (`pythonw -m pendify --quiet`): it never opens the browser, a start that ends well shows no window, and a second quiet start prints `already running` and exits. One copy runs per config folder: a second start opens the page of the one that runs and exits. Ctrl+C stops the page and the watcher together.
|
|
157
157
|
The second sends one alert with the stored pair and prints one line with the answer.
|
|
158
158
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|