kunapi 1.9__tar.gz → 1.12__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.
Files changed (33) hide show
  1. {kunapi-1.9 → kunapi-1.12}/PKG-INFO +2 -2
  2. {kunapi-1.9 → kunapi-1.12}/kunapi/__init__.py +1 -1
  3. {kunapi-1.9 → kunapi-1.12}/kunapi/kunapi.py +41 -5
  4. {kunapi-1.9 → kunapi-1.12}/kunapi.egg-info/PKG-INFO +2 -2
  5. {kunapi-1.9 → kunapi-1.12}/kunapi/Events.py +0 -0
  6. {kunapi-1.9 → kunapi-1.12}/kunapi/app.py +0 -0
  7. {kunapi-1.9 → kunapi-1.12}/kunapi/common/__init__.py +0 -0
  8. {kunapi-1.9 → kunapi-1.12}/kunapi/common/autoload.py +0 -0
  9. {kunapi-1.9 → kunapi-1.12}/kunapi/common/globals.py +0 -0
  10. {kunapi-1.9 → kunapi-1.12}/kunapi/common/request.py +0 -0
  11. {kunapi-1.9 → kunapi-1.12}/kunapi/config/__init__.py +0 -0
  12. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/__init__.py +0 -0
  13. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/common/__init__.py +0 -0
  14. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/common/autoload.py +0 -0
  15. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/common/model.py +0 -0
  16. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/config/__init__.py +0 -0
  17. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/config/app.py +0 -0
  18. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/__init__.py +0 -0
  19. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/common/__init__.py +0 -0
  20. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/common/autoload.py +0 -0
  21. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/controller/__init__.py +0 -0
  22. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/controller/index/__init__.py +0 -0
  23. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/controller/index/common/__init__.py +0 -0
  24. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/controller/index/common/autoload.py +0 -0
  25. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/controller/index/common/model.py +0 -0
  26. {kunapi-1.9 → kunapi-1.12}/kunapi/tempfile/kunapi/app/index/controller/index/index.py +0 -0
  27. {kunapi-1.9 → kunapi-1.12}/kunapi.egg-info/SOURCES.txt +0 -0
  28. {kunapi-1.9 → kunapi-1.12}/kunapi.egg-info/dependency_links.txt +0 -0
  29. {kunapi-1.9 → kunapi-1.12}/kunapi.egg-info/entry_points.txt +0 -0
  30. {kunapi-1.9 → kunapi-1.12}/kunapi.egg-info/requires.txt +0 -0
  31. {kunapi-1.9 → kunapi-1.12}/kunapi.egg-info/top_level.txt +0 -0
  32. {kunapi-1.9 → kunapi-1.12}/setup.cfg +0 -0
  33. {kunapi-1.9 → kunapi-1.12}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kunapi
3
- Version: 1.9
3
+ Version: 1.12
4
4
  Summary: kunapi
5
5
  Home-page: https://docs.kwebapp.cn/index/index/2
6
6
  Author: 百里-坤坤
@@ -8,6 +8,6 @@ Author-email: fengkun01@qq.com
8
8
  Maintainer: 坤坤
9
9
  Maintainer-email: fengkun01@qq.com
10
10
  License: MIT License
11
- Keywords: kunapi1.9
11
+ Keywords: kunapi1.12
12
12
 
13
13
  kunapi
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = '1.9'
2
+ __version__ = '1.12'
3
3
  try:
4
4
  from .app import web
5
5
  except:pass
@@ -7,16 +7,16 @@ def get_cmd_par(fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr=''):
7
7
  global fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1
8
8
  if fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr:
9
9
  fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1=fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr
10
- python_version=platform.python_version()
10
+ # python_version=platform.python_version()
11
11
  # if python_version[0:3]!='3.8':
12
12
  # print("\033[1;31;40m "+fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1+"依赖python3.8,与你现在的python"+python_version+"不兼容")
13
13
  # exit()
14
14
  if 'Linux' in get_sysinfo()['platform'] or 'Windows' in get_sysinfo()['platform']:pass
15
15
  else:
16
- print("\033[1;31;40m "+fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1+"不支持当前操作系统 解压在linux或windows系统下运行")
16
+ print("\033[1;31;40m "+fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1+"不支持当前操作系统 linux或windows系统下运行")
17
17
  exit()
18
18
  try:
