PyWSGIRef 1.0.0__tar.gz → 1.0.2__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,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyWSGIRef
3
- Version: 1.0.0
4
- Summary: display colors in console
3
+ Version: 1.0.2
4
+ Summary: some tools for working with GitHub
5
5
  Author-email: Leander Kafemann <leander@kafemann.berlin>
6
6
  Project-URL: Homepage, https://github.com/LeanderKafemann/PyWSGIRef
7
7
  Classifier: Programming Language :: Python :: 3
@@ -1,10 +1,10 @@
1
1
  [project]
2
2
  name = "PyWSGIRef"
3
- version = "1.0.0"
3
+ version = "1.0.2"
4
4
  authors = [
5
5
  {name="Leander Kafemann", email="leander@kafemann.berlin" },
6
6
  ]
7
- description = "display colors in console"
7
+ description = "some tools for working with GitHub"
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.11"
10
10
  classifiers = [
@@ -13,7 +13,7 @@ classifiers = [
13
13
  "Operating System :: OS Independent",
14
14
  ]
15
15
  dependencies = [
16
- "requests",
16
+ "requests",
17
17
  "typing",
18
18
  ]
19
19
 
@@ -8,13 +8,14 @@ from wsgiref.simple_server import make_server, WSGIServer
8
8
  from .exceptions import *
9
9
  from .pyhtml import PyHTML
10
10
  from .defaults import *
11
+ from .__main__ import main
11
12
 
12
13
  def about():
13
14
  """
14
15
  Returns information about your release and other projects by LK
15
16
  """
16
- return {"Version":(1, 0, 0), "Author":"Leander Kafemann", "date":"07.06.2025",\
17
- "recommend":("Büro by LK", "pyimager by LK", "naturalsize by LK"), "feedbackTo": "leander@kafemann.berlin"}
17
+ return {"Version":(1, 0, 2), "Author":"Leander Kafemann", "date":"07.06.2025",\
18
+ "recommend":("Büro by LK", "pyimager by LK"), "feedbackTo": "leander@kafemann.berlin"}
18
19
 
19
20
  SCHABLONEN = {}
20
21
  finished = False
@@ -47,7 +48,7 @@ def addSchablone(name: str, content: str):
47
48
  Adds a template to the SCHABLONEN dictionary.
48
49
  """
49
50
  global SCHABLONEN
50
- SCHABLONEN += {name: PyHTML(content)}
51
+ SCHABLONEN[name] = PyHTML(content)
51
52
 
52
53
  def makeApplicationObject(contentGeneratingFunction: Callable) -> Callable:
53
54
  """
@@ -44,10 +44,12 @@ def main():
44
44
 
45
45
  # set up server
46
46
  server = setUpServer(application)
47
- server.serve_forever()
48
47
 
49
48
  # Note: This code is intended to be run as a script, not as a module.
50
49
  print("Successfully started WSGI server on port 8000.")
51
50
 
51
+ # start serving
52
+ server.serve_forever()
53
+
52
54
  if __name__ == "__main__":
53
55
  main()
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyWSGIRef
3
- Version: 1.0.0
4
- Summary: display colors in console
3
+ Version: 1.0.2
4
+ Summary: some tools for working with GitHub
5
5
  Author-email: Leander Kafemann <leander@kafemann.berlin>
6
6
  Project-URL: Homepage, https://github.com/LeanderKafemann/PyWSGIRef
7
7
  Classifier: Programming Language :: Python :: 3
@@ -10,4 +10,5 @@ src/PyWSGIRef.egg-info/PKG-INFO
10
10
  src/PyWSGIRef.egg-info/SOURCES.txt
11
11
  src/PyWSGIRef.egg-info/dependency_links.txt
12
12
  src/PyWSGIRef.egg-info/requires.txt
13
- src/PyWSGIRef.egg-info/top_level.txt
13
+ src/PyWSGIRef.egg-info/top_level.txt
14
+ tests/testMainServer.py
@@ -0,0 +1,3 @@
1
+ from PyWSGIRef import *
2
+
3
+ main()
File without changes
File without changes
File without changes