kcwebs 1.84__tar.gz → 1.86__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 (43) hide show
  1. {kcwebs-1.84 → kcwebs-1.86}/PKG-INFO +2 -2
  2. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/__init__.py +1 -1
  3. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/utill/queues.py +5 -7
  4. {kcwebs-1.84 → kcwebs-1.86}/kcwebs.egg-info/PKG-INFO +2 -2
  5. {kcwebs-1.84 → kcwebs-1.86}/kcwebs.egg-info/requires.txt +3 -3
  6. {kcwebs-1.84 → kcwebs-1.86}/setup.py +1 -1
  7. {kcwebs-1.84 → kcwebs-1.86}/README.md +0 -0
  8. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/common/__init__.py +0 -0
  9. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/common/autoload.py +0 -0
  10. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/common/session.py +0 -0
  11. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/config/__init__.py +0 -0
  12. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/kcwebs.py +0 -0
  13. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/__init__.py +0 -0
  14. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/__init__.py +0 -0
  15. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/common/__init__.py +0 -0
  16. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/common/autoload.py +0 -0
  17. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/__init__.py +0 -0
  18. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/index/__init__.py +0 -0
  19. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/__init__.py +0 -0
  20. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/autoload.py +0 -0
  21. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/html/include/static.html +0 -0
  22. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/model.py +0 -0
  23. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/index/index.py +0 -0
  24. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/home.html +0 -0
  25. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/index.html +0 -0
  26. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/common/__init__.py +0 -0
  27. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/common/autoload.py +0 -0
  28. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/common/html/include/static.html +0 -0
  29. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/common/model.py +0 -0
  30. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/config/__init__.py +0 -0
  31. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/config/app.py +0 -0
  32. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/config/database.py +0 -0
  33. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/config/other.py +0 -0
  34. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/app/config/redis.py +0 -0
  35. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/tempfile/kcwebs/server.py +0 -0
  36. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/utill/db/model.py +0 -0
  37. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/utill/db/mongodb.py +0 -0
  38. {kcwebs-1.84 → kcwebs-1.86}/kcwebs/utill/db/sqlite.py +0 -0
  39. {kcwebs-1.84 → kcwebs-1.86}/kcwebs.egg-info/SOURCES.txt +0 -0
  40. {kcwebs-1.84 → kcwebs-1.86}/kcwebs.egg-info/dependency_links.txt +0 -0
  41. {kcwebs-1.84 → kcwebs-1.86}/kcwebs.egg-info/entry_points.txt +0 -0
  42. {kcwebs-1.84 → kcwebs-1.86}/kcwebs.egg-info/top_level.txt +0 -0
  43. {kcwebs-1.84 → kcwebs-1.86}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: kcwebs
3
- Version: 1.84
3
+ Version: 1.86
4
4
  Summary: kcwebs作为web开发而设计的高性能框架
5
5
  Home-page: https://docs.kwebapp.cn/index/index/2
6
6
  Author: 百里-坤坤
@@ -9,5 +9,5 @@ Maintainer: 坤坤
9
9
  Maintainer-email: fk1402936534@qq.com
10
10
  License: MIT License
11
11
  Description: kcwebs作为web开发而设计的高性能框架,采用全新的架构思想,注重易用性。遵循MIT开源许可协议发布,意味着个人和企业可以免费使用kcwebs,甚至允许把你基于kcwebs开发的应用开源或商业产品发布或销售。完整文档请访问:https://docs.kwebapp.cn/index/index/2
12
- Keywords: kcwebs1.84
12
+ Keywords: kcwebs1.86
13
13
  Platform: UNKNOWN
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = '1.84'
2
+ __version__ = '1.86'
3
3
 
4
4
  kcwebsinfo={}
5
5
  kcwebsinfo['name']='kcwebs' #项目的名称
@@ -37,8 +37,7 @@ class Queues():
37
37
  model_kcwebs_tasks=model_kcwebs_task()
38
38
  model_kcwebs_tasks.create_table()
39
39
  Queues.__globalqueue=Queue()
40
- t=threading.Thread(target=Queues.__messagequeue)
41
- t.daemon=True
40
+ t=threading.Thread(target=Queues.__messagequeue,daemon=True)
42
41
  t.start()
43
42
  def __startprocess():
44
43
  if not Queues.__processglobalqueue:
@@ -51,10 +50,10 @@ class Queues():
51
50
  model_kcwebs_tasks=model_kcwebs_task()
