zebra-day 1.0.2__py3-none-any.whl → 2.0.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.
Files changed (86) hide show
  1. zebra_day/cli/gui.py +89 -6
  2. zebra_day/etc/printer_config.json +2 -14
  3. zebra_day/etc/printer_config.template.json +17 -9
  4. zebra_day/etc/tmp_printers120.json +10 -0
  5. zebra_day/etc/tmp_printers145.json +10 -0
  6. zebra_day/etc/tmp_printers207.json +10 -0
  7. zebra_day/etc/tmp_printers469.json +10 -0
  8. zebra_day/etc/tmp_printers485.json +10 -0
  9. zebra_day/etc/tmp_printers531.json +10 -0
  10. zebra_day/etc/tmp_printers540.json +10 -0
  11. zebra_day/etc/tmp_printers542.json +10 -0
  12. zebra_day/etc/tmp_printers552.json +10 -0
  13. zebra_day/etc/tmp_printers715.json +10 -0
  14. zebra_day/etc/tmp_printers972.json +10 -0
  15. zebra_day/files/blank_preview.png +0 -0
  16. zebra_day/files/corners_20cmX30cm_preview.png +0 -0
  17. zebra_day/files/generic_2inX1in_preview.png +0 -0
  18. zebra_day/files/test_png_12020.png +0 -0
  19. zebra_day/files/test_png_12352.png +0 -0
  20. zebra_day/files/test_png_15472.png +0 -0
  21. zebra_day/files/test_png_24493.png +0 -0
  22. zebra_day/files/test_png_30069.png +0 -0
  23. zebra_day/files/test_png_47791.png +0 -0
  24. zebra_day/files/test_png_47799.png +0 -0
  25. zebra_day/files/test_png_55588.png +0 -0
  26. zebra_day/files/test_png_58809.png +0 -0
  27. zebra_day/files/test_png_67242.png +0 -0
  28. zebra_day/files/test_png_89893.png +0 -0
  29. zebra_day/files/tube_20mmX30mmA_preview.png +0 -0
  30. zebra_day/print_mgr.py +136 -80
  31. zebra_day/templates/modern/config_backups.html +59 -0
  32. zebra_day/templates/modern/config_editor.html +95 -0
  33. zebra_day/templates/modern/config_new.html +93 -0
  34. zebra_day/templates/modern/print_request.html +9 -5
  35. zebra_day/templates/modern/printer_detail.html +161 -34
  36. zebra_day/templates/modern/printers.html +17 -6
  37. zebra_day/templates/modern/template_editor.html +7 -4
  38. zebra_day/web/app.py +84 -7
  39. zebra_day/web/routers/api.py +155 -5
  40. zebra_day/web/routers/ui.py +155 -570
  41. {zebra_day-1.0.2.dist-info → zebra_day-2.0.0.dist-info}/METADATA +74 -13
  42. {zebra_day-1.0.2.dist-info → zebra_day-2.0.0.dist-info}/RECORD +46 -57
  43. zebra_day/bin/fetch_zebra_config.py +0 -15
  44. zebra_day/bin/generate_coord_grid_zpl.py +0 -50
  45. zebra_day/bin/print_zpl_from_file.py +0 -21
  46. zebra_day/bin/probe_new_label_dimensions.py +0 -75
  47. zebra_day/bin/scan_for_networed_zebra_printers.py +0 -23
  48. zebra_day/bin/scan_for_networed_zebra_printers_arp_scan.sh +0 -1
  49. zebra_day/bin/scan_for_networed_zebra_printers_curl.sh +0 -30
  50. zebra_day/bin/zserve.py +0 -1062
  51. zebra_day/templates/base.html +0 -36
  52. zebra_day/templates/bpr.html +0 -72
  53. zebra_day/templates/build_new_config.html +0 -36
  54. zebra_day/templates/build_print_request.html +0 -32
  55. zebra_day/templates/chg_ui_style.html +0 -19
  56. zebra_day/templates/edit_template.html +0 -128
  57. zebra_day/templates/edit_zpl.html +0 -37
  58. zebra_day/templates/index.html +0 -82
  59. zebra_day/templates/legacy/base.html +0 -37
  60. zebra_day/templates/legacy/bpr.html +0 -72
  61. zebra_day/templates/legacy/build_new_config.html +0 -36
  62. zebra_day/templates/legacy/build_print_request.html +0 -32
  63. zebra_day/templates/legacy/chg_ui_style.html +0 -19
  64. zebra_day/templates/legacy/edit_template.html +0 -128
  65. zebra_day/templates/legacy/edit_zpl.html +0 -37
  66. zebra_day/templates/legacy/index.html +0 -82
  67. zebra_day/templates/legacy/list_prior_configs.html +0 -24
  68. zebra_day/templates/legacy/print_result.html +0 -30
  69. zebra_day/templates/legacy/printer_details.html +0 -25
  70. zebra_day/templates/legacy/printer_status.html +0 -70
  71. zebra_day/templates/legacy/save_result.html +0 -17
  72. zebra_day/templates/legacy/send_print_request.html +0 -34
  73. zebra_day/templates/legacy/simple_print.html +0 -94
  74. zebra_day/templates/legacy/view_pstation_json.html +0 -29
  75. zebra_day/templates/list_prior_configs.html +0 -24
  76. zebra_day/templates/print_result.html +0 -30
  77. zebra_day/templates/printer_details.html +0 -25
  78. zebra_day/templates/printer_status.html +0 -70
  79. zebra_day/templates/save_result.html +0 -17
  80. zebra_day/templates/send_print_request.html +0 -34
  81. zebra_day/templates/simple_print.html +0 -94
  82. zebra_day/templates/view_pstation_json.html +0 -29
  83. {zebra_day-1.0.2.dist-info → zebra_day-2.0.0.dist-info}/WHEEL +0 -0
  84. {zebra_day-1.0.2.dist-info → zebra_day-2.0.0.dist-info}/entry_points.txt +0 -0
  85. {zebra_day-1.0.2.dist-info → zebra_day-2.0.0.dist-info}/licenses/LICENSE +0 -0
  86. {zebra_day-1.0.2.dist-info → zebra_day-2.0.0.dist-info}/top_level.txt +0 -0
