kcwebs 3.20__tar.gz → 3.22__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 (42) hide show
  1. {kcwebs-3.20 → kcwebs-3.22}/PKG-INFO +2 -2
  2. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/__init__.py +1 -1
  3. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/utill/queues.py +14 -7
  4. {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/PKG-INFO +2 -2
  5. {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/requires.txt +4 -4
  6. {kcwebs-3.20 → kcwebs-3.22}/README.md +0 -0
  7. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/common/__init__.py +0 -0
  8. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/common/autoload.py +0 -0
  9. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/common/session.py +0 -0
  10. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/config/__init__.py +0 -0
  11. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/kcwebs.py +0 -0
  12. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/__init__.py +0 -0
  13. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/__init__.py +0 -0
  14. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/common/__init__.py +0 -0
  15. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/common/autoload.py +0 -0
  16. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/__init__.py +0 -0
  17. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/__init__.py +0 -0
  18. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/__init__.py +0 -0
  19. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/autoload.py +0 -0
  20. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/html/include/static.html +0 -0
  21. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/model.py +0 -0
  22. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/index.py +0 -0
  23. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/home.html +0 -0
  24. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/index.html +0 -0
  25. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/common/__init__.py +0 -0
  26. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/common/autoload.py +0 -0
  27. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/common/html/include/static.html +0 -0
  28. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/common/model.py +0 -0
  29. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/__init__.py +0 -0
  30. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/app.py +0 -0
  31. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/database.py +0 -0
  32. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/other.py +0 -0
  33. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/redis.py +0 -0
  34. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/server.py +0 -0
  35. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/utill/db/model.py +0 -0
  36. {kcwebs-3.20 → kcwebs-3.22}/kcwebs/utill/db/mongodb.py +0 -0
  37. {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/SOURCES.txt +0 -0
  38. {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/dependency_links.txt +0 -0
  39. {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/entry_points.txt +0 -0
  40. {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/top_level.txt +0 -0
  41. {kcwebs-3.20 → kcwebs-3.22}/setup.cfg +0 -0
  42. {kcwebs-3.20 → kcwebs-3.22}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: kcwebs
3
- Version: 3.20
3
+ Version: 3.22
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: kcwebs3.20
12
+ Keywords: kcwebs3.22
13
13
  Platform: UNKNOWN
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = '3.20'
2
+ __version__ = '3.22'
3
3
 
4
4
  kcwebsinfo={}
5
5
  kcwebsinfo['name']='kcwebs' #项目的名称
@@ -1,6 +1,5 @@
1
1
  from queue import Queue
2
2
  from .db import model
3
- # from .db import sqlite as kcwssqlite
4
3
  import threading,time,os,hashlib,random,traceback,multiprocessing,kcwsqlite
5
4
  queuesdbpath=os.path.split(os.path.realpath(__file__))[0]+"/Queues"
6
5
  class model_kcwebs_task(model.model):
@@ -50,8 +49,8 @@ class Queues():
50
49
  model_kcwebs_tasks=model_kcwebs_task()
51
50
  model_kcwebs_tasks.create_table()
52
51
  Queues.__processglobalqueue=multiprocessing.Queue()
53
- t=multiprocessing.Process(target=Queues._messagequeueprocess,args=(Queues.__processglobalqueue,))
54
- t.daemon=True
52
+ t=multiprocessing.Process(target=Queues._messagequeueprocess,args=(Queues.__processglobalqueue,),daemon=True)
53
+ # t.daemon=True
55
54
  t.start()
56
55
  def _messagequeueprocess(processglobalqueue):
57
56
  """不支持外部调用"""
@@ -175,16 +174,24 @@ class Queues():
175
174
  else:
176
175
  Queues.__start()
177
176
  ttt=int(time.time())
177
+
178
+ end=100
179
+ if not updtime:
180
+ updtime=ttt
178
181
  if not taskid:
179
182
  m = hashlib.md5()
180
183
  m.update((str(ttt)+str(random.randint(100000,999999))).encode(encoding='utf-8'))
181
184
  taskid=m.hexdigest()
182
- end=100
183
- if not updtime:
184
- updtime=ttt
185
+ else:
186
+ arr=kcwsqlite.sqlite.connect(queuesdbpath,th_lock=True).table("model_kcwebs_queues").where("taskid",taskid).find()
187
+ if arr:
188
+ if arr['code'] in [2,3]:
189
+ return taskid
190
+ else:
191
+ kcwsqlite.sqlite.connect(queuesdbpath,th_lock=True).table("model_kcwebs_queues").where("taskid",taskid).delete()
185
192
  task={"taskid":taskid,"title":title,"describes":describes,"code":2,"msg":msg,"error":"","start":start,"end":end,"addtime":ttt,'starts':0,'endtime':0,'updtime':updtime}
186
- key={"target":target,"args":args,"task":task}
187
193
  kcwsqlite.sqlite.connect(queuesdbpath,th_lock=True).table("model_kcwebs_queues").insert(task)
194
+ key={"target":target,"args":args,"task":task}
188
195
  if types=='process':
189
196
  Queues.__processglobalqueue.put(key)
190
197
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: kcwebs
3
- Version: 3.20
3
+ Version: 3.22
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: kcwebs3.20
12
+ Keywords: kcwebs3.22
13
13
  Platform: UNKNOWN
@@ -1,7 +1,7 @@
1
- kcws>=3.20
2
- kcwmysql>=3.20
3
- kcwsqlite>=3.20
4
- kcwhttp>=3.20
1
+ kcws>=3.22
2
+ kcwmysql>=3.22
3
+ kcwsqlite>=3.22
4
+ kcwhttp>=3.22
5
5
  python-dateutil==2.9.0
6
6
  pymongo==3.10.0
7
7
  Mako==1.3.6
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