PyWSGIRef 1.1.6__tar.gz → 1.1.8__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.
Files changed (23) hide show
  1. {pywsgiref-1.1.6/src/PyWSGIRef.egg-info → pywsgiref-1.1.8}/PKG-INFO +5 -4
  2. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/README.md +4 -2
  3. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/pyproject.toml +1 -2
  4. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/__init__.py +2 -2
  5. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/pyhtml.py +3 -5
  6. {pywsgiref-1.1.6 → pywsgiref-1.1.8/src/PyWSGIRef.egg-info}/PKG-INFO +5 -4
  7. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef.egg-info/requires.txt +0 -1
  8. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/LICENSE +0 -0
  9. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/setup.cfg +0 -0
  10. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/__main__.py +0 -0
  11. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/beta.py +0 -0
  12. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/commons.py +0 -0
  13. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/defaults.py +0 -0
  14. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/exceptions.py +0 -0
  15. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/finished.py +0 -0
  16. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/loadContent.py +0 -0
  17. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/patterns.py +0 -0
  18. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/simpleServer.py +0 -0
  19. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef/templateDict.py +0 -0
  20. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef.egg-info/SOURCES.txt +0 -0
  21. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef.egg-info/dependency_links.txt +0 -0
  22. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/src/PyWSGIRef.egg-info/top_level.txt +0 -0
  23. {pywsgiref-1.1.6 → pywsgiref-1.1.8}/tests/testMainServer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyWSGIRef
3
- Version: 1.1.6
3
+ Version: 1.1.8
4
4
  Summary: easy server-setup
5
5
  Author-email: Leander Kafemann <leander@kafemann.berlin>
6
6
  Project-URL: Homepage, https://github.com/LeanderKafemann/PyWSGIRef
@@ -11,7 +11,6 @@ Requires-Python: >=3.11
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: requests
14
- Requires-Dist: typing
15
14
  Requires-Dist: legacy-cgi
16
15
  Requires-Dist: naturalsize
17
16
  Dynamic: license-file
@@ -159,7 +158,9 @@ PyWSGIRef also provides a simple way to end PyHTML files:<br/>
159
158
  just use the <code><{{evalPyHTML}}></code> phrase at the end of the document and<br/>
160
159
  PyWSGIRef will automatically add the closing html and body tags.<br/><br/>
161
160
  You can also add PyWSGIRef's own, featured modern stylesheet using:<br/>
162
- <code><{{evalPyHTML-modernStyling: true}}></code> inside the head block of your PyHTML file.
161
+ <code><{{evalPyHTML-modernStyling: true}}></code> inside the head block of your PyHTML file.<br/><br/>
162
+ With the <code><{{evalPyHTML-script: alert('Hello, World!'); :script-}}></code> phrase,<br/>
163
+ you can add a script block anywhere inside your PyHTML file.<br/>
163
164
  ### Shutting down your server
164
165
  You can shut down your server by calling the <code>shutdown</code> method on the server object:
165
166
  ```python
@@ -189,7 +190,7 @@ from PyWSGIRef import BETA
189
190
  BETA.enable()
190
191
  ```
191
192
  Currently to be tested are:<br/>
192
- - PyHTML style and script blocks<br/>
193
+ - PyHTML style blocks<br/>
193
194
  - PyHTML favicon support<br/>
194
195
  - PyHTML include static resource blocks<br/><br/>
195
196
 
@@ -141,7 +141,9 @@ PyWSGIRef also provides a simple way to end PyHTML files:<br/>
141
141
  just use the <code><{{evalPyHTML}}></code> phrase at the end of the document and<br/>
142
142
  PyWSGIRef will automatically add the closing html and body tags.<br/><br/>
143
143
  You can also add PyWSGIRef's own, featured modern stylesheet using:<br/>
144
- <code><{{evalPyHTML-modernStyling: true}}></code> inside the head block of your PyHTML file.
144
+ <code><{{evalPyHTML-modernStyling: true}}></code> inside the head block of your PyHTML file.<br/><br/>
145
+ With the <code><{{evalPyHTML-script: alert('Hello, World!'); :script-}}></code> phrase,<br/>
146
+ you can add a script block anywhere inside your PyHTML file.<br/>
145
147
  ### Shutting down your server
146
148
  You can shut down your server by calling the <code>shutdown</code> method on the server object:
147
149
  ```python
@@ -171,7 +173,7 @@ from PyWSGIRef import BETA
171
173
  BETA.enable()
172
174
  ```
173
175
  Currently to be tested are:<br/>
174
- - PyHTML style and script blocks<br/>
176
+ - PyHTML style blocks<br/>
175
177
  - PyHTML favicon support<br/>
176
178
  - PyHTML include static resource blocks<br/><br/>