@@ -1,70 +0,0 @@
1
- {% extends "base.html" %}
2
-
3
- {% block title %}{{ title }}{% endblock %}
4
-
5
- {% block content %}
6
- <h1>Printer Status Summary For {{ lab }}</h1>
7
- <small><a href="/">BACK HOME</a></small>
8
- <ul>
9
- <hr>
10
- <br>
11
- <table border="1">
12
- <tr>
13
- <th>Printer Name</th>
14
- <th>Printer IP</th>
15
- <th>Label Styles Available</th>
16
- <th>Status on Network</th>
17
- </tr>
18
- {% for printer in printers %}
19
- <tr>
20
- <td>
21
- {{ printer.name }}<br>
22
- <small>{{ printer.model }}<br>{{ printer.serial }}</small>
23
- </td>
24
- <td>
25
- {% if printer.ip_address != 'dl_png' %}
26
- <a href="http://{{ printer.ip_address }}" target="_blank">{{ printer.ip_address }}</a>
27
- {% else %}
28
- {{ printer.ip_address }}
29
- {% endif %}
30
- <br><small>{{ printer.arp_data }}</small>
31
- </td>
32
- <td>
33
- {% for style in printer.label_zpl_styles %}
34
- <small>
35
- <a href="/edit_zpl">{{ style }}</a>
36
- (<a href="/_print_label?lab={{ lab }}&printer={{ printer.name }}&label_zpl_style={{ style }}&uid_barcode={{ printer.ip_address }}&alt_a={{ printer.model }}&alt_b={{ printer.serial }}&alt_c={{ lab }}&alt_d={{ lab }}" target="_blank">test</a>)
37
- </small><br>
38
- {% endfor %}
39
- </td>
40
- <td>
41
- {{ printer.status }}
42
- <br><small><a href="/printer_details?printer_name={{ printer.name }}&lab={{ lab }}" target="_blank">...printer details</a></small>
43
- </td>
44
- </tr>
45
- {% endfor %}
46
- </table>
47
- </ul>
48
-
49
- <br><hr>
50
- <h2>Build New Printers Config JSON // Scan Network</h2>
51
- <ul>
52
- <p>This will probe for printers, and with all discovered printers will create a new printers JSON and overwrite the current fleet data for this lab.</p>
53
- <form id="myForm" action="/probe_zebra_printers_add_to_printers_json">
54
- <label>Enter IP Root To Scan:</label>
55
- <input type="text" value="{{ ip_root }}" name="ip_stub">
56
- <br>
57
- <label>Select (or enter new) lab:</label>
58
- <input type="text" name="lab" list="lab_names" value="{{ lab }}">
59
- <datalist id="lab_names">
60
- {% for lab_name in labs %}
61
- <option value="{{ lab_name }}">{{ lab_name }}</option>
62
- {% endfor %}
63
- </datalist>
64
- <br>
65
- <input type="submit" value="Scan Network">
66
- </form>
67
- <small><a href="/list_prior_printer_config_files">The current printers JSON will be backed up and can be found here.</a></small>
68
- </ul>
69
- {% endblock %}
70
-
@@ -1,17 +0,0 @@
1
- {% extends "base.html" %}
2
-
3
- {% block title %}{{ title }}{% endblock %}
4
-
5
- {% block content %}
6
- <h1>Template Saved</h1>
7
- <small><a href="/">home</a></small>
8
- <hr>
9
-
10
- <p>Changes saved to temp file: <strong>{{ new_filename }}</strong></p>
11
-
12
- <ul>
13
- <li><a href="/edit_zpl">Go back to the ZPL file list</a></li>
14
- <li><a href="/">Go home</a></li>
15
- </ul>
16
- {% endblock %}
17
-
@@ -1,34 +0,0 @@
1
- {% extends "base.html" %}
2
-
3
- {% block title %}{{ title }}{% endblock %}
4
-
5
- {% block content %}
6
- <h1>Send Print Request</h1>
7
- <small><a href="/">home</a></small>
8
- <hr>
9
-
10
- {% for lab_name, printers in labs.items() %}
11
- <h2>Lab: {{ lab_name }}</h2>
12
- <table border="1" width="90%">
13
- <tr>
14
- <th>Printer</th>
15
- <th>Available Label Styles</th>
16
- </tr>
17
- {% for printer_name, printer_info in printers.items() %}
18
- <tr>
19
- <td>
20
- <strong>{{ printer_name }}</strong><br>
21
- <small>{{ printer_info.ip_address }}</small>
22
- </td>
23
- <td>
24
- {% for style in printer_info.label_zpl_styles %}
25
- <a href="/build_print_request?lab={{ lab_name }}&printer={{ printer_name }}&printer_ip={{ printer_info.ip_address }}&label_zpl_style={{ style }}">{{ style }}</a><br>
26
- {% endfor %}
27
- </td>
28
- </tr>
29
- {% endfor %}
30
- </table>
31
- <br>
32
- {% endfor %}
33
- {% endblock %}
34
-
@@ -1,94 +0,0 @@
1
- {% extends "base.html" %}
2
-
3
- {% block title %}{{ title }}{% endblock %}
4
-
5
- {% block content %}
6
- <h1>Send Label Print Request</h1>
7
- <ul>
8
- <small><a href="/">home</a></small>
9
- <hr>
10
-
11
- <form id="myForm" action="/_print_label" method="get">
12
- <ul>
13
- <li>
14
- <label>UID for Barcode:</label>
15
- <input type="text" name="uid_barcode">
16
- </li>
17
- <li>
18
- <label>ALT-A:</label>
19
- <input type="text" name="alt_a">
20
- </li>
21
- <li>
22
- <label>ALT-B:</label>
23
- <input type="text" name="alt_b">
24
- </li>
25
- <li>
26
- <label>ALT-C:</label>
27
- <input type="text" name="alt_c">
28
- </li>
29
- <li>
30
- <label>ALT-D:</label>
31
- <input type="text" name="alt_d">
32
- </li>
33
- <li>
34
- <label>ALT-E:</label>
35
- <input type="text" name="alt_e">
36
- </li>
37
- <li>
38
- <label>ALT-F:</label>
39
- <input type="text" name="alt_f">
40
- </li>
41
- <li>
42
- <label>Select Lab:</label>
43
- <select id="labSelect" name="lab" onchange="updatePrinters()">
44
- <option value="">Select a Lab</option>
45
- {% for lab in labs %}
46
- <option value="{{ lab }}">{{ lab }}</option>
47
- {% endfor %}
48
- </select>
49
- </li>
50
- <li>
51
- <label>Select Printer:</label>
52
- <select id="printerSelect" name="printer">
53
- <option value="">Select a Printer</option>
54
- </select>
55
- </li>
56
- <li>
57
- <label>Label ZPL Style:</label>
58
- <select name="label_zpl_style">
59
- {% for template in templates %}
60
- <option value="{{ template }}">{{ template }}</option>
61
- {% endfor %}
62
- </select>
63
- </li>
64
- </ul>
65
- <br>
66
- <input type="submit" value="Print Label">
67
- </form>
68
- </ul>
69
- {% endblock %}
70
-
71
- {% block extra_scripts %}
72
- <script>
73
- var labsAndPrinters = {{ labs_and_printers | safe }};
74
-
75
- function updatePrinters() {
76
- var labSelect = document.getElementById('labSelect');
77
- var printerSelect = document.getElementById('printerSelect');
78
- var selectedLab = labSelect.value;
79
-
80
- // Clear current printer options
81
- printerSelect.innerHTML = '<option value="">Select a Printer</option>';
82
-
83
- if (selectedLab in labsAndPrinters) {
84
- labsAndPrinters[selectedLab].forEach(function(printer) {
85
- var option = document.createElement('option');
86
- option.value = printer;
87
- option.text = printer;
88
- printerSelect.appendChild(option);
89
- });
90
- }
91
- }
92
- </script>
93
- {% endblock %}
94
-
@@ -1,29 +0,0 @@
1
- {% extends "base.html" %}
2
-
3
- {% block title %}{{ title }}{% endblock %}
4
-
5
- {% block content %}
6
- <h1>View and Edit Printer Config JSON</h1>
7
- <small><a href="/">home</a></small>
8
- <hr>
9
-
10
- {% if error_msg %}
11
- <p style="color: red; font-weight: bold;">{{ error_msg }}</p>
12
- {% endif %}
13
-
14
- <form action="/save_pstation_json" method="post">
15
- <textarea name="json_data" rows="45" cols="80">{{ config_data }}</textarea>
16
- <br>
17
- <input type="submit" value="Save New Printers Config JSON & Make Active">
18
- </form>
19
-
20
- <hr>
21
- <ul>
22
- <li><a href="/list_prior_printer_config_files">View backed up printers JSON config files</a></li>
23
- <hr>
24
- <li><a href="/reset_pstation_json">Restore Printer Settings From Default JSON (THIS WILL DELETE YOUR CURRENT FILE!)</a></li>
25
- <hr>
26
- <li><a href="/clear_printers_json">CLEAR contents of current printers.json file (This Cannot Be Undone)</a></li>
27
- </ul>
28
- {% endblock %}
29
-