kcwebs 3.50__tar.gz → 3.51__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.50 → kcwebs-3.51}/PKG-INFO +2 -2
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/__init__.py +1 -1
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/common/autoload.py +0 -45
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs.egg-info/PKG-INFO +2 -2
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs.egg-info/requires.txt +4 -4
- {kcwebs-3.50 → kcwebs-3.51}/README.md +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/common/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/common/session.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/config/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/kcwebs.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/common/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/common/autoload.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/autoload.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/html/include/static.html +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/model.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/index.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/home.html +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/index.html +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/common/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/common/autoload.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/common/html/include/static.html +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/common/model.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/config/__init__.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/config/app.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/config/database.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/config/other.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/config/redis.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/server.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/utill/db/model.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/utill/db/mongodb.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs/utill/queues.py +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs.egg-info/SOURCES.txt +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs.egg-info/dependency_links.txt +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs.egg-info/entry_points.txt +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/kcwebs.egg-info/top_level.txt +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/setup.cfg +0 -0
- {kcwebs-3.50 → kcwebs-3.51}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.2
|
|
2
2
|
Name: kcwebs
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.51
|
|
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.51
|
|
13
13
|
Platform: UNKNOWN
|
|
@@ -282,15 +282,7 @@ class kcwebssocket:
|
|
|
282
282
|
# kwebsocket=kcwebssocket()
|
|
283
283
|
# kwebsocket.start()
|
|
284
284
|
def before_request():pass
|
|
285
|
-
def timestampToDate(times,format="%Y-%m-%d %H:%M:%S"):
|
|
286
|
-
"""时间戳转换时间
|
|
287
285
|
|
|
288
|
-
times 10位时间戳
|
|
289
|
-
|
|
290
|
-
format 日期格式 如%Y-%m-%d %H:%M:%S
|
|
291
|
-
"""
|
|
292
|
-
timeArray = time.localtime(int(times))
|
|
293
|
-
return time.strftime(format.encode('unicode-escape').decode(),timeArray).encode().decode('unicode-escape')
|
|
294
286
|
def send_mail(user,text="邮件内容",theme="邮件主题",recNick="收件人昵称"):
|
|
295
287
|
"""发送邮件
|
|
296
288
|
|
|
@@ -504,23 +496,6 @@ def kill_all_kcwebs_pid(types='all'):
|
|
|
504
496
|
f.close()
|
|
505
497
|
kill_pid(pid)
|
|
506
498
|
os.remove(folder+"/"+files)
|
|
507
|
-
def is_index(params,index):
|
|
508
|
-
"""判断列表或字典里的索引是否存在
|
|
509
|
-
|
|
510
|
-
params 列表或字典
|
|
511
|
-
|
|
512
|
-
index 索引值
|
|
513
|
-
|
|
514
|
-
return Boolean类型
|
|
515
|
-
"""
|
|
516
|
-
try:
|
|
517
|
-
params[index]
|
|
518
|
-
except KeyError:
|
|
519
|
-
return False
|
|
520
|
-
except IndexError:
|
|
521
|
-
return False
|
|
522
|
-
else:
|
|
523
|
-
return True
|
|
524
499
|
|
|
525
500
|
def list_to_tree(data, pk = 'id', pid = 'pid', child = 'lowerlist', root=0,childstatus=True):
|
|
526
501
|
"""列表转换tree
|
|
@@ -548,26 +523,6 @@ def list_to_tree(data, pk = 'id', pid = 'pid', child = 'lowerlist', root=0,child
|
|
|
548
523
|
v[child]=kkkk
|
|
549
524
|
arr.append(v)
|
|
550
525
|
return arr
|
|
551
|
-
def randoms(lens=6,types=1):
|
|
552
|
-
"""生成随机字符串
|
|
553
|
-
|
|
554
|
-
lens 长度
|
|
555
|
-
|
|
556
|
-
types 1数字 2字母 3字母加数字
|
|
557
|
-
"""
|
|
558
|
-
strs="0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM,!@#$%^&*()_+=-;',./:<>?"
|
|
559
|
-
if types==1:
|
|
560
|
-
strs="0123456789"
|
|
561
|
-
elif types==2:
|
|
562
|
-
strs="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM"
|
|
563
|
-
elif types==3:
|
|
564
|
-
strs="0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM"
|
|
565
|
-
k=''
|
|
566
|
-
i=0
|
|
567
|
-
while i < lens:
|
|
568
|
-
k+=random.choice(strs)
|
|
569
|
-
i+=1
|
|
570
|
-
return k
|
|
571
526
|
def file_set_content(filename,data,encoding="utf-8"):
|
|
572
527
|
"""写入文件内容
|
|
573
528
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.2
|
|
2
2
|
Name: kcwebs
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.51
|
|
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.51
|
|
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
|
{kcwebs-3.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/__init__.py
RENAMED
|
File without changes
|
{kcwebs-3.50 → kcwebs-3.51}/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.50 → kcwebs-3.51}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/home.html
RENAMED
|
File without changes
|
{kcwebs-3.50 → kcwebs-3.51}/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
|
|
File without changes
|