kcws 1.95__tar.gz → 2.0__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-1.95 → kcws-2.0}/PKG-INFO +2 -2
- {kcws-1.95 → kcws-2.0}/kcws/app.py +3 -1
- {kcws-1.95 → kcws-2.0}/kcws/common/autoload.py +3 -1
- {kcws-1.95 → kcws-2.0}/kcws/config/__init__.py +1 -1
- {kcws-1.95 → kcws-2.0}/kcws/kcws.py +1 -1
- {kcws-1.95 → kcws-2.0}/kcws.egg-info/PKG-INFO +2 -2
- {kcws-1.95 → kcws-2.0}/setup.py +1 -1
- {kcws-1.95 → kcws-2.0}/README.md +0 -0
- {kcws-1.95 → kcws-2.0}/kcws/Events.py +0 -0
- {kcws-1.95 → kcws-2.0}/kcws/__init__.py +0 -0
- {kcws-1.95 → kcws-2.0}/kcws/common/__init__.py +0 -0
- {kcws-1.95 → kcws-2.0}/kcws/common/globals.py +0 -0
- {kcws-1.95 → kcws-2.0}/kcws/common/request.py +0 -0
- {kcws-1.95 → kcws-2.0}/kcws.egg-info/SOURCES.txt +0 -0
- {kcws-1.95 → kcws-2.0}/kcws.egg-info/dependency_links.txt +0 -0
- {kcws-1.95 → kcws-2.0}/kcws.egg-info/entry_points.txt +0 -0
- {kcws-1.95 → kcws-2.0}/kcws.egg-info/requires.txt +0 -0
- {kcws-1.95 → kcws-2.0}/kcws.egg-info/top_level.txt +0 -0
- {kcws-1.95 → kcws-2.0}/setup.cfg +0 -0
{kcws-1.95 → kcws-2.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.2
|
|
2
2
|
Name: kcws
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0
|
|
4
4
|
Summary: 超轻量级http框架
|
|
5
5
|
Home-page: https://docs.kwebapp.cn/index/index/1
|
|
6
6
|
Author: 百里-坤坤
|
|
@@ -9,5 +9,5 @@ Maintainer: 坤坤
|
|
|
9
9
|
Maintainer-email: fk1402936534@qq.com
|
|
10
10
|
License: MIT License
|
|
11
11
|
Description: kcws是一个由kcwebs抽象出来的超轻量级http框架
|
|
12
|
-
Keywords:
|
|
12
|
+
Keywords: kcws2.0
|
|
13
13
|
Platform: UNKNOWN
|
|
@@ -29,6 +29,7 @@ class web:
|
|
|
29
29
|
status="304 Not Modified"
|
|
30
30
|
body=''
|
|
31
31
|
else:
|
|
32
|
+
import filetype
|
|
32
33
|
kind = filetype.guess(p)
|
|
33
34
|
if kind is None:
|
|
34
35
|
f=open(p,"rb")
|
|
@@ -96,7 +97,7 @@ class web:
|
|
|
96
97
|
"""
|
|
97
98
|
# self.__host=host
|
|
98
99
|
# self.__port=port
|
|
99
|
-
|
|
100
|
+
import sys
|
|
100
101
|
cmd=sys.argv
|
|
101
102
|
config.app['cli']=False
|
|
102
103
|
if 'eventlog' in cmd or len(cmd)==1 or (len(cmd)>=2 and cmd[len(cmd)-1]=='server'):
|
|
@@ -761,6 +762,7 @@ class web:
|
|
|
761
762
|
if HTTP_IF_NONE_MATCH:
|
|
762
763
|
status="304 Not Modified"
|
|
763
764
|
else:
|
|
765
|
+
import filetype
|
|
764
766
|
kind = filetype.guess(p)
|
|
765
767
|
if kind is None:
|
|
766
768
|
f=open(p,"rb")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
import time,hashlib,json,re,os,
|
|
2
|
+
import time,hashlib,json,re,os,platform,shutil,requests,importlib,traceback,tarfile,zipfile,signal,psutil
|
|
3
3
|
from kcws import config
|
|
4
4
|
from . import globals
|
|
5
5
|
import subprocess
|
|
@@ -499,6 +499,7 @@ class create:
|
|
|
499
499
|
|
|
500
500
|
plug 插件名
|
|
501
501
|
"""
|
|
502
|
+
import pip
|
|
502
503
|
plug=str(plug)
|
|
503
504
|
if os.path.exists(self.project+self.appname+"/"+self.modular+"/controller/"+plug) and not mandatory:
|
|
504
505
|
return False,"该插件已存在"
|
|
@@ -696,6 +697,7 @@ class create:
|
|
|
696
697
|
return False,arr['msg']
|
|
697
698
|
def installmodular(self,token='',cli=False):
|
|
698
699
|
"创建模块,如果应用不存,则创建默认应用,如果在您的应用目录下没有模块包,则创建默认模块文件"
|
|
700
|
+
import pip
|
|
699
701
|
if not os.path.exists(self.project+self.appname):
|
|
700
702
|
if config.fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr=='kcwebps':
|
|
701
703
|
r=requests.get(config.domain['kcwebsfile']+"/kcwebs/kcwebps.zip")
|
|
@@ -27,7 +27,7 @@ route['children']=[]
|
|
|
27
27
|
|
|
28
28
|
kcws={}
|
|
29
29
|
kcws['name']='kcws' #项目的名称
|
|
30
|
-
kcws['version']='1.
|
|
30
|
+
kcws['version']='1.96' #项目版本
|
|
31
31
|
kcws['description']='超轻量级http框架' #项目的简单描述
|
|
32
32
|
kcws['long_description']='kcws是一个由kcwebs抽象出来的超轻量级http框架' #项目详细描述
|
|
33
33
|
kcws['license']='MIT License' #开源协议 mit开源
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.2
|
|
2
2
|
Name: kcws
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0
|
|
4
4
|
Summary: 超轻量级http框架
|
|
5
5
|
Home-page: https://docs.kwebapp.cn/index/index/1
|
|
6
6
|
Author: 百里-坤坤
|
|
@@ -9,5 +9,5 @@ Maintainer: 坤坤
|
|
|
9
9
|
Maintainer-email: fk1402936534@qq.com
|
|
10
10
|
License: MIT License
|
|
11
11
|
Description: kcws是一个由kcwebs抽象出来的超轻量级http框架
|
|
12
|
-
Keywords:
|
|
12
|
+
Keywords: kcws2.0
|
|
13
13
|
Platform: UNKNOWN
|
{kcws-1.95 → kcws-2.0}/setup.py
RENAMED
|
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages,Extension
|
|
|
10
10
|
class setupconfig:
|
|
11
11
|
kcws={}
|
|
12
12
|
kcws['name']='kcws' #项目的名称
|
|
13
|
-
kcws['version']='
|
|
13
|
+
kcws['version']='2.0' #项目版本
|
|
14
14
|
kcws['description']='超轻量级http框架' #项目的简单描述
|
|
15
15
|
kcws['long_description']='kcws是一个由kcwebs抽象出来的超轻量级http框架' #项目详细描述
|
|
16
16
|
kcws['license']='MIT License' #开源协议 mit开源
|
{kcws-1.95 → kcws-2.0}/README.md
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
|
{kcws-1.95 → kcws-2.0}/setup.cfg
RENAMED
|
File without changes
|