citrascope 0.5.0__py3-none-any.whl → 0.5.2__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.
- citrascope/tasks/runner.py +5 -0
- citrascope/web/static/app.js +7 -1
- citrascope/web/static/style.css +5 -0
- {citrascope-0.5.0.dist-info → citrascope-0.5.2.dist-info}/METADATA +4 -3
- {citrascope-0.5.0.dist-info → citrascope-0.5.2.dist-info}/RECORD +8 -7
- citrascope-0.5.2.dist-info/licenses/LICENSE +21 -0
- {citrascope-0.5.0.dist-info → citrascope-0.5.2.dist-info}/WHEEL +0 -0
- {citrascope-0.5.0.dist-info → citrascope-0.5.2.dist-info}/entry_points.txt +0 -0
citrascope/tasks/runner.py
CHANGED
|
@@ -145,6 +145,11 @@ class TaskManager:
|
|
|
145
145
|
now = int(time.time())
|
|
146
146
|
completed = 0
|
|
147
147
|
while True:
|
|
148
|
+
# Check pause status before starting each task
|
|
149
|
+
with self._processing_lock:
|
|
150
|
+
if not self._processing_active:
|
|
151
|
+
break
|
|
152
|
+
|
|
148
153
|
with self.heap_lock:
|
|
149
154
|
if not (self.task_heap and self.task_heap[0][0] <= now):
|
|
150
155
|
break
|
citrascope/web/static/app.js
CHANGED
|
@@ -407,7 +407,7 @@ function updateProcessingState(isActive) {
|
|
|
407
407
|
icon.textContent = 'Pause';
|
|
408
408
|
button.title = 'Pause task processing';
|
|
409
409
|
} else {
|
|
410
|
-
statusEl.innerHTML = '<span class="badge rounded-pill bg-warning">Paused</span>';
|
|
410
|
+
statusEl.innerHTML = '<span class="badge rounded-pill bg-warning text-dark">Paused</span>';
|
|
411
411
|
icon.textContent = 'Resume';
|
|
412
412
|
button.title = 'Resume task processing';
|
|
413
413
|
}
|
|
@@ -686,6 +686,12 @@ document.addEventListener('DOMContentLoaded', async function() {
|
|
|
686
686
|
headerVersion.addEventListener('click', showVersionModal);
|
|
687
687
|
}
|
|
688
688
|
|
|
689
|
+
// Wire up update indicator badge click to open modal
|
|
690
|
+
const updateIndicator = document.getElementById('updateIndicator');
|
|
691
|
+
if (updateIndicator) {
|
|
692
|
+
updateIndicator.addEventListener('click', showVersionModal);
|
|
693
|
+
}
|
|
694
|
+
|
|
689
695
|
// Connect WebSocket with handlers
|
|
690
696
|
connectWebSocket({
|
|
691
697
|
onStatus: updateStatus,
|
citrascope/web/static/style.css
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: citrascope
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
4
4
|
Summary: Remotely control a telescope while it polls for tasks, collects and edge processes data, and delivers results and data for further processing.
|
|
5
5
|
Author-email: Patrick McDavid <patrick@citra.space>
|
|
6
|
-
License
|
|
6
|
+
License: MIT
|
|
7
|
+
License-File: LICENSE
|
|
7
8
|
Requires-Python: <3.13,>=3.10
|
|
8
9
|
Requires-Dist: click
|
|
9
10
|
Requires-Dist: fastapi>=0.104.0
|
|
@@ -48,7 +49,7 @@ Requires-Dist: pytest-cov; extra == 'test'
|
|
|
48
49
|
Description-Content-Type: text/markdown
|
|
49
50
|
|
|
50
51
|
# CitraScope
|
|
51
|
-
[](https://github.com/citra-space/citrascope/actions/workflows/pytest.yml) [](https://github.com/citra-space/citrascope/actions/workflows/pypi-publish.yml)
|
|
52
|
+
[](https://github.com/citra-space/citrascope/actions/workflows/pytest.yml) [](https://github.com/citra-space/citrascope/actions/workflows/pypi-publish.yml) [](https://pypi.org/project/citrascope/) [](https://pypi.org/project/citrascope/) [](https://github.com/citra-space/citrascope/blob/main/LICENSE)
|
|
52
53
|
|
|
53
54
|
Remotely control a telescope while it polls for tasks, collects observations, and delivers data for further processing.
|
|
54
55
|
|
|
@@ -16,7 +16,7 @@ citrascope/logging/web_log_handler.py,sha256=d0XQzHJZ5M1v3H351tdkBYg7EOwFzXpp7PA
|
|
|
16
16
|
citrascope/settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
citrascope/settings/citrascope_settings.py,sha256=C9BgX3vKDnsbwZF1NskUmkczB5ESdOSWPaHrq4rA0aQ,5635
|
|
18
18
|
citrascope/settings/settings_file_manager.py,sha256=Yijb-I9hbbVJ2thkr7OrfkNknSPt1RDpsE7VvqAs0a8,4193
|
|
19
|
-
citrascope/tasks/runner.py,sha256
|
|
19
|
+
citrascope/tasks/runner.py,sha256=77rn8ML7Fpay7B0YbXag6rn70IbEYYVMNNFLLDaHA50,13903
|
|
20
20
|
citrascope/tasks/task.py,sha256=0u0oN56E6KaNz19ba_7WuY43Sk4CTXc8UPT7sdUpRXo,1287
|
|
21
21
|
citrascope/tasks/scope/base_telescope_task.py,sha256=wIdyUxplFNhf_YMdCXOK6pG7HF7tZn_id59TvYyWZAY,9674
|
|
22
22
|
citrascope/tasks/scope/static_telescope_task.py,sha256=XP53zYVcyLHLvebDU06Jx0ghPK3tb0c_XmO60yj_XSA,1132
|
|
@@ -25,14 +25,15 @@ citrascope/web/__init__.py,sha256=CgU36fyNSxGXjUy3hsHwx7UxF8UO4Qsb7PjC9-6tRmY,38
|
|
|
25
25
|
citrascope/web/app.py,sha256=LGimBCHWmaPrLkh6JDpJ7IoC__423lhO7NldQGTFzKI,26181
|
|
26
26
|
citrascope/web/server.py,sha256=IJJk4HgEwcsjHercL-Q5z39NmJRbkNk_51HIUKKhtRE,5242
|
|
27
27
|
citrascope/web/static/api.js,sha256=s-b1FIw-pTo3A8kLlLINVqHhIvfHwTWA7cEvz4N8Gqc,1924
|
|
28
|
-
citrascope/web/static/app.js,sha256=
|
|
28
|
+
citrascope/web/static/app.js,sha256=BtryRqh1ujXXRmAMWLdEhFQtdr_XaxXohagD2HVJMSE,26457
|
|
29
29
|
citrascope/web/static/config.js,sha256=l0brTgkQ4UW-C9a2wabkvVGwb-wPnJSmM4lb63s0KbY,21500
|
|
30
|
-
citrascope/web/static/style.css,sha256=
|
|
30
|
+
citrascope/web/static/style.css,sha256=z5D4FHWm-JBb0Cu0HWPD_4V7qnXNBuOllrPJD9nHI38,2961
|
|
31
31
|
citrascope/web/static/websocket.js,sha256=UITw1DDfehOKpjlltn5MXhewZYGKzPFmaTtMFtC0-Ps,3931
|
|
32
32
|
citrascope/web/static/img/citra.png,sha256=Bq8dPWB6fNz7a_H0FuEtNmZWcPHH2iV2OC-fMg4REbQ,205570
|
|
33
33
|
citrascope/web/static/img/favicon.png,sha256=zrbUlpFXDB_zmsIdhhn8_klnc2Ma3N6Q8ouBMAxFjbM,24873
|
|
34
34
|
citrascope/web/templates/dashboard.html,sha256=7N5JPlihK3WNDe8fnFMfIRfCgp4ZZJLbl2TVc_nY0SU,30119
|
|
35
|
-
citrascope-0.5.
|
|
36
|
-
citrascope-0.5.
|
|
37
|
-
citrascope-0.5.
|
|
38
|
-
citrascope-0.5.
|
|
35
|
+
citrascope-0.5.2.dist-info/METADATA,sha256=R-caZxFgOqFFocrteqsYR8WHEAWPhsDNmyuY_tnYiA4,6828
|
|
36
|
+
citrascope-0.5.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
37
|
+
citrascope-0.5.2.dist-info/entry_points.txt,sha256=fP22Lt8bNZ_whBowDnOWSADf_FUrgAWnIhqqPf5Xo2g,55
|
|
38
|
+
citrascope-0.5.2.dist-info/licenses/LICENSE,sha256=4B_Ug8tnhTwde7QywOV3HhQcweHJeI0QaGdZfJLxsV8,1068
|
|
39
|
+
citrascope-0.5.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Citra Space
|
|
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.
|
|
File without changes
|
|
File without changes
|