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.
- {kcwebs-3.20 → kcwebs-3.22}/PKG-INFO +2 -2
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/__init__.py +1 -1
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/utill/queues.py +14 -7
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/PKG-INFO +2 -2
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/requires.txt +4 -4
- {kcwebs-3.20 → kcwebs-3.22}/README.md +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/common/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/common/autoload.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/common/session.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/config/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/kcwebs.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/common/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/common/autoload.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/autoload.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/html/include/static.html +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/model.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/index.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/home.html +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/index.html +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/common/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/common/autoload.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/common/html/include/static.html +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/common/model.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/__init__.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/app.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/database.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/other.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/config/redis.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/server.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/utill/db/model.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs/utill/db/mongodb.py +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/SOURCES.txt +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/dependency_links.txt +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/entry_points.txt +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/kcwebs.egg-info/top_level.txt +0 -0
- {kcwebs-3.20 → kcwebs-3.22}/setup.cfg +0 -0
- {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.
|
|
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.
|
|
12
|
+
Keywords: kcwebs3.22
|
|
13
13
|
Platform: UNKNOWN
|
|
@@ -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
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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.
|
|
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.
|
|
12
|
+
Keywords: kcwebs3.22
|
|
13
13
|
Platform: UNKNOWN
|
|
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
|
|
File without changes
|
{kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/__init__.py
RENAMED
|
File without changes
|
{kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/autoload.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/home.html
RENAMED
|
File without changes
|
{kcwebs-3.20 → kcwebs-3.22}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/index.html
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|