19
- opts, args = getopt.getopt(sys.argv[1:], "h", ["project=","app=","modular=","plug=","user=","pwd=","host=","port=","timeout=","processcount=",
19
+ opts, args = getopt.getopt(sys.argv[1:], "h", ["project=","app=","modular=","plug=","user=","pwd=","host=","port=","timeout=","processcount=","cmd=","path=",
20
20
  "install","uninstall","pack","upload","cli"])
21
21
  # print("opts",opts)
22
22
  # print("args",args)
@@ -42,6 +42,8 @@ def get_cmd_par(fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr=''):
42
42
  port=39001
43
43
  timeout='600'
44
44
  processcount='4'
45
+ cmd=''
46
+ path=''
45
47
 
46
48
  install=False
47
49
  uninstall=False
@@ -73,6 +75,15 @@ def get_cmd_par(fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr=''):
73
75
  timeout=data[1]
74
76
  elif '--processcount' == data[0]:
75
77
  processcount=data[1]
78
+ elif '--cmd' == data[0]:
79
+ cmd=data[1]
80
+ # print('cmd',cmd)
81
+ elif '--path' == data[0]:
82
+ # print('path',data[1])
83
+ if data[1]:
84
+ path=data[1]
85
+ print('已切换工作目录',path)
86
+ os.chdir(path)
76
87
 
77
88
  elif '--help' == data[0]:
78
89
  help=True
@@ -105,13 +116,15 @@ def get_cmd_par(fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr=''):
105
116
  print("\033[1;31;40m有关"+fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1+"命令的详细信息,请键入 "+fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1+" help",e)
106
117
  return False
107
118
  else:
108
- return {
119
+ seawew={
109
120
  'server':server,
110
121
  'update':update,
111
122
  'project':project,'appname':appname,'modular':modular,'username':username,'password':password,'plug':plug,'host':host,'port':port,'timeout':timeout,'processcount':processcount,
112
- 'help':help,'install':install,'uninstall':uninstall,'pack':pack,'upload':upload,'cli':cli,
123
+ 'help':help,'install':install,'uninstall':uninstall,'pack':pack,'upload':upload,'cli':cli,'cmd':cmd,'path':path,
113
124
  'index':i
114
125
  }
126
+ # print('seawew',seawew)
127
+ return seawew
115
128
  def temp_get_file(folder='./',lists=[]):
116
129
  lis=os.listdir(folder)
117
130
  for files in lis:
@@ -388,6 +401,29 @@ def cllfunction():
388
401
  else:
389
402
  print("\033[1;31;40m卸载时 必须指定应该app和modular,参考命令: "+fdgrsgrsegsrsgrsbsdbftbrsbfdrtrtbdfsrsgr1+" --app app --modular api")
390
403
  exit()
404
+ elif cmd_par['cmd']:
405
+
406
+ if '&&' in cmd_par['cmd']:
407
+ for cmds in cmd_par['cmd'].split('&&'):
408
+ print('执行命令',cmds.strip())
409
+ if cmds[0:3] == 'cd ':
410
+ # os.system(cmds)
411
+ print('已切换工作目录',cmds[3:])
412
+ os.chdir(cmds[3:].strip())
413
+ else:
414
+ os.system(cmds.strip())
415
+ # elif '||' in cmd_par['cmd']:
416
+ # for cmds in cmd_par['cmd'].split('||'):
417
+ # print('执行命令',cmds)
418
+ # if cmds[0:3] == 'cd ':
419
+ # # os.system(cmds)
420
+ # print('已切换工作目录',cmds[3:])
421
+ # os.chdir(cmds[3:])
422
+ # else:
423
+ # os.system(cmds)
424
+ else:
425
+ print('执行命令',cmd_par['cmd'].strip())
426
+ os.system(cmd_par['cmd'].strip())
391
427
  elif cmd_par['cli']:#通过命令行执行控制器的方法
392
428
  try:
393
429
  obj=importlib.import_module(cmd_par['appname']+'.common')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kunapi
3
- Version: 1.9
3
+ Version: 1.12
4
4
  Summary: kunapi
5
5
  Home-page: https://docs.kwebapp.cn/index/index/2
6
6
  Author: 百里-坤坤
@@ -8,6 +8,6 @@ Author-email: fengkun01@qq.com
8
8
  Maintainer: 坤坤
9
9
  Maintainer-email: fengkun01@qq.com
10
10
  License: MIT License
11
- Keywords: kunapi1.9
11
+ Keywords: kunapi1.12
12
12
 
13
13
  kunapi
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