kcwebs 1.92__tar.gz → 3.3__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 (42) hide show
  1. {kcwebs-1.92 → kcwebs-3.3}/PKG-INFO +2 -2
  2. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/__init__.py +1 -1
  3. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/common/autoload.py +5 -4
  4. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/config/__init__.py +3 -0
  5. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/utill/db/model.py +0 -1
  6. {kcwebs-1.92 → kcwebs-3.3}/kcwebs.egg-info/PKG-INFO +2 -2
  7. {kcwebs-1.92 → kcwebs-3.3}/kcwebs.egg-info/requires.txt +4 -4
  8. {kcwebs-1.92 → kcwebs-3.3}/setup.py +2 -4
  9. {kcwebs-1.92 → kcwebs-3.3}/README.md +0 -0
  10. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/common/__init__.py +0 -0
  11. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/common/session.py +0 -0
  12. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/kcwebs.py +0 -0
  13. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/__init__.py +0 -0
  14. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/__init__.py +0 -0
  15. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/common/__init__.py +0 -0
  16. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/common/autoload.py +0 -0
  17. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/__init__.py +0 -0
  18. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/index/__init__.py +0 -0
  19. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/__init__.py +0 -0
  20. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/autoload.py +0 -0
  21. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/html/include/static.html +0 -0
  22. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/index/common/model.py +0 -0
  23. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/index/index.py +0 -0
  24. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/home.html +0 -0
  25. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/api/controller/index/tpl/index/index.html +0 -0
  26. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/common/__init__.py +0 -0
  27. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/common/autoload.py +0 -0
  28. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/common/html/include/static.html +0 -0
  29. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/common/model.py +0 -0
  30. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/config/__init__.py +0 -0
  31. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/config/app.py +0 -0
  32. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/config/database.py +0 -0
  33. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/config/other.py +0 -0
  34. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/app/config/redis.py +0 -0
  35. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/tempfile/kcwebs/server.py +0 -0
  36. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/utill/db/mongodb.py +0 -0
  37. {kcwebs-1.92 → kcwebs-3.3}/kcwebs/utill/queues.py +0 -0
  38. {kcwebs-1.92 → kcwebs-3.3}/kcwebs.egg-info/SOURCES.txt +0 -0
  39. {kcwebs-1.92 → kcwebs-3.3}/kcwebs.egg-info/dependency_links.txt +0 -0
  40. {kcwebs-1.92 → kcwebs-3.3}/kcwebs.egg-info/entry_points.txt +0 -0
  41. {kcwebs-1.92 → kcwebs-3.3}/kcwebs.egg-info/top_level.txt +0 -0
  42. {kcwebs-1.92 → kcwebs-3.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: kcwebs
3
- Version: 1.92
3
+ Version: 3.3
4
4
  Summary: kcwebs作为web开发而设计的高性能框架
5
5
  Home-page: https://docs.kwebapp.cn/index/index/2
6
6
  Author: 百里-坤坤
@@ -9,5 +9,5 @@ Maintainer: 坤坤
9
9
  Maintainer-email: fk1402936534@qq.com
10
10
  License: MIT License
11
11
  Description: kcwebs作为web开发而设计的高性能框架,采用全新的架构思想,注重易用性。遵循MIT开源许可协议发布,意味着个人和企业可以免费使用kcwebs,甚至允许把你基于kcwebs开发的应用开源或商业产品发布或销售。完整文档请访问:https://docs.kwebapp.cn/index/index/2
12
- Keywords: kcwebs1.92
12
+ Keywords: kcwebs3.3
13
13
  Platform: UNKNOWN
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = '1.92'
2
+ __version__ = '3.3'
3
3
 
4
4
  kcwebsinfo={}
5
5
  kcwebsinfo['name']='kcwebs' #项目的名称
@@ -2,6 +2,7 @@ from kcws.common import *
2
2
  from .. import config
3
3
  import random,urllib,asyncio,websockets,smtplib,datetime,chardet,copy
4
4
  import kcwredis,kcwcache,kcwmysql
5
+ import kcwsqlite
5
6
  from kcwebs.utill.db import mongodb as kcwsmongodb
6
7
  from kcwhttp.httpclass import Http
7
8
  from kcwebs.utill.queues import Queues
@@ -381,7 +382,7 @@ def sqlite(table=None,configss=None):
381
382
 
382
383
  参数 configss 数据库配置 可以传数据库名字符串
383
384
  """
384
- import kcwsqlite
385
+
385
386
  dbs=kcwsqlite.sqlite #kcwssqlite.sqlite()
386
387
  if table is None:
387
388
  return dbs
@@ -431,7 +432,7 @@ def set_cache(name,values,expire="no"):
431
432
 
432
433
  return Boolean类型
433
434
  """
434
- return kcwcache.cache.set_cache(name,values,expire)
435
+ return kcwcache.cache.set_config(config=config.cache).set_cache(name,values,expire)
435
436
  def get_cache(name):
436
437
  """获取缓存
437
438
 
@@ -439,7 +440,7 @@ def get_cache(name):
439
440
 
440
441
  return 或者的值
441
442
  """
442
- return kcwcache.cache.get_cache(name)
443
+ return kcwcache.cache.set_config(config=config.cache).get_cache(name)
443
444
  def del_cache(name):
444
445
  """删除缓存
445
446
 
@@ -447,7 +448,7 @@ def del_cache(name):
447
448
 
448
449
  return Boolean类型
449
450
  """
450
- return kcwcache.cache.del_cache(name)
451
+ return kcwcache.cache.set_config(config=config.cache).del_cache(name)
451
452
  def dateoperator(date,years=0,formats='%Y%m%d%H%M%S',months=0, days=0, hours=0, minutes=0,seconds=0,
452
453
  leapdays=0, weeks=0, microseconds=0,
453
454
  year=None, month=None, day=None, weekday=None,
@@ -8,6 +8,7 @@ redis['password']='' #密码
8
8
  redis['db']=0 #Redis数据库 注:Redis用0或1或2等表示
9
9
  redis['pattern']=True # True连接池链接 False非连接池链接
10
10
  redis['ex']=0 #过期时间 (秒)
11
+ redis['debug']=False
11
12
 
12
13
  #缓存配置
13
14
  cache={}
@@ -18,6 +19,7 @@ cache['host']=redis['host'] #Redis服务器地址
18
19
  cache['port']=redis['port'] #Redis 端口
19
20
  cache['password']=redis['password'] #Redis登录密码
20
21
  cache['db']=1 #Redis数据库 注:Redis用1或2或3等表示
22
+ cache['debug']=False
21
23
  cachevalue={}
22
24
 
23
25
  # session配置
@@ -54,6 +56,7 @@ database['autocommit']=False #自动提交查询事务 命令行运行时开启
54
56
  #sqlite配置
55
57
  sqlite={}
56
58
  sqlite['db']='kcwsdb' # 数据库文件存放地址
59
+ sqlite['debug']=False
57
60
 
58
61
  #mongodb配置
59
62
  mongo={}
@@ -1,6 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  from kcwebs import config
3
- # from kcwebs import common
4
3
  import kcwsqlite
5
4
  class model:
6
5
  table=None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: kcwebs
3
- Version: 1.92
3
+ Version: 3.3
4
4
  Summary: kcwebs作为web开发而设计的高性能框架
5
5
  Home-page: https://docs.kwebapp.cn/index/index/2
6
6
  Author: 百里-坤坤
@@ -9,5 +9,5 @@ Maintainer: 坤坤
9
9
  Maintainer-email: fk1402936534@qq.com
10
10
  License: MIT License
11
11
  Description: kcwebs作为web开发而设计的高性能框架,采用全新的架构思想,注重易用性。遵循MIT开源许可协议发布,意味着个人和企业可以免费使用kcwebs,甚至允许把你基于kcwebs开发的应用开源或商业产品发布或销售。完整文档请访问:https://docs.kwebapp.cn/index/index/2
12
- Keywords: kcwebs1.92
12
+ Keywords: kcwebs3.3
13
13
  Platform: UNKNOWN
@@ -1,7 +1,7 @@
1
- kcws>=1.96
2
- kcwmysql>=1.5
3
- kcwsqlite>=1.2
4
- kcwhttp>=1.3
1
+ kcws>=3.3
2
+ kcwmysql>=3.3
3
+ kcwsqlite>=3.3
4
+ kcwhttp>=3.3
5
5
  python-dateutil==2.9.0
6
6
  pymongo==3.10.0
7
7
  Mako==1.3.6
@@ -6,9 +6,7 @@
6
6
  # 安装 python setup.py install
7
7
  ############################################# pip3.8 install kcwebs==6.4.15 -i https://pypi.org/simple
8
8
  import os,sys
9
- from setuptools import setup, find_packages,Extension
10
- current_dir = os.path.abspath(os.path.dirname(__file__))
11
- sys.path.insert(0, current_dir)
9
+ from setuptools import setup
12
10
  from kcwebs import kcwebsinfo
13
11
  confkcws={}
14
12
  confkcws['name']=kcwebsinfo['name'] #项目的名称
@@ -50,7 +48,7 @@ def start():
50
48
  packages = b,
51
49
 
52
50
 
53
- install_requires = ['kcws>=1.96','kcwmysql>=1.5','kcwsqlite>=1.2','kcwhttp>=1.3','python-dateutil==2.9.0',
51
+ install_requires = ['kcws>='+kcwebsinfo['version'],'kcwmysql>='+kcwebsinfo['version'],'kcwsqlite>='+kcwebsinfo['version'],'kcwhttp>='+kcwebsinfo['version'],'python-dateutil==2.9.0',
54
52
  'pymongo==3.10.0','Mako==1.3.6','six>=1.12.0',
55
53
  # 'websockets==10.4',
56
54
  'curl_cffi==0.9.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