gomyck-tools 1.1.9__tar.gz → 1.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.
Files changed (63) hide show
  1. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/PKG-INFO +9 -9
  2. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/bottle_webserver.py +2 -1
  3. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/bottle_websocket.py +3 -2
  4. gomyck-tools-1.1.9/ctools/id_worker_tools.py → gomyck-tools-1.2.0/ctools/snow_id.py +2 -6
  5. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/string_tools.py +2 -16
  6. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/gomyck_tools.egg-info/PKG-INFO +9 -9
  7. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/gomyck_tools.egg-info/SOURCES.txt +1 -1
  8. gomyck-tools-1.2.0/gomyck_tools.egg-info/requires.txt +16 -0
  9. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/setup.py +1 -1
  10. gomyck-tools-1.1.9/gomyck_tools.egg-info/requires.txt +0 -16
  11. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/README.md +0 -0
  12. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/__init__.py +0 -0
  13. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/aes_tools.py +0 -0
  14. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/api_result.py +0 -0
  15. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/application.py +0 -0
  16. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/b64.py +0 -0
  17. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/bashPath.py +0 -0
  18. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/bottle_web_base.py +0 -0
  19. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/browser_element_tools.py +0 -0
  20. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/call.py +0 -0
  21. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/cjson.py +0 -0
  22. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/ckafka.py +0 -0
  23. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/compile_tools.py +0 -0
  24. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/console.py +0 -0
  25. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/cron_lite.py +0 -0
  26. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/database.py +0 -0
  27. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/date_utils.py +0 -0
  28. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/dict_wrapper.py +0 -0
  29. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/douglas_rarefy.py +0 -0
  30. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/download_tools.py +0 -0
  31. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/enums.py +0 -0
  32. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/ex.py +0 -0
  33. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/excelOpt.py +0 -0
  34. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/html_soup.py +0 -0
  35. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/http_utils.py +0 -0
  36. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/images_tools.py +0 -0
  37. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/imgDialog.py +0 -0
  38. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/license.py +0 -0
  39. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/metrics.py +0 -0
  40. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/mqtt_utils.py +0 -0
  41. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/obj.py +0 -0
  42. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/pacth.py +0 -0
  43. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/plan_area_tools.py +0 -0
  44. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/process_pool.py +0 -0
  45. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/pty_tools.py +0 -0
  46. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/resource_bundle_tools.py +0 -0
  47. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/screenshot_tools.py +0 -0
  48. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/sign.py +0 -0
  49. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/sm_tools.py +0 -0
  50. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/strDiff.py +0 -0
  51. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/sys_info.py +0 -0
  52. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/sys_log.py +0 -0
  53. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/thread_pool.py +0 -0
  54. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/upload_tools.py +0 -0
  55. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/win_canvas.py +0 -0
  56. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/win_control.py +0 -0
  57. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/wordFill.py +0 -0
  58. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/word_fill.py +0 -0
  59. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/word_fill_entity.py +0 -0
  60. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/ctools/work_path.py +0 -0
  61. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/gomyck_tools.egg-info/dependency_links.txt +0 -0
  62. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/gomyck_tools.egg-info/top_level.txt +0 -0
  63. {gomyck-tools-1.1.9 → gomyck-tools-1.2.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gomyck-tools
3
- Version: 1.1.9
3
+ Version: 1.2.0
4
4
  Summary: A ctools for python development by hao474798383
5
5
  Home-page: https://blog.gomyck.com
6
6
  Author: gomyck
@@ -10,17 +10,17 @@ Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.8
12
12
  Description-Content-Type: text/markdown
13
- Requires-Dist: jsonpickle==3.3.0
14
- Requires-Dist: SQLAlchemy>=2.0.32
13
+ Requires-Dist: jsonpickle==3.4.2
14
+ Requires-Dist: SQLAlchemy>=2.0.36
15
15
  Requires-Dist: chardet>=5.2.0
16
- Requires-Dist: psycopg2-binary>=2.9.9
17
- Requires-Dist: croniter>=3.0.3
16
+ Requires-Dist: psycopg2-binary>=2.9.10
17
+ Requires-Dist: croniter>=5.0.1
18
18
  Requires-Dist: gmssl>=3.2.2
19
- Requires-Dist: psutil>=6.0.0
20
- Requires-Dist: jsonpath_ng>=1.6.1
21
- Requires-Dist: bottle==0.13.1
19
+ Requires-Dist: psutil>=6.1.0
20
+ Requires-Dist: jsonpath_ng>=1.7.0
21
+ Requires-Dist: bottle==0.13.2
22
22
  Requires-Dist: requests==2.32.3
23
- Requires-Dist: urllib3==1.26.18
23
+ Requires-Dist: urllib3==1.26.20
24
24
  Requires-Dist: kafka-python==2.0.2
25
25
  Requires-Dist: bs4==0.0.2
26
26
  Requires-Dist: paho-mqtt==2.1.0
@@ -9,6 +9,7 @@ app = bottle_web_base.init_app('子模块写 context_path, 主模块就不用写
9
9
  @app.get('/queryList')
10
10
  @bottle_web_base.rule('DOC:DOWNLOAD')
11
11
  def query_list(params):
12
+ print(123)
12
13
  """
13
14
 
14
15
  """
@@ -27,7 +28,7 @@ def get_ws_modules():
27
28
  """
28
29
 
29
30
  """
30
- http_app = bottle_webserver.init_bottle()
31
+ http_app = bottle_webserver.init_bottle() # 这里可以传 APP 当做主模块
31
32
  http_app.mount(app.context_path, app)
32
33
  http_app.set_index(r'轨迹点位压缩.html')
33
34
  http_app.run()
@@ -4,11 +4,12 @@ from geventwebsocket.handler import WebSocketHandler
4
4
  from ctools import sys_log
5
5
 
6
6
  """
7
- app = init_app('/websocket_demo')
7
+ app = bottle_web_base.init_app('/websocket_demo')
8
8
 
9
9
  @app.route('/script_debug', apply=[websocket])
10
- @rule('DOC:DOWNLOAD')
10
+ @bottle_web_base.rule('DOC:DOWNLOAD')
11
11
  def script_debug(ws: WebSocket):
12
+ print(123)
12
13
  """
13
14
 
14
15
  """
@@ -16,11 +16,11 @@ SEQUENCE_MASK = -1 ^ (-1 << SEQUENCE_BITS)
16
16
  # Twitter元年时间戳
17
17
  TWEPOCH = 1288834974657
18
18
 
19
- class IdWorker(object):
19
+ class SnowId(object):
20
20
  """
21
21
  用于生成IDs
22
22
  """
23
- def __init__(self, datacenter_id, worker_id, sequence=0):
23
+ def __init__(self, datacenter_id=0, worker_id=0, sequence=0):
24
24
  """
25
25
  初始化
26
26
  :param datacenter_id: 数据中心(机器区域)ID
@@ -74,7 +74,3 @@ class IdWorker(object):
74
74
  while timestamp <= last_timestamp:
75
75
  timestamp = self._gen_timestamp()
76
76
  return timestamp
77
-
78
- # if __name__ == '__main__':
79
- # worker = IdWorker(1, 2, 0)
80
- # print(worker.get_id())
@@ -5,27 +5,19 @@ from typing import Union
5
5
 
6
6
  import chardet
7
7
 
8
- from ctools.id_worker_tools import IdWorker
8
+ from ctools.snow_id import SnowId
9
9
 
10
- idWorker = IdWorker(1, 2, 0)
10
+ idWorker = SnowId(1, 2, 0)
11
11
 
12
12
  def get_random_str(size: int = 10):
13
- """
14
- 根据长度获取随机字符串
15
- :param size:
16
- :return:
17
- """
18
13
  return "".join(random.sample('abcdefghijklmnopqrstuvwxyz0123456789', size))
19
14
 
20
-
21
15
  def get_uuid():
22
16
  return str(uuid.uuid1()).replace("-", "")
23
17
 
24
-
25
18
  def get_snowflake_id():
26
19
  return idWorker.get_id()
27
20
 
28
-
29
21
  def decode_bytes(bytes_str: Union[bytes, bytearray]):
30
22
  res_str = ""
31
23
  if bytes_str:
@@ -80,12 +72,6 @@ def is_bool(v: str):
80
72
  else:
81
73
  return False
82
74
 
83
- def is_obj(k: str):
84
- if k in ['operate', 'pm_browser_sm_options', 'pw_context_sm_service']:
85
- return True
86
- else:
87
- return False
88
-
89
75
  def dict_to_params(obj: dict):
90
76
  params = ""
91
77
  for k, v in obj.items():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gomyck-tools
3
- Version: 1.1.9
3
+ Version: 1.2.0
4
4
  Summary: A ctools for python development by hao474798383
5
5
  Home-page: https://blog.gomyck.com
6
6
  Author: gomyck
@@ -10,17 +10,17 @@ Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.8
12
12
  Description-Content-Type: text/markdown
13
- Requires-Dist: jsonpickle==3.3.0
14
- Requires-Dist: SQLAlchemy>=2.0.32
13
+ Requires-Dist: jsonpickle==3.4.2
14
+ Requires-Dist: SQLAlchemy>=2.0.36
15
15
  Requires-Dist: chardet>=5.2.0
16
- Requires-Dist: psycopg2-binary>=2.9.9
17
- Requires-Dist: croniter>=3.0.3
16
+ Requires-Dist: psycopg2-binary>=2.9.10
17
+ Requires-Dist: croniter>=5.0.1
18
18
  Requires-Dist: gmssl>=3.2.2
19
- Requires-Dist: psutil>=6.0.0
20
- Requires-Dist: jsonpath_ng>=1.6.1
21
- Requires-Dist: bottle==0.13.1
19
+ Requires-Dist: psutil>=6.1.0
20
+ Requires-Dist: jsonpath_ng>=1.7.0
21
+ Requires-Dist: bottle==0.13.2
22
22
  Requires-Dist: requests==2.32.3
23
- Requires-Dist: urllib3==1.26.18
23
+ Requires-Dist: urllib3==1.26.20
24
24
  Requires-Dist: kafka-python==2.0.2
25
25
  Requires-Dist: bs4==0.0.2
26
26
  Requires-Dist: paho-mqtt==2.1.0
@@ -26,7 +26,6 @@ ctools/ex.py
26
26
  ctools/excelOpt.py
27
27
  ctools/html_soup.py
28
28
  ctools/http_utils.py
29
- ctools/id_worker_tools.py
30
29
  ctools/images_tools.py
31
30
  ctools/imgDialog.py
32
31
  ctools/license.py
@@ -41,6 +40,7 @@ ctools/resource_bundle_tools.py
41
40
  ctools/screenshot_tools.py
42
41
  ctools/sign.py
43
42
  ctools/sm_tools.py
43
+ ctools/snow_id.py
44
44
  ctools/strDiff.py
45
45
  ctools/string_tools.py
46
46
  ctools/sys_info.py
@@ -0,0 +1,16 @@
1
+ jsonpickle==3.4.2
2
+ SQLAlchemy>=2.0.36
3
+ chardet>=5.2.0
4
+ psycopg2-binary>=2.9.10
5
+ croniter>=5.0.1
6
+ gmssl>=3.2.2
7
+ psutil>=6.1.0
8
+ jsonpath_ng>=1.7.0
9
+ bottle==0.13.2
10
+ requests==2.32.3
11
+ urllib3==1.26.20
12
+ kafka-python==2.0.2
13
+ bs4==0.0.2
14
+ paho-mqtt==2.1.0
15
+ fuzzywuzzy==0.18.0
16
+ pymysql==1.1.1
@@ -11,7 +11,7 @@ requirements = parse_requirements(os.path.join(os.path.dirname(__file__), 'requi
11
11
 
12
12
  setup(
13
13
  name="gomyck-tools",
14
- version="1.1.9",
14
+ version="1.2.0",
15
15
  author="gomyck",
16
16
  author_email="hao474798383@163.com",
17
17
  description="A ctools for python development by hao474798383",
@@ -1,16 +0,0 @@
1
- jsonpickle==3.3.0
2
- SQLAlchemy>=2.0.32
3
- chardet>=5.2.0
4
- psycopg2-binary>=2.9.9
5
- croniter>=3.0.3
6
- gmssl>=3.2.2
7
- psutil>=6.0.0
8
- jsonpath_ng>=1.6.1
9
- bottle==0.13.1
10
- requests==2.32.3
11
- urllib3==1.26.18
12
- kafka-python==2.0.2
13
- bs4==0.0.2
14
- paho-mqtt==2.1.0
15
- fuzzywuzzy==0.18.0
16
- pymysql==1.1.1
File without changes
File without changes
File without changes
File without changes
File without changes