kcws 1.93__tar.gz → 1.94__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.93 → kcws-1.94}/PKG-INFO +2 -2
- {kcws-1.93 → kcws-1.94}/kcws/common/autoload.py +15 -2
- {kcws-1.93 → kcws-1.94}/kcws/config/__init__.py +1 -1
- {kcws-1.93 → kcws-1.94}/kcws.egg-info/PKG-INFO +2 -2
- {kcws-1.93 → kcws-1.94}/setup.py +1 -1
- {kcws-1.93 → kcws-1.94}/README.md +0 -0
- {kcws-1.93 → kcws-1.94}/kcws/Events.py +0 -0
- {kcws-1.93 → kcws-1.94}/kcws/__init__.py +0 -0
- {kcws-1.93 → kcws-1.94}/kcws/app.py +0 -0
- {kcws-1.93 → kcws-1.94}/kcws/common/__init__.py +0 -0
- {kcws-1.93 → kcws-1.94}/kcws/common/globals.py +0 -0
- {kcws-1.93 → kcws-1.94}/kcws/common/request.py +0 -0
- {kcws-1.93 → kcws-1.94}/kcws/kcws.py +0 -0
- {kcws-1.93 → kcws-1.94}/kcws.egg-info/SOURCES.txt +0 -0
- {kcws-1.93 → kcws-1.94}/kcws.egg-info/dependency_links.txt +0 -0
- {kcws-1.93 → kcws-1.94}/kcws.egg-info/entry_points.txt +0 -0
- {kcws-1.93 → kcws-1.94}/kcws.egg-info/requires.txt +0 -0
- {kcws-1.93 → kcws-1.94}/kcws.egg-info/top_level.txt +0 -0
- {kcws-1.93 → kcws-1.94}/setup.cfg +0 -0
{kcws-1.93 → kcws-1.94}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 1.2
|
|
2
2
|
Name: kcws
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.94
|
|
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: kcws1.
|
|
12
|
+
Keywords: kcws1.94
|
|
13
13
|
Platform: UNKNOWN
|
|
@@ -289,12 +289,25 @@ def get_pid_info(pid,types='pid'):
|
|
|
289
289
|
try:
|
|
290
290
|
if types=='info':
|
|
291
291
|
p = psutil.Process(pid)
|
|
292
|
+
memory=p.memory_info()
|
|
293
|
+
io_counters = p.io_counters()
|
|
294
|
+
# connections = p.connections(kind='inet')
|
|
292
295
|
data={
|
|
293
296
|
'pid':pid,
|
|
294
297
|
'name':p.name(),
|
|
295
298
|
'cli':p.cmdline(),
|
|
296
|
-
'
|
|
297
|
-
|
|
299
|
+
'net':{
|
|
300
|
+
'read_count': io_counters.read_count,
|
|
301
|
+
'write_count': io_counters.write_count
|
|
302
|
+
# 'connections': connections
|
|
303
|
+
},
|
|
304
|
+
'cpu':{
|
|
305
|
+
'percent',p.cpu_percent(1) #一秒内cpu使用率
|
|
306
|
+
},
|
|
307
|
+
'memory':{
|
|
308
|
+
'rss':memory.rss, #实际物理内存使用量
|
|
309
|
+
'vms':memory.vms, #虚拟内存大小
|
|
310
|
+
}
|
|
298
311
|
}
|
|
299
312
|
return data
|
|
300
313
|
else:
|
|
@@ -27,7 +27,7 @@ route['children']=[]
|
|
|
27
27
|
|
|
28
28
|
kcws={}
|
|
29
29
|
kcws['name']='kcws' #项目的名称
|
|
30
|
-
kcws['version']='1.
|
|
30
|
+
kcws['version']='1.94' #项目版本
|
|
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: 1.
|
|
3
|
+
Version: 1.94
|
|
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: kcws1.
|
|
12
|
+
Keywords: kcws1.94
|
|
13
13
|
Platform: UNKNOWN
|
{kcws-1.93 → kcws-1.94}/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']='1.
|
|
13
|
+
kcws['version']='1.94' #项目版本
|
|
14
14
|
kcws['description']='超轻量级http框架' #项目的简单描述
|
|
15
15
|
kcws['long_description']='kcws是一个由kcwebs抽象出来的超轻量级http框架' #项目详细描述
|
|
16
16
|
kcws['license']='MIT License' #开源协议 mit开源
|
|
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
|