hardpy 0.20.0__py3-none-any.whl → 0.21.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.
- hardpy/__init__.py +7 -0
- hardpy/cli/cli.py +23 -0
- hardpy/hardpy_panel/frontend/dist/assets/{allPaths-BXbcAtew.js → allPaths-DVU_E_XC.js} +1 -1
- hardpy/hardpy_panel/frontend/dist/assets/{allPathsLoader-lJLHMNNZ.js → allPathsLoader-CFAlzjQy.js} +2 -2
- hardpy/hardpy_panel/frontend/dist/assets/{browser-ponyfill-DzwgrUwX.js → browser-ponyfill-B1gKhtku.js} +1 -1
- hardpy/hardpy_panel/frontend/dist/assets/{index-CVhA7vmQ.js → index-CtqvceCR.js} +110 -243
- hardpy/hardpy_panel/frontend/dist/assets/index-DN3Ur-pw.css +1 -0
- hardpy/hardpy_panel/frontend/dist/assets/{splitPathsBySizeLoader-BdwEQHyO.js → splitPathsBySizeLoader-BPAObw1D.js} +1 -1
- hardpy/hardpy_panel/frontend/dist/index.html +2 -2
- hardpy/pytest_hardpy/utils/dialog_box.py +3 -0
- {hardpy-0.20.0.dist-info → hardpy-0.21.0.dist-info}/METADATA +21 -19
- {hardpy-0.20.0.dist-info → hardpy-0.21.0.dist-info}/RECORD +15 -15
- hardpy/hardpy_panel/frontend/dist/assets/index-B7T9xvaW.css +0 -1
- {hardpy-0.20.0.dist-info → hardpy-0.21.0.dist-info}/WHEEL +0 -0
- {hardpy-0.20.0.dist-info → hardpy-0.21.0.dist-info}/entry_points.txt +0 -0
- {hardpy-0.20.0.dist-info → hardpy-0.21.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o,a as _,b as i,p as c,I as u}from"./index-
|
|
1
|
+
import{_ as o,a as _,b as i,p as c,I as u}from"./index-CtqvceCR.js";var p=function(n,s){return o(void 0,void 0,void 0,function(){var a,r;return _(this,function(e){switch(e.label){case 0:return a=c(n),s!==u.STANDARD?[3,2]:[4,i(()=>import("./index-DLOviMB1.js").then(t=>t.I),[])];case 1:return r=e.sent(),[3,4];case 2:return[4,i(()=>import("./index-B-fsa5Ru.js").then(t=>t.I),[])];case 3:r=e.sent(),e.label=4;case 4:return[2,r[a]]}})})};export{p as splitPathsBySizeLoader};
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
26
|
-->
|
|
27
27
|
<title>HardPy Operator Panel</title>
|
|
28
|
-
<script type="module" crossorigin src="/assets/index-
|
|
29
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
28
|
+
<script type="module" crossorigin src="/assets/index-CtqvceCR.js"></script>
|
|
29
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DN3Ur-pw.css">
|
|
30
30
|
</head>
|
|
31
31
|
<body>
|
|
32
32
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
@@ -367,6 +367,7 @@ class DialogBox:
|
|
|
367
367
|
image (ImageComponent | None): image
|
|
368
368
|
font_size (int): font size
|
|
369
369
|
pass_fail (bool): enable pass/fail buttons instead of confirm button
|
|
370
|
+
button_text (list | None): user text for buttons
|
|
370
371
|
"""
|
|
371
372
|
|
|
372
373
|
def __init__( # noqa: PLR0913
|
|
@@ -378,6 +379,7 @@ class DialogBox:
|
|
|
378
379
|
html: HTMLComponent | None = None,
|
|
379
380
|
font_size: int = 14,
|
|
380
381
|
pass_fail: bool = False,
|
|
382
|
+
button_text: list | None = None,
|
|
381
383
|
) -> None:
|
|
382
384
|
self.widget: IWidget = BaseWidget() if widget is None else widget
|
|
383
385
|
self.image: ImageComponent | None = image
|
|
@@ -388,6 +390,7 @@ class DialogBox:
|
|
|
388
390
|
self.id = str(uuid4())
|
|
389
391
|
self.font_size = font_size
|
|
390
392
|
self.pass_fail: bool = pass_fail
|
|
393
|
+
self.button_text: list = button_text
|
|
391
394
|
|
|
392
395
|
if font_size < 1:
|
|
393
396
|
msg = "The 'font_size' argument cannot be less than 1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hardpy
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.21.0
|
|
4
4
|
Summary: HardPy library for device testing
|
|
5
5
|
Project-URL: Homepage, https://github.com/everypinio/hardpy/
|
|
6
6
|
Project-URL: Documentation, https://everypinio.github.io/hardpy/
|
|
@@ -101,18 +101,19 @@ pip install hardpy
|
|
|
101
101
|
### With CouchDB
|
|
102
102
|
|
|
103
103
|
1. Create your first test bench.
|
|
104
|
-
```bash
|
|
105
|
-
hardpy init
|
|
106
|
-
```
|
|
107
|
-
2. Launch [CouchDB](https://couchdb.apache.org/) database via [docker compose](https://docs.docker.com/compose/)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
```bash
|
|
105
|
+
hardpy init
|
|
106
|
+
```
|
|
107
|
+
2. Launch [CouchDB](https://couchdb.apache.org/) database via [docker compose](https://docs.docker.com/compose/)
|
|
108
|
+
in the background.
|
|
109
|
+
```bash
|
|
110
|
+
cd tests
|
|
111
|
+
docker compose up -d
|
|
112
|
+
```
|
|
112
113
|
3. Launch HardPy operator panel.
|
|
113
|
-
```bash
|
|
114
|
-
hardpy run
|
|
115
|
-
```
|
|
114
|
+
```bash
|
|
115
|
+
hardpy run
|
|
116
|
+
```
|
|
116
117
|
4. View operator panel in browser: http://localhost:8000/
|
|
117
118
|
5. View the latest test report: http://localhost:5984/_utils
|
|
118
119
|
|
|
@@ -121,13 +122,13 @@ hardpy run
|
|
|
121
122
|
### Without a database
|
|
122
123
|
|
|
123
124
|
1. Create your first test bench.
|
|
124
|
-
```bash
|
|
125
|
-
hardpy init --no-create-database --storage-type json
|
|
126
|
-
```
|
|
125
|
+
```bash
|
|
126
|
+
hardpy init --no-create-database --storage-type json
|
|
127
|
+
```
|
|
127
128
|
2. Launch HardPy operator panel.
|
|
128
|
-
```bash
|
|
129
|
-
hardpy run
|
|
130
|
-
```
|
|
129
|
+
```bash
|
|
130
|
+
hardpy run
|
|
131
|
+
```
|
|
131
132
|
3. View operator panel in browser: http://localhost:8000/
|
|
132
133
|
|
|
133
134
|
## Examples
|
|
@@ -145,4 +146,5 @@ open libraries to interact with measuring equipment.
|
|
|
145
146
|
* [PyMeasure](https://github.com/pymeasure/pymeasure)
|
|
146
147
|
* [PyTango](https://gitlab.com/tango-controls/pytango)
|
|
147
148
|
* [QCoDeS](https://github.com/microsoft/Qcodes)
|
|
148
|
-
* [QCoDeS contrib drivers](https://github.com/QCoDeS/Qcodes_contrib_drivers)
|
|
149
|
+
* [QCoDeS contrib drivers](https://github.com/QCoDeS/Qcodes_contrib_drivers)
|
|
150
|
+
* [Labgrid](https://github.com/labgrid-project/labgrid)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
hardpy/__init__.py,sha256=
|
|
1
|
+
hardpy/__init__.py,sha256=v6qI9mmrT9SBKofj1jVUE5paNGrPEJvNtDh4dh2P4FQ,3152
|
|
2
2
|
hardpy/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
hardpy/cli/cli.py,sha256=
|
|
3
|
+
hardpy/cli/cli.py,sha256=Ef4mrvA5vNTpbEXu6B1K4yaROJKyYQJsPHR5exDhI48,12109
|
|
4
4
|
hardpy/cli/template.py,sha256=kOl8hsj6iBTFIDUli_dzHkH8mlnoJzOlr9muLpTEayg,6230
|
|
5
5
|
hardpy/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
hardpy/common/config.py,sha256=GmDCeCkv3eSY214x_n3f1q5G9qkbXRBp5sZ7llH_UFk,8340
|
|
@@ -15,12 +15,12 @@ hardpy/common/stand_cloud/utils.py,sha256=GN3wzbrmF-Xe5iUXf_HurGO-YKltqd3Gc_7vG2
|
|
|
15
15
|
hardpy/hardpy_panel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
hardpy/hardpy_panel/api.py,sha256=On7WeTBFg9efFAgsNjh5nAOrikrzX-D0T100y_dF6a4,12662
|
|
17
17
|
hardpy/hardpy_panel/frontend/dist/favicon.ico,sha256=sgIk5PKUKEKBDpkSrc8dJgjpObp0iF82Mec0GpfKId4,15406
|
|
18
|
-
hardpy/hardpy_panel/frontend/dist/index.html,sha256=
|
|
18
|
+
hardpy/hardpy_panel/frontend/dist/index.html,sha256=5D6GpjixszVIZoA0Je6yC9333rPs2VDh67XQRtIAH_g,1851
|
|
19
19
|
hardpy/hardpy_panel/frontend/dist/logo192.png,sha256=E4K7drvhJCg9HcTpRihOXZhVJVBZ7-W97Se-3tDb46o,14485
|
|
20
20
|
hardpy/hardpy_panel/frontend/dist/logo512.png,sha256=-fIMbqX7PYUpheK4kX1C1erRTe_hHZwFQYDLrAbhFRU,34188
|
|
21
21
|
hardpy/hardpy_panel/frontend/dist/manifest.json,sha256=PfmJlN2JMJtHS6OnhU4b4X5wPQC_yRBdjesjoirObSA,502
|
|
22
|
-
hardpy/hardpy_panel/frontend/dist/assets/allPaths-
|
|
23
|
-
hardpy/hardpy_panel/frontend/dist/assets/allPathsLoader-
|
|
22
|
+
hardpy/hardpy_panel/frontend/dist/assets/allPaths-DVU_E_XC.js,sha256=FWne8t5xryIJRlKl7QgNYH-UKSDSOeQRvAn9JpXxZk0,309
|
|
23
|
+
hardpy/hardpy_panel/frontend/dist/assets/allPathsLoader-CFAlzjQy.js,sha256=wYrKppgYXtvg827dKGT-X8meQjunLbfAsPE1IFpXViQ,550
|
|
24
24
|
hardpy/hardpy_panel/frontend/dist/assets/blueprint-icons-16-B2twAPZE.ttf,sha256=OcrUHPBAaLvJxb2DOethXFXg8PClDcyvpsh0mToLFPM,136248
|
|
25
25
|
hardpy/hardpy_panel/frontend/dist/assets/blueprint-icons-16-C0Unyq1d.eot,sha256=Bl93LjY8pyBj0Iip1lUxMM-0l1zLrRjoGmKPPnAQIgw,136456
|
|
26
26
|
hardpy/hardpy_panel/frontend/dist/assets/blueprint-icons-16-CVy9qFng.svg,sha256=57jlcc-NFRVJNJ3t-1fOnJvgdbYhcrF5a06LJLhWc5A,601027
|
|
@@ -31,13 +31,13 @@ hardpy/hardpy_panel/frontend/dist/assets/blueprint-icons-20-CjKGIKxE.woff,sha256
|
|
|
31
31
|
hardpy/hardpy_panel/frontend/dist/assets/blueprint-icons-20-DQ09GSQq.svg,sha256=3gLRYNxd_Y4iz6pspH4Bf7Ql4F6LH5haZzbTfxA53HQ,638634
|
|
32
32
|
hardpy/hardpy_panel/frontend/dist/assets/blueprint-icons-20-DmR755bS.ttf,sha256=yr5g5Jw9ZnxJJ7e1quOv977VE3NU2GRB60BMRrOJrcI,139424
|
|
33
33
|
hardpy/hardpy_panel/frontend/dist/assets/blueprint-icons-20-p9MhBXD8.eot,sha256=CFx8t8ONhB4INIrK860N56_t1dmS7FuRF7i0HKKo58k,139632
|
|
34
|
-
hardpy/hardpy_panel/frontend/dist/assets/browser-ponyfill-
|
|
34
|
+
hardpy/hardpy_panel/frontend/dist/assets/browser-ponyfill-B1gKhtku.js,sha256=z0pbREcHJqZ8dCnI9GGYESltU6TDMJKuVd8EPaBga_w,10294
|
|
35
35
|
hardpy/hardpy_panel/frontend/dist/assets/index-B-fsa5Ru.js,sha256=IonL7d7ppdDr-_FRJZQPWI4HHFTiygYvZGVlUxHY9R8,294235
|
|
36
|
-
hardpy/hardpy_panel/frontend/dist/assets/index-
|
|
37
|
-
hardpy/hardpy_panel/frontend/dist/assets/index-CVhA7vmQ.js,sha256=aIaCyBi75O1XOfSLpfXtxreTMrV2_9MmMXOrlfamuY0,6027073
|
|
36
|
+
hardpy/hardpy_panel/frontend/dist/assets/index-CtqvceCR.js,sha256=ljFRTUNONzoDwSXbGg4XOPHzGVJJgvJRHt0dYlS7388,6023316
|
|
38
37
|
hardpy/hardpy_panel/frontend/dist/assets/index-DLOviMB1.js,sha256=sI0W1vvwqvIwKP2_jglrwOhej3n5rJD72-d4ZhlUHqM,285612
|
|
38
|
+
hardpy/hardpy_panel/frontend/dist/assets/index-DN3Ur-pw.css,sha256=YK8qZP_lqbEIQnwB37MuRXDMPr_n_sQUx09yXvA2S4o,315426
|
|
39
39
|
hardpy/hardpy_panel/frontend/dist/assets/logo_smol-CK3jE85c.png,sha256=E4K7drvhJCg9HcTpRihOXZhVJVBZ7-W97Se-3tDb46o,14485
|
|
40
|
-
hardpy/hardpy_panel/frontend/dist/assets/splitPathsBySizeLoader-
|
|
40
|
+
hardpy/hardpy_panel/frontend/dist/assets/splitPathsBySizeLoader-BPAObw1D.js,sha256=I-Se3KiTy6vsKSaXKReDYDWH2OUEtST9GWz-3L68E8k,472
|
|
41
41
|
hardpy/hardpy_panel/frontend/dist/locales/cs/translation.json,sha256=kCSbBWfQQ6lrVKlOeByXAhAoG5bBxrxf7-PTvvQgR2M,2964
|
|
42
42
|
hardpy/hardpy_panel/frontend/dist/locales/de/translation.json,sha256=wZRO5iz8VvaEjACSWHJNjjKerd8YcPo7gpziCpjfF1Q,3073
|
|
43
43
|
hardpy/hardpy_panel/frontend/dist/locales/en/translation.json,sha256=_vsAG4aOto5C-xiCQK0zip02u6f9wHr-T_BRr_DUdTo,2776
|
|
@@ -75,13 +75,13 @@ hardpy/pytest_hardpy/result/report_synchronizer/__init__.py,sha256=QezaT_Yk8Lrci
|
|
|
75
75
|
hardpy/pytest_hardpy/result/report_synchronizer/synchronizer.py,sha256=r26sfyf__HiYlC385D4Vc3gYNl46jlAc86CaasLzckg,5379
|
|
76
76
|
hardpy/pytest_hardpy/utils/__init__.py,sha256=zHln8ySBHesYAwYatLYkHol5TuuTTNOqrsMP7ONFEG0,1338
|
|
77
77
|
hardpy/pytest_hardpy/utils/const.py,sha256=xS3jBrW_D6IUTlAjSnLiHvSthieRHCj3uN_6fFAXS0w,1832
|
|
78
|
-
hardpy/pytest_hardpy/utils/dialog_box.py,sha256=
|
|
78
|
+
hardpy/pytest_hardpy/utils/dialog_box.py,sha256=Cj8b7Ry8m-ffEqfZwivsvnooQ_shvNbNNVRaVgVjtGQ,11518
|
|
79
79
|
hardpy/pytest_hardpy/utils/exception.py,sha256=1l2VBZLUnjPDoOs744MtaP7Y9FuXUq7koSdH2Eo31nk,1042
|
|
80
80
|
hardpy/pytest_hardpy/utils/machineid.py,sha256=6JAzUt7KtjTYn8kL9hSMaCQ20U8liH-zDT9v-5Ch7Q8,296
|
|
81
81
|
hardpy/pytest_hardpy/utils/node_info.py,sha256=DaW566WvsyWR66CThuZ38UoHwQa-pu-4WRLg61OXDnE,7134
|
|
82
82
|
hardpy/pytest_hardpy/utils/progress_calculator.py,sha256=TPl2gG0ZSvMe8otPythhF9hkD6fa6-mJAhy9yI83-yE,1071
|
|
83
|
-
hardpy-0.
|
|
84
|
-
hardpy-0.
|
|
85
|
-
hardpy-0.
|
|
86
|
-
hardpy-0.
|
|
87
|
-
hardpy-0.
|
|
83
|
+
hardpy-0.21.0.dist-info/METADATA,sha256=12kd6KZyfmQWHRZt31TUXUJ_Wb-2e8FZAB7IMsIQjpI,5506
|
|
84
|
+
hardpy-0.21.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
85
|
+
hardpy-0.21.0.dist-info/entry_points.txt,sha256=nL2sMkKMScNaOE0IPkYnu9Yr-BUswZvGSrwY-SxHY3E,102
|
|
86
|
+
hardpy-0.21.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
87
|
+
hardpy-0.21.0.dist-info/RECORD,,
|