kunapi 1.16__tar.gz → 1.18__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.
- {kunapi-1.16 → kunapi-1.18}/PKG-INFO +2 -2
- {kunapi-1.16 → kunapi-1.18}/kunapi/__init__.py +1 -1
- {kunapi-1.16 → kunapi-1.18}/kunapi/common/autoload.py +3 -1
- {kunapi-1.16 → kunapi-1.18}/kunapi/kunapi.py +1 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi.egg-info/PKG-INFO +2 -2
- {kunapi-1.16 → kunapi-1.18}/setup.py +1 -1
- {kunapi-1.16 → kunapi-1.18}/kunapi/Events.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/app.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/common/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/common/globals.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/common/request.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/config/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/common/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/common/autoload.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/common/model.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/config/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/config/app.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/common/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/common/autoload.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/index/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/index/common/__init__.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/index/common/autoload.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/index/common/model.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/index/index.py +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi.egg-info/SOURCES.txt +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi.egg-info/dependency_links.txt +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi.egg-info/entry_points.txt +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi.egg-info/requires.txt +0 -0
- {kunapi-1.16 → kunapi-1.18}/kunapi.egg-info/top_level.txt +0 -0
- {kunapi-1.16 → kunapi-1.18}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kunapi
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.18
|
|
4
4
|
Summary: kunapi
|
|
5
5
|
Home-page: https://docs.kwebapp.cn/index/index/2
|
|
6
6
|
Author: 百里-坤坤
|
|
@@ -8,7 +8,7 @@ Author-email: fengkun01@qq.com
|
|
|
8
8
|
Maintainer: 坤坤
|
|
9
9
|
Maintainer-email: fengkun01@qq.com
|
|
10
10
|
License: MIT License
|
|
11
|
-
Keywords: kunapi1.
|
|
11
|
+
Keywords: kunapi1.18
|
|
12
12
|
Requires-Dist: gunicorn==20.0.4
|
|
13
13
|
Requires-Dist: waitress==3.0.0
|
|
14
14
|
Requires-Dist: watchdog==4.0.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
import time,json,re,os,platform,shutil,requests,importlib,traceback,
|
|
2
|
+
import time,json,re,os,sys,platform,shutil,requests,importlib,traceback,psutil,random
|
|
3
3
|
from kunapi import config
|
|
4
4
|
from . import globals
|
|
5
5
|
import subprocess
|
|
@@ -462,6 +462,7 @@ class kcwstar:
|
|
|
462
462
|
:param dst: 压缩文件名
|
|
463
463
|
:return: bool
|
|
464
464
|
"""
|
|
465
|
+
import tarfile
|
|
465
466
|
with tarfile.open(dst, "w:gz") as tar:
|
|
466
467
|
tar.add(src, arcname=os.path.basename(src))
|
|
467
468
|
return True
|
|
@@ -472,6 +473,7 @@ class kcwstar:
|
|
|
472
473
|
:param src: 解压后的存放路径
|
|
473
474
|
:return: bool
|
|
474
475
|
"""
|
|
476
|
+
import tarfile
|
|
475
477
|
try:
|
|
476
478
|
t = tarfile.open(dst)
|
|
477
479
|
t.extractall(path = src)
|
|
@@ -358,6 +358,7 @@ def cllfunction():
|
|
|
358
358
|
else:
|
|
359
359
|
save_route_cli_pid('pid/'+fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1+'_server_pid')
|
|
360
360
|
from gunicorn.app.wsgiapp import run
|
|
361
|
+
import re
|
|
361
362
|
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$','',sys.argv[0])
|
|
362
363
|
sys.argv=[sys.argv[0], '-w', str(cmd_par['processcount']), '-b', cmd_par['host']+':'+str(cmd_par['port']),'-t',cmd_par['timeout'], 'server:'+cmd_par['appname']]
|
|
363
364
|
if cmd_par['daemonyun']:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kunapi
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.18
|
|
4
4
|
Summary: kunapi
|
|
5
5
|
Home-page: https://docs.kwebapp.cn/index/index/2
|
|
6
6
|
Author: 百里-坤坤
|
|
@@ -8,7 +8,7 @@ Author-email: fengkun01@qq.com
|
|
|
8
8
|
Maintainer: 坤坤
|
|
9
9
|
Maintainer-email: fengkun01@qq.com
|
|
10
10
|
License: MIT License
|
|
11
|
-
Keywords: kunapi1.
|
|
11
|
+
Keywords: kunapi1.18
|
|
12
12
|
Requires-Dist: gunicorn==20.0.4
|
|
13
13
|
Requires-Dist: waitress==3.0.0
|
|
14
14
|
Requires-Dist: watchdog==4.0.0
|
|
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
|
{kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/index/common/__init__.py
RENAMED
|
File without changes
|
{kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/index/common/autoload.py
RENAMED
|
File without changes
|
{kunapi-1.16 → kunapi-1.18}/kunapi/tempfile/kunapi/app/index/controller/index/common/model.py
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
|