kcws 2.0__tar.gz → 3.1__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.
- kcws-3.1/PKG-INFO +13 -0
- kcws-3.1/kcws/__init__.py +18 -0
- {kcws-2.0 → kcws-3.1}/kcws/app.py +2 -1
- {kcws-2.0 → kcws-3.1}/kcws/config/__init__.py +14 -14
- kcws-3.1/kcws.egg-info/PKG-INFO +13 -0
- {kcws-2.0 → kcws-3.1}/kcws.egg-info/SOURCES.txt +0 -1
- kcws-3.1/setup.py +48 -0
- kcws-2.0/PKG-INFO +0 -13
- kcws-2.0/README.md +0 -8
- kcws-2.0/kcws/__init__.py +0 -4
- kcws-2.0/kcws.egg-info/PKG-INFO +0 -13
- kcws-2.0/setup.py +0 -70
- {kcws-2.0 → kcws-3.1}/kcws/Events.py +0 -0
- {kcws-2.0 → kcws-3.1}/kcws/common/__init__.py +0 -0
- {kcws-2.0 → kcws-3.1}/kcws/common/autoload.py +0 -0
- {kcws-2.0 → kcws-3.1}/kcws/common/globals.py +0 -0
- {kcws-2.0 → kcws-3.1}/kcws/common/request.py +0 -0
- {kcws-2.0 → kcws-3.1}/kcws/kcws.py +0 -0
- {kcws-2.0 → kcws-3.1}/kcws.egg-info/dependency_links.txt +0 -0
- {kcws-2.0 → kcws-3.1}/kcws.egg-info/entry_points.txt +0 -0
- {kcws-2.0 → kcws-3.1}/kcws.egg-info/requires.txt +0 -0
- {kcws-2.0 → kcws-3.1}/kcws.egg-info/top_level.txt +0 -0
- {kcws-2.0 → kcws-3.1}/setup.cfg +0 -0
kcws-3.1/PKG-INFO
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
|
+
Name: kcws
|
|
3
|
+
Version: 3.1
|
|
4
|
+
Summary: kcwebs作为web开发而设计的高性能框架
|
|
5
|
+
Home-page: https://docs.kwebapp.cn/index/index/2
|
|
6
|
+
Author: 百里-坤坤
|
|
7
|
+
Author-email: kcwebs@kwebapp.cn
|
|
8
|
+
Maintainer: 坤坤
|
|
9
|
+
Maintainer-email: fk1402936534@qq.com
|
|
10
|
+
License: MIT License
|
|
11
|
+
Description: kcwebs作为web开发而设计的高性能框架,采用全新的架构思想,注重易用性。遵循MIT开源许可协议发布,意味着个人和企业可以免费使用kcwebs,甚至允许把你基于kcwebs开发的应用开源或商业产品发布或销售。完整文档请访问:https://docs.kwebapp.cn/index/index/2
|
|
12
|
+
Keywords: kcws3.01
|
|
13
|
+
Platform: UNKNOWN
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
try:
|
|
3
|
+
from .app import web
|
|
4
|
+
except:
|
|
5
|
+
print('警告:from .app import web导入失败')
|
|
6
|
+
# from . import config
|
|
7
|
+
__version__ = '3.01'
|
|
8
|
+
kcwsinfo={}
|
|
9
|
+
kcwsinfo['name']='kcws' #项目的名称
|
|
10
|
+
kcwsinfo['version']=__version__ #项目版本
|
|
11
|
+
kcwsinfo['description']='kcwebs作为web开发而设计的高性能框架' #项目的简单描述
|
|
12
|
+
kcwsinfo['long_description']='kcwebs作为web开发而设计的高性能框架,采用全新的架构思想,注重易用性。遵循MIT开源许可协议发布,意味着个人和企业可以免费使用kcwebs,甚至允许把你基于kcwebs开发的应用开源或商业产品发布或销售。完整文档请访问:https://docs.kwebapp.cn/index/index/2' #项目详细描述
|
|
13
|
+
kcwsinfo['license']='MIT License' #开源协议 mit开源
|
|
14
|
+
kcwsinfo['url']='https://docs.kwebapp.cn/index/index/2'
|
|
15
|
+
kcwsinfo['author']='百里-坤坤' #名字
|
|
16
|
+
kcwsinfo['author_email']='kcwebs@kwebapp.cn' #邮件地址
|
|
17
|
+
kcwsinfo['maintainer']='坤坤' #维护人员的名字
|
|
18
|
+
kcwsinfo['maintainer_email']='fk1402936534@qq.com' #维护人员的邮件地址
|
|
@@ -783,7 +783,8 @@ class web:
|
|
|
783
783
|
resheader.append(("ETag",ETag))
|
|
784
784
|
else:
|
|
785
785
|
status,resheader,body=web.__routes(self,reqheader)
|
|
786
|
-
|
|
786
|
+
from kcws import __version__
|
|
787
|
+
resheader.append(('Server', "kcws-"+__version__))
|
|
787
788
|
if type(body) is bytes:
|
|
788
789
|
pass
|
|
789
790
|
else:
|
|
@@ -25,19 +25,19 @@ route['funct']='index' #默认路由函数 (操作方法) 当url不包括操作
|
|
|
25
25
|
route['methods']=['POST','GET'] #默认请求方式
|
|
26
26
|
route['children']=[]
|
|
27
27
|
|
|
28
|
-
kcws={}
|
|
29
|
-
kcws['name']='kcws' #项目的名称
|
|
30
|
-
kcws['version']='
|
|
31
|
-
kcws['description']='超轻量级http框架' #项目的简单描述
|
|
32
|
-
kcws['long_description']='kcws是一个由kcwebs抽象出来的超轻量级http框架' #项目详细描述
|
|
33
|
-
kcws['license']='MIT License' #开源协议 mit开源
|
|
34
|
-
kcws['url']='https://docs.kwebapp.cn/index/index/1'
|
|
35
|
-
kcws['author']='百里-坤坤' #名字
|
|
36
|
-
kcws['author_email']='kcwebs@kwebapp.cn' #邮件地址
|
|
37
|
-
kcws['maintainer']='坤坤' #维护人员的名字
|
|
38
|
-
kcws['maintainer_email']='fk1402936534@qq.com' #维护人员的邮件地址
|
|
39
|
-
kcws['username']=''
|
|
40
|
-
kcws['password']=''
|
|
28
|
+
# kcws={}
|
|
29
|
+
# kcws['name']='kcws' #项目的名称
|
|
30
|
+
# kcws['version']='2.0' #项目版本
|
|
31
|
+
# kcws['description']='超轻量级http框架' #项目的简单描述
|
|
32
|
+
# kcws['long_description']='kcws是一个由kcwebs抽象出来的超轻量级http框架' #项目详细描述
|
|
33
|
+
# kcws['license']='MIT License' #开源协议 mit开源
|
|
34
|
+
# kcws['url']='https://docs.kwebapp.cn/index/index/1'
|
|
35
|
+
# kcws['author']='百里-坤坤' #名字
|
|
36
|
+
# kcws['author_email']='kcwebs@kwebapp.cn' #邮件地址
|
|
37
|
+
# kcws['maintainer']='坤坤' #维护人员的名字
|
|
38
|
+
# kcws['maintainer_email']='fk1402936534@qq.com' #维护人员的邮件地址
|
|
39
|
+
# kcws['username']=''
|
|
40
|
+
# kcws['password']=''
|
|
41
41
|
|
|
42
42
|
domain={}
|
|
43
43
|
domain['kcwebsfile']="https://file.kwebapp.cn"
|
|
@@ -48,5 +48,5 @@ domain['kcwebsapi']="https://kcwebsapi.kwebapp.cn"
|
|
|
48
48
|
#其他配置
|
|
49
49
|
other={}
|
|
50
50
|
|
|
51
|
-
fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr=kcws
|
|
51
|
+
fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr='kcws' #不要修改改参数,否则无法上传模块和插件
|
|
52
52
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
|
+
Name: kcws
|
|
3
|
+
Version: 3.1
|
|
4
|
+
Summary: kcwebs作为web开发而设计的高性能框架
|
|
5
|
+
Home-page: https://docs.kwebapp.cn/index/index/2
|
|
6
|
+
Author: 百里-坤坤
|
|
7
|
+
Author-email: kcwebs@kwebapp.cn
|
|
8
|
+
Maintainer: 坤坤
|
|
9
|
+
Maintainer-email: fk1402936534@qq.com
|
|
10
|
+
License: MIT License
|
|
11
|
+
Description: kcwebs作为web开发而设计的高性能框架,采用全新的架构思想,注重易用性。遵循MIT开源许可协议发布,意味着个人和企业可以免费使用kcwebs,甚至允许把你基于kcwebs开发的应用开源或商业产品发布或销售。完整文档请访问:https://docs.kwebapp.cn/index/index/2
|
|
12
|
+
Keywords: kcws3.01
|
|
13
|
+
Platform: UNKNOWN
|
kcws-3.1/setup.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# 打包上传 python setup.py sdist upload
|
|
3
|
+
# 打包并安装 python setup.py sdist install
|
|
4
|
+
# twine upload --repository-url https://test.pypi.org/legacy/ dist/* #上传到测试
|
|
5
|
+
# pip install --index-url https://pypi.org/simple/ kcwebs #安装测试服务上的kcwebs pip3 install kcwebs==4.12.4 -i https://pypi.org/simple/
|
|
6
|
+
# 安装 python setup.py install
|
|
7
|
+
#############################################
|
|
8
|
+
import os,sys
|
|
9
|
+
from setuptools import setup,Extension
|
|
10
|
+
from kcws import kcwsinfo
|
|
11
|
+
def get_file(folder='./',lists=[]):
|
|
12
|
+
lis=os.listdir(folder)
|
|
13
|
+
for files in lis:
|
|
14
|
+
if not os.path.isfile(folder+"/"+files):
|
|
15
|
+
if files=='__pycache__' or files=='.git':
|
|
16
|
+
pass
|
|
17
|
+
else:
|
|
18
|
+
lists.append(folder+"/"+files)
|
|
19
|
+
get_file(folder+"/"+files,lists)
|
|
20
|
+
else:
|
|
21
|
+
pass
|
|
22
|
+
return lists
|
|
23
|
+
def start():
|
|
24
|
+
b=get_file("kcws",['kcws'])
|
|
25
|
+
setup(
|
|
26
|
+
name = kcwsinfo["name"],
|
|
27
|
+
version = kcwsinfo["version"],
|
|
28
|
+
keywords = "kcws"+kcwsinfo['version'],
|
|
29
|
+
description = kcwsinfo["description"],
|
|
30
|
+
long_description = kcwsinfo["long_description"],
|
|
31
|
+
license = kcwsinfo["license"],
|
|
32
|
+
author = kcwsinfo["author"],
|
|
33
|
+
author_email = kcwsinfo["author_email"],
|
|
34
|
+
maintainer = kcwsinfo["maintainer"],
|
|
35
|
+
maintainer_email = kcwsinfo["maintainer_email"],
|
|
36
|
+
url=kcwsinfo['url'],
|
|
37
|
+
packages = b,
|
|
38
|
+
install_requires = ['gunicorn==20.0.4','watchdog==4.0.0','filetype==1.2.0','psutil==5.8.0','requests==2.32.4'], #第三方包
|
|
39
|
+
package_data = {
|
|
40
|
+
'': ['*.html', '*.js','*.css','*.jpg','*.png','*.gif'],
|
|
41
|
+
},
|
|
42
|
+
entry_points = {
|
|
43
|
+
'console_scripts':[
|
|
44
|
+
'kcws = kcws.kcws:cill_start'
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
start()
|
kcws-2.0/PKG-INFO
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: kcws
|
|
3
|
-
Version: 2.0
|
|
4
|
-
Summary: 超轻量级http框架
|
|
5
|
-
Home-page: https://docs.kwebapp.cn/index/index/1
|
|
6
|
-
Author: 百里-坤坤
|
|
7
|
-
Author-email: kcwebs@kwebapp.cn
|
|
8
|
-
Maintainer: 坤坤
|
|
9
|
-
Maintainer-email: fk1402936534@qq.com
|
|
10
|
-
License: MIT License
|
|
11
|
-
Description: kcws是一个由kcwebs抽象出来的超轻量级http框架
|
|
12
|
-
Keywords: kcws2.0
|
|
13
|
-
Platform: UNKNOWN
|
kcws-2.0/README.md
DELETED
kcws-2.0/kcws/__init__.py
DELETED
kcws-2.0/kcws.egg-info/PKG-INFO
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 1.2
|
|
2
|
-
Name: kcws
|
|
3
|
-
Version: 2.0
|
|
4
|
-
Summary: 超轻量级http框架
|
|
5
|
-
Home-page: https://docs.kwebapp.cn/index/index/1
|
|
6
|
-
Author: 百里-坤坤
|
|
7
|
-
Author-email: kcwebs@kwebapp.cn
|
|
8
|
-
Maintainer: 坤坤
|
|
9
|
-
Maintainer-email: fk1402936534@qq.com
|
|
10
|
-
License: MIT License
|
|
11
|
-
Description: kcws是一个由kcwebs抽象出来的超轻量级http框架
|
|
12
|
-
Keywords: kcws2.0
|
|
13
|
-
Platform: UNKNOWN
|
kcws-2.0/setup.py
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# 打包上传 python setup.py sdist upload
|
|
3
|
-
# 打包并安装 python setup.py sdist install
|
|
4
|
-
# twine upload --repository-url https://test.pypi.org/legacy/ dist/* #上传到测试
|
|
5
|
-
# pip install --index-url https://pypi.org/simple/ kcwebs #安装测试服务上的kcwebs pip3 install kcwebs==4.12.4 -i https://pypi.org/simple/
|
|
6
|
-
# 安装 python setup.py install
|
|
7
|
-
#############################################
|
|
8
|
-
import os,sys
|
|
9
|
-
from setuptools import setup, find_packages,Extension
|
|
10
|
-
class setupconfig:
|
|
11
|
-
kcws={}
|
|
12
|
-
kcws['name']='kcws' #项目的名称
|
|
13
|
-
kcws['version']='2.0' #项目版本
|
|
14
|
-
kcws['description']='超轻量级http框架' #项目的简单描述
|
|
15
|
-
kcws['long_description']='kcws是一个由kcwebs抽象出来的超轻量级http框架' #项目详细描述
|
|
16
|
-
kcws['license']='MIT License' #开源协议 mit开源
|
|
17
|
-
kcws['url']='https://docs.kwebapp.cn/index/index/1'
|
|
18
|
-
kcws['author']='百里-坤坤' #名字
|
|
19
|
-
kcws['author_email']='kcwebs@kwebapp.cn' #邮件地址
|
|
20
|
-
kcws['maintainer']='坤坤' #维护人员的名字
|
|
21
|
-
kcws['maintainer_email']='fk1402936534@qq.com' #维护人员的邮件地址
|
|
22
|
-
confkcws={}
|
|
23
|
-
confkcws['name']=setupconfig.kcws['name'] #项目的名称
|
|
24
|
-
confkcws['version']=setupconfig.kcws['version'] #项目版本
|
|
25
|
-
confkcws['description']=setupconfig.kcws['description'] #项目的简单描述
|
|
26
|
-
confkcws['long_description']=setupconfig.kcws['long_description'] #项目详细描述
|
|
27
|
-
confkcws['license']=setupconfig.kcws['license'] #开源协议 mit开源
|
|
28
|
-
confkcws['url']=setupconfig.kcws['url']
|
|
29
|
-
confkcws['author']=setupconfig.kcws['author'] #名字
|
|
30
|
-
confkcws['author_email']=setupconfig.kcws['author_email'] #邮件地址
|
|
31
|
-
confkcws['maintainer']=setupconfig.kcws['maintainer'] #维护人员的名字
|
|
32
|
-
confkcws['maintainer_email']=setupconfig.kcws['maintainer_email'] #维护人员的邮件地址
|
|
33
|
-
def get_file(folder='./',lists=[]):
|
|
34
|
-
lis=os.listdir(folder)
|
|
35
|
-
for files in lis:
|
|
36
|
-
if not os.path.isfile(folder+"/"+files):
|
|
37
|
-
if files=='__pycache__' or files=='.git':
|
|
38
|
-
pass
|
|
39
|
-
else:
|
|
40
|
-
lists.append(folder+"/"+files)
|
|
41
|
-
get_file(folder+"/"+files,lists)
|
|
42
|
-
else:
|
|
43
|
-
pass
|
|
44
|
-
return lists
|
|
45
|
-
def start():
|
|
46
|
-
b=get_file("kcws",['kcws'])
|
|
47
|
-
setup(
|
|
48
|
-
name = confkcws["name"],
|
|
49
|
-
version = confkcws["version"],
|
|
50
|
-
keywords = "kcws"+confkcws['version'],
|
|
51
|
-
description = confkcws["description"],
|
|
52
|
-
long_description = confkcws["long_description"],
|
|
53
|
-
license = confkcws["license"],
|
|
54
|
-
author = confkcws["author"],
|
|
55
|
-
author_email = confkcws["author_email"],
|
|
56
|
-
maintainer = confkcws["maintainer"],
|
|
57
|
-
maintainer_email = confkcws["maintainer_email"],
|
|
58
|
-
url=confkcws['url'],
|
|
59
|
-
packages = b,
|
|
60
|
-
install_requires = ['gunicorn==20.0.4','watchdog==4.0.0','filetype==1.2.0','psutil==5.8.0','requests==2.32.4'], #第三方包
|
|
61
|
-
package_data = {
|
|
62
|
-
'': ['*.html', '*.js','*.css','*.jpg','*.png','*.gif'],
|
|
63
|
-
},
|
|
64
|
-
entry_points = {
|
|
65
|
-
'console_scripts':[
|
|
66
|
-
'kcws = kcws.kcws:cill_start'
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
start()
|
|
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
|
{kcws-2.0 → kcws-3.1}/setup.cfg
RENAMED
|
File without changes
|