52
51
  model_kcwebs_tasks.create_table()
53
52
  Queues.__processglobalqueue=multiprocessing.Queue()
54
- t=multiprocessing.Process(target=Queues.messagequeueprocess,args=(Queues.__processglobalqueue,))
53
+ t=multiprocessing.Process(target=Queues._messagequeueprocess,args=(Queues.__processglobalqueue,))
55
54
  t.daemon=True
56
55
  t.start()
57
- def messagequeueprocess(processglobalqueue):
56
+ def _messagequeueprocess(processglobalqueue):
58
57
  """不支持外部调用"""
59
58
  kcwssqlite.sqlite().connect(queuesdbpath).table("model_kcwebs_queues").where("code=2 and updtime<"+str(int(time.time())-86400*7)).delete()
60
59
  kcwssqlite.sqlite().connect(queuesdbpath).table("model_kcwebs_queues").where("code=3 and updtime<"+str(int(time.time())-1200)).delete()
@@ -82,9 +81,8 @@ class Queues():
82
81
  else:
83
82
  kcwssqlite.sqlite().connect(queuesdbpath).table("model_kcwebs_queues").where("taskid = '"+value['task']['taskid']+"' and code!=4").update({"code":4,"start":100,'endtime':int(time.time()),'updtime':int(time.time())})
84
83
  else:
85
- time.sleep(1)
84
+ time.sleep(0.01)
86
85
  def __messagequeue():
87
- # time.sleep(0.01)
88
86
  kcwssqlite.sqlite().connect(queuesdbpath).table("model_kcwebs_queues").where("code=2 and updtime<"+str(int(time.time())-86400*7)).delete()
89
87
  kcwssqlite.sqlite().connect(queuesdbpath).table("model_kcwebs_queues").where("code=3 and updtime<"+str(int(time.time())-1200)).delete()
90
88
  while True:
@@ -106,7 +104,7 @@ class Queues():
106
104
  else:
107
105
  kcwssqlite.sqlite().connect(queuesdbpath).table("model_kcwebs_queues").where("taskid = '"+value['task']['taskid']+"' and code!=4").update({"code":4,"start":100,'endtime':int(time.time()),'updtime':int(time.time())})
108
106
  else:
109
- time.sleep(1)
107
+ time.sleep(0.01)
110
108
  def delhist():
111
109
  """清除任务历史记录(包括 成功的 失败的 已完成的)"""
112
110
  return kcwssqlite.sqlite().connect(queuesdbpath).table("model_kcwebs_queues").where("code","in",0,1,4).delete()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: kcwebs
3
- Version: 1.84
3
+ Version: 1.86
4
4
  Summary: kcwebs作为web开发而设计的高性能框架
5
5
  Home-page: https://docs.kwebapp.cn/index/index/2
6
6
  Author: 百里-坤坤
@@ -9,5 +9,5 @@ Maintainer: 坤坤
9
9
  Maintainer-email: fk1402936534@qq.com
10
10
  License: MIT License
11
11
  Description: kcwebs作为web开发而设计的高性能框架,采用全新的架构思想,注重易用性。遵循MIT开源许可协议发布,意味着个人和企业可以免费使用kcwebs,甚至允许把你基于kcwebs开发的应用开源或商业产品发布或销售。完整文档请访问:https://docs.kwebapp.cn/index/index/2
12
- Keywords: kcwebs1.84
12
+ Keywords: kcwebs1.86
13
13
  Platform: UNKNOWN
@@ -1,6 +1,6 @@
1
- kcws>=1.7
2
- kcwmysql>=1.3
3
- kcwhttp>=1.0
1
+ kcws>=1.9
2
+ kcwmysql>=1.4
3
+ kcwhttp>=1.1
4
4
  python-dateutil==2.9.0
5
5
  pymongo==3.10.0
6
6
  Mako==1.3.6
@@ -50,7 +50,7 @@ def start():
50
50
  packages = b,
51
51
 
52
52
 
53
- install_requires = ['kcws>=1.7','kcwmysql>=1.3','kcwhttp>=1.0','python-dateutil==2.9.0',
53
+ install_requires = ['kcws>=1.9','kcwmysql>=1.4','kcwhttp>=1.1','python-dateutil==2.9.0',
54
54
  'pymongo==3.10.0','Mako==1.3.6','six>=1.12.0',
55
55
  # 'websockets==10.4',
56
56
  'curl_cffi==0.9.0',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes