PyWSGIRef 1.1.2__tar.gz → 1.1.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyWSGIRef
3
- Version: 1.1.2
3
+ Version: 1.1.3
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
@@ -162,4 +162,13 @@ from PyWSGIRef import about
162
162
 
163
163
  about()
164
164
  ```
165
+ ### Curious?
166
+ Join the <b>BETA</b> group to get new features even earlier!<br/>
167
+ Note that BETA features may not be tested when using them.
168
+ ```python
169
+ from PyWSGIRef import BETA
170
+
171
+ #enable beta mode
172
+ BETA.enable()
173
+ ```
165
174
  ### More coming soon
@@ -144,4 +144,13 @@ from PyWSGIRef import about
144
144
 
145
145
  about()
146
146
  ```
147
+ ### Curious?
148
+ Join the <b>BETA</b> group to get new features even earlier!<br/>
149
+ Note that BETA features may not be tested when using them.
150
+ ```python
151
+ from PyWSGIRef import BETA
152
+
153
+ #enable beta mode
154
+ BETA.enable()
155
+ ```
147
156
  ### More coming soon
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "PyWSGIRef"
3
- version = "1.1.2"
3
+ version = "1.1.3"
4
4
  authors = [
5
5
  {name="Leander Kafemann", email="leander@kafemann.berlin" },
6
6
  ]
@@ -16,7 +16,7 @@ def about():
16
16
  """
17
17
  Returns information about your release and other projects by LK
18
18
  """
19
- return {"Version":(1, 1, 2), "Author":"Leander Kafemann", "date":"08.06.2025",\
19
+ return {"Version":(1, 1, 3), "Author":"Leander Kafemann", "date":"10.06.2025",\
20
20
  "recommend":("Büro by LK", "pyimager by LK"), "feedbackTo": "leander@kafemann.berlin"}
21
21
 
22
22
  SCHABLONEN = TemplateDict()
@@ -0,0 +1,31 @@
1
+ """
2
+ BETA mode...
3
+ """
4
+
5
+ class beta:
6
+ """
7
+ BETA mode for PyWSGIRef.
8
+ """
9
+ def __init__(self):
10
+ self._beta = False
11
+
12
+ @property
13
+ def value(self) -> bool:
14
+ return self._beta
15
+
16
+ def enable(self):
17
+ """
18
+ Enables BETA mode.
19
+ """
20
+ if self._beta:
21
+ raise ValueError("BETA mode is already enabled.")
22
+ self._beta = True
23
+
24
+ BETA = beta()
25
+
26
+ def enableBetaMode():
27
+ """
28
+ Enables BETA mode.
29
+ """
30
+ BETA.enable()
31
+ print("BETA mode enabled.")
@@ -22,7 +22,7 @@ class PyHTML:
22
22
  if self.html.endswith("<{{evalPyHTML}}>"):
23
23
  self.html = self.html[:-16] + END_REPLACE
24
24
 
25
- if BETA:
25
+ if BETA.value():
26
26
  # static ressources
27
27
  idx = self.html.find("<{{evalPyHTML-include: ")
28
28
  if idx != -1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyWSGIRef
3
- Version: 1.1.2
3
+ Version: 1.1.3
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
@@ -162,4 +162,13 @@ from PyWSGIRef import about
162
162
 
163
163
  about()
164
164
  ```
165
+ ### Curious?
166
+ Join the <b>BETA</b> group to get new features even earlier!<br/>
167
+ Note that BETA features may not be tested when using them.
168
+ ```python
169
+ from PyWSGIRef import BETA
170
+
171
+ #enable beta mode
172
+ BETA.enable()
173
+ ```
165
174
  ### More coming soon
@@ -1,6 +0,0 @@
1
- """
2
- Home of the BETA boolean.
3
- Set BETA to true to beta-test...
4
- """
5
-
6
- BETA = False
File without changes
File without changes