CheeseAPI 0.2.18__tar.gz → 0.2.20__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 (26) hide show
  1. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/app.py +2 -3
  2. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/request.py +1 -1
  3. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI.egg-info/PKG-INFO +1 -1
  4. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/PKG-INFO +1 -1
  5. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/setup.py +1 -1
  6. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/__init__.py +0 -0
  7. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/cors.py +0 -0
  8. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/exception.py +0 -0
  9. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/file.py +0 -0
  10. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/handle.py +0 -0
  11. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/module.py +0 -0
  12. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/protocol.py +0 -0
  13. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/response.py +0 -0
  14. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/route.py +0 -0
  15. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/server.py +0 -0
  16. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/signal.py +0 -0
  17. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/websocket.py +0 -0
  18. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/worker.py +0 -0
  19. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI/workspace.py +0 -0
  20. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI.egg-info/SOURCES.txt +0 -0
  21. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI.egg-info/dependency_links.txt +0 -0
  22. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI.egg-info/requires.txt +0 -0
  23. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/CheeseAPI.egg-info/top_level.txt +0 -0
  24. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/LICENSE +0 -0
  25. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/README.md +0 -0
  26. {CheeseAPI-0.2.18 → CheeseAPI-0.2.20}/setup.cfg +0 -0
@@ -50,15 +50,14 @@ class App:
50
50
  sock.bind((self.server.host, self.server.port))
51
51
  sock.set_inheritable(True)
52
52
 
53
- asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
54
- asyncio.run(_run(app, sock, managers))
55
-
56
53
  multiprocessing.allow_connection_pickling()
57
54
  for i in range(0, self.server.workers - 1):
58
55
  process = multiprocessing.Process(target = run, args = (app, sock, managers), name = f'CheeseAPI_Subprocess<{i}>', daemon = True)
59
56
  process.start()
60
57
  os.setpgid(process.pid, os.getpid())
61
58
 
59
+ run(app, sock, managers)
60
+
62
61
  while managers['startedWorkerNum'].value != 0:
63
62
  time.sleep(0.1)
64
63
  except Exception as e:
@@ -44,7 +44,7 @@ class Request:
44
44
  body = value.split(b'--' + spliter.encode())[1:-1]
45
45
  for s in body:
46
46
  key = re.findall(rb'name="(.*?)"', s)[0]
47
- value = s.split(b'name="' + key + b'"\r\n\r\n')[1][:-2]
47
+ value = s.split(b'\r\n\r\n', 1)[1][:-2]
48
48
  filename = re.findall(rb'filename="(.*?)"', s)
49
49
  if len(filename):
50
50
  self.form[key.decode()] = File(filename[0].decode(), value)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: CheeseAPI
3
- Version: 0.2.18
3
+ Version: 0.2.20
4
4
  Summary: 一款web协程框架
5
5
  Home-page: https://github.com/CheeseUnknown/CheeseAPI
6
6
  Author: Cheese Unknown
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: CheeseAPI
3
- Version: 0.2.18
3
+ Version: 0.2.20
4
4
  Summary: 一款web协程框架
5
5
  Home-page: https://github.com/CheeseUnknown/CheeseAPI
6
6
  Author: Cheese Unknown
@@ -5,7 +5,7 @@ with open('./README.md', 'r', encoding = 'utf-8') as f:
5
5
 
6
6
  setuptools.setup(
7
7
  name = 'CheeseAPI',
8
- version = '0.2.18',
8
+ version = '0.2.20',
9
9
  author = 'Cheese Unknown',
10
10
  author_email = 'cheese@cheese.ren',
11
11
  description = '一款web协程框架',
File without changes
File without changes
File without changes
File without changes
File without changes