177
179
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "PyWSGIRef"
3
- version = "1.1.6"
3
+ version = "1.1.8"
4
4
  authors = [
5
5
  {name="Leander Kafemann", email="leander@kafemann.berlin" },
6
6
  ]
@@ -14,7 +14,6 @@ classifiers = [
14
14
  ]
15
15
  dependencies = [
16
16
  "requests",
17
- "typing",
18
17
  "legacy-cgi",
19
18
  "naturalsize",
20
19
  ]
@@ -17,8 +17,8 @@ def about():
17
17
  """
18
18
  Returns information about your release and other projects by Leander Kafemann
19
19
  """
20
- return {"Version":(1, 1, 6), "Author":"Leander Kafemann", "date":"12.06.2025",\
21
- "recommend":("Büro by LK", "pyimager by LK"), "feedbackTo": "leander@kafemann.berlin"}
20
+ return {"Version": (1, 1, 8), "Author": "Leander Kafemann", "date": "13.06.2025",\
21
+ "recommend": ("Büro by LK", "pyimager by LK"), "feedbackTo": "leander@kafemann.berlin"}
22
22
 
23
23
  SCHABLONEN = TemplateDict()
24
24
 
@@ -58,8 +58,7 @@ class PyHTML:
58
58
 
59
59
  def _replace_script_blocks(self):
60
60
  """
61
- Sucht nach evalPyHTML-script Phrasen und ersetzt sie durch <script>-Bl�cke.
62
- Nur im BETA-Modus aktiv.
61
+ Replaces script replacement phrases with JS scripts.
63
62
  """
64
63
  for match in re.finditer(SCRIPT_PATTERN, self.html, re.DOTALL):
65
64
  idx, idxEnd = match.span()
@@ -69,8 +68,7 @@ class PyHTML:
69
68
 
70
69
  def _replace_style_blocks(self):
71
70
  """
72
- Sucht nach evalPyHTML-style Phrasen und ersetzt sie durch <style>-Bl�cke.
73
- Nur im BETA-Modus aktiv.
71
+ Replaces style replacement phrases with CSS styles.
74
72
  """
75
73
  for match in re.finditer(STYLE_PATTERN, self.html, re.DOTALL):
76
74
  idx, idxEnd = match.span()
@@ -85,9 +83,9 @@ class PyHTML:
85
83
  self.html = self.html.strip()
86
84
  self._replace_eval_phrase()
87
85
  self._replace_modern_styling()
86
+ self._replace_script_blocks()
88
87
  if BETA.value:
89
88
  self._replace_includes()
90
- self._replace_script_blocks()
91
89
  self._replace_style_blocks()
92
90
 
93
91
  def decoded(self) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyWSGIRef
3
- Version: 1.1.6
3
+ Version: 1.1.8
4
4
  Summary: easy server-setup
5
5
  Author-email: Leander Kafemann <leander@kafemann.berlin>
6
6
  Project-URL: Homepage, https://github.com/LeanderKafemann/PyWSGIRef
@@ -11,7 +11,6 @@ Requires-Python: >=3.11
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: requests
14
- Requires-Dist: typing
15
14
  Requires-Dist: legacy-cgi
16
15
  Requires-Dist: naturalsize
17
16
  Dynamic: license-file
@@ -159,7 +158,9 @@ PyWSGIRef also provides a simple way to end PyHTML files:<br/>
159
158
  just use the <code><{{evalPyHTML}}></code> phrase at the end of the document and<br/>
160
159
  PyWSGIRef will automatically add the closing html and body tags.<br/><br/>
161
160
  You can also add PyWSGIRef's own, featured modern stylesheet using:<br/>
162
- <code><{{evalPyHTML-modernStyling: true}}></code> inside the head block of your PyHTML file.
161
+ <code><{{evalPyHTML-modernStyling: true}}></code> inside the head block of your PyHTML file.<br/><br/>
162
+ With the <code><{{evalPyHTML-script: alert('Hello, World!'); :script-}}></code> phrase,<br/>
163
+ you can add a script block anywhere inside your PyHTML file.<br/>
163
164
  ### Shutting down your server
164
165
  You can shut down your server by calling the <code>shutdown</code> method on the server object:
165
166
  ```python
@@ -189,7 +190,7 @@ from PyWSGIRef import BETA
189
190
  BETA.enable()
190
191
  ```
191
192
  Currently to be tested are:<br/>
192
- - PyHTML style and script blocks<br/>
193
+ - PyHTML style blocks<br/>
193
194
  - PyHTML favicon support<br/>
194
195
  - PyHTML include static resource blocks<br/><br/>
195
196
 
@@ -1,4 +1,3 @@
1
1
  requests
2
- typing
3
2
  legacy-cgi
4
3
  naturalsize
File without changes
File without changes