toolkits 0.2.2__tar.gz → 0.2.4__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.
- {toolkits-0.2.2 → toolkits-0.2.4}/PKG-INFO +2 -1
- {toolkits-0.2.2 → toolkits-0.2.4}/setup.py +1 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/__init__.py +1 -1
- toolkits-0.2.2/toolkits/system/listHelper.py → toolkits-0.2.4/toolkits/basic/list_helper.py +3 -8
- toolkits-0.2.2/toolkits/databases/sqlHelper.py → toolkits-0.2.4/toolkits/databases/sql_helper.py +2 -1
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/process_monitor/process_monitor.py +6 -6
- toolkits-0.2.2/toolkits/system/shellHelper.py → toolkits-0.2.4/toolkits/system/shell_helper.py +10 -9
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits.egg-info/PKG-INFO +2 -1
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits.egg-info/SOURCES.txt +19 -21
- toolkits-0.2.2/toolkits/basic_datastruct/list_helper.py +0 -15
- toolkits-0.2.2/toolkits/system/filesHelper.py +0 -8
- {toolkits-0.2.2 → toolkits-0.2.4}/MANIFEST.in +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/README.rst +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/setup.cfg +0 -0
- {toolkits-0.2.2/toolkits/basic_datastruct → toolkits-0.2.4/toolkits/basic}/__init__.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/databases/__init__.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/databases/database_client_util.py +0 -0
- /toolkits-0.2.2/toolkits/databases/esClient.py → /toolkits-0.2.4/toolkits/databases/es_client.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/databases/hive_client.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/databases/hive_cmd.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/databases/hive_helper.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/databases/redis_mgmt.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/databases/sqlalchemy_helper.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/databases/status_check.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/network/__init__.py +0 -0
- /toolkits-0.2.2/toolkits/network/ipHelper.py → /toolkits-0.2.4/toolkits/network/ip_helper.py +0 -0
- /toolkits-0.2.2/toolkits/network/pdiHelper.py → /toolkits-0.2.4/toolkits/network/pdi_helper.py +0 -0
- /toolkits-0.2.2/toolkits/network/sendMail.py → /toolkits-0.2.4/toolkits/network/send_mail.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/__init__.py +0 -0
- /toolkits-0.2.2/toolkits/system/AESCipher.py → /toolkits-0.2.4/toolkits/system/aes_cipher.py +0 -0
- /toolkits-0.2.2/toolkits/system/basicUtils.py → /toolkits-0.2.4/toolkits/system/basic_utils.py +0 -0
- /toolkits-0.2.2/toolkits/system/CollectionsHelper.py → /toolkits-0.2.4/toolkits/system/collections_helper.py +0 -0
- /toolkits-0.2.2/toolkits/system/crpytHelper.py → /toolkits-0.2.4/toolkits/system/crpyt_helper.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/dict2xml.py +0 -0
- /toolkits-0.2.2/toolkits/system/dictHelper.py → /toolkits-0.2.4/toolkits/system/dict_helper.py +0 -0
- /toolkits-0.2.2/toolkits/system/excelHelper.py → /toolkits-0.2.4/toolkits/system/excel_helper.py +0 -0
- /toolkits-0.2.2/toolkits/system/fileHelper.py → /toolkits-0.2.4/toolkits/system/file_helper.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/load_module.py +0 -0
- /toolkits-0.2.2/toolkits/system/priorityTasks.py → /toolkits-0.2.4/toolkits/system/priority_tasks.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/process_monitor/__init__.py +0 -0
- /toolkits-0.2.2/toolkits/system/strHelper.py → /toolkits-0.2.4/toolkits/system/str_helper.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/tasks_deamon/__init__.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/tasks_deamon/tasks_controller.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/tasks_deamon/tasks_multiprocessing.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits/system/tasks_deamon/tasks_process.py +0 -0
- /toolkits-0.2.2/toolkits/system/timeHelper.py → /toolkits-0.2.4/toolkits/system/time_helper.py +0 -0
- /toolkits-0.2.2/toolkits/system/Win32Env.py → /toolkits-0.2.4/toolkits/system/win32_env.py +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits.egg-info/dependency_links.txt +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits.egg-info/not-zip-safe +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits.egg-info/requires.txt +0 -0
- {toolkits-0.2.2 → toolkits-0.2.4}/toolkits.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: toolkits
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.4
|
4
4
|
Summary: toolkits for quickly reference
|
5
5
|
Home-page: https://github.com/starwithmoon/toolkits
|
6
6
|
Author: li_jia_yue
|
@@ -15,6 +15,7 @@ Classifier: Natural Language :: English
|
|
15
15
|
Classifier: Programming Language :: Python :: 2
|
16
16
|
Classifier: Programming Language :: Python :: 2.6
|
17
17
|
Classifier: Programming Language :: Python :: 2.7
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
18
19
|
|
19
20
|
# toolkits
|
20
21
|
toolkits for quickly reference
|
@@ -1,2 +1,2 @@
|
|
1
1
|
__author__ = 'li_jia_yue'
|
2
|
-
__version__ = "0.2.
|
2
|
+
__version__ = "0.2.4"
|
@@ -1,15 +1,10 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
-
import
|
3
|
-
import os
|
4
|
-
import pprint
|
5
|
-
import re
|
2
|
+
import importlib
|
6
3
|
import sys
|
7
|
-
import uuid
|
8
4
|
from log4python.Log4python import log
|
9
|
-
|
5
|
+
|
10
6
|
importlib.reload(sys)
|
11
|
-
logger = log("
|
12
|
-
import esm
|
7
|
+
logger = log("ListHelper")
|
13
8
|
|
14
9
|
|
15
10
|
class ListHelper:
|
toolkits-0.2.2/toolkits/databases/sqlHelper.py → toolkits-0.2.4/toolkits/databases/sql_helper.py
RENAMED
@@ -10,7 +10,7 @@ from sqlparse.sql import Where, Comparison, Parenthesis, Identifier, Token, Func
|
|
10
10
|
import traceback
|
11
11
|
|
12
12
|
from sqlparse.tokens import DML
|
13
|
-
import importlib
|
13
|
+
import importlib
|
14
14
|
|
15
15
|
importlib.reload(sys)
|
16
16
|
logger = log("SqlHelper")
|
@@ -279,6 +279,7 @@ class SqlWhere:
|
|
279
279
|
|
280
280
|
return where_tokens_list
|
281
281
|
|
282
|
+
|
282
283
|
if __name__ == '__main__':
|
283
284
|
try:
|
284
285
|
xx = "select * from test01 where id=1 or (id=2 and id=4)"
|
@@ -1,16 +1,16 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
import importlib
|
2
3
|
import json
|
3
4
|
import os
|
4
5
|
import sys
|
6
|
+
|
5
7
|
import fire
|
6
8
|
from log4python.Log4python import log
|
7
|
-
import
|
9
|
+
from unipath import Path
|
8
10
|
|
9
11
|
from toolkits.databases.database_client_util import DatabaseClientUtil
|
10
|
-
from toolkits.system.
|
11
|
-
from toolkits.system.
|
12
|
-
from unipath import Path
|
13
|
-
import importlib
|
12
|
+
from toolkits.system.priority_tasks import PriorityTasks
|
13
|
+
from toolkits.system.shell_helper import exec_shell
|
14
14
|
|
15
15
|
importlib.reload(sys)
|
16
16
|
logger = log("ProcessMonitor")
|
@@ -202,7 +202,7 @@ task_monitor_config =
|
|
202
202
|
def start_daemon_server(self):
|
203
203
|
"""
|
204
204
|
CMD:
|
205
|
-
circusd --daemon --pidfile /home/
|
205
|
+
circusd --daemon --pidfile /home/vagrant/dev/circus/circus.pid --log-level debug --log-output /home/vagrant/dev/circus/circus.log /home/vagrant/dev/circus/circus.conf
|
206
206
|
:return:
|
207
207
|
"""
|
208
208
|
self.switch_tasks_queue_on()
|
toolkits-0.2.2/toolkits/system/shellHelper.py → toolkits-0.2.4/toolkits/system/shell_helper.py
RENAMED
@@ -1,22 +1,23 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
import _thread
|
2
3
|
import argparse
|
4
|
+
import importlib
|
3
5
|
import os
|
4
6
|
import pprint
|
5
|
-
import
|
7
|
+
import subprocess
|
6
8
|
import sys
|
7
9
|
import tempfile
|
10
|
+
import time
|
8
11
|
import traceback
|
9
|
-
import subprocess
|
10
12
|
import uuid
|
11
|
-
import
|
12
|
-
import _thread
|
13
|
+
from multiprocessing import Process
|
13
14
|
from threading import Timer
|
14
|
-
|
15
|
+
|
16
|
+
import arrow
|
15
17
|
from log4python.Log4python import log
|
16
|
-
from multiprocessing import Process, current_process
|
17
18
|
from unipath import Path
|
18
|
-
|
19
|
-
import
|
19
|
+
|
20
|
+
from file_helper import read_content
|
20
21
|
|
21
22
|
importlib.reload(sys)
|
22
23
|
logger = log("shellHelper")
|
@@ -223,7 +224,7 @@ if __name__ == '__main__':
|
|
223
224
|
parser.add_argument("logFile", type=str, help="specify the log file's path")
|
224
225
|
args = parser.parse_args()
|
225
226
|
print((args.logFile))
|
226
|
-
exec_shell()
|
227
|
+
# exec_shell()
|
227
228
|
except Exception as ex:
|
228
229
|
logger.debug("Error: %s" % ex)
|
229
230
|
logger.debug(traceback.format_exc())
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: toolkits
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.4
|
4
4
|
Summary: toolkits for quickly reference
|
5
5
|
Home-page: https://github.com/starwithmoon/toolkits
|
6
6
|
Author: li_jia_yue
|
@@ -15,6 +15,7 @@ Classifier: Natural Language :: English
|
|
15
15
|
Classifier: Programming Language :: Python :: 2
|
16
16
|
Classifier: Programming Language :: Python :: 2.6
|
17
17
|
Classifier: Programming Language :: Python :: 2.7
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
18
19
|
|
19
20
|
# toolkits
|
20
21
|
toolkits for quickly reference
|
@@ -8,39 +8,37 @@ toolkits.egg-info/dependency_links.txt
|
|
8
8
|
toolkits.egg-info/not-zip-safe
|
9
9
|
toolkits.egg-info/requires.txt
|
10
10
|
toolkits.egg-info/top_level.txt
|
11
|
-
toolkits/
|
12
|
-
toolkits/
|
11
|
+
toolkits/basic/__init__.py
|
12
|
+
toolkits/basic/list_helper.py
|
13
13
|
toolkits/databases/__init__.py
|
14
14
|
toolkits/databases/database_client_util.py
|
15
|
-
toolkits/databases/
|
15
|
+
toolkits/databases/es_client.py
|
16
16
|
toolkits/databases/hive_client.py
|
17
17
|
toolkits/databases/hive_cmd.py
|
18
18
|
toolkits/databases/hive_helper.py
|
19
19
|
toolkits/databases/redis_mgmt.py
|
20
|
-
toolkits/databases/
|
20
|
+
toolkits/databases/sql_helper.py
|
21
21
|
toolkits/databases/sqlalchemy_helper.py
|
22
22
|
toolkits/databases/status_check.py
|
23
23
|
toolkits/network/__init__.py
|
24
|
-
toolkits/network/
|
25
|
-
toolkits/network/
|
26
|
-
toolkits/network/
|
27
|
-
toolkits/system/AESCipher.py
|
28
|
-
toolkits/system/CollectionsHelper.py
|
29
|
-
toolkits/system/Win32Env.py
|
24
|
+
toolkits/network/ip_helper.py
|
25
|
+
toolkits/network/pdi_helper.py
|
26
|
+
toolkits/network/send_mail.py
|
30
27
|
toolkits/system/__init__.py
|
31
|
-
toolkits/system/
|
32
|
-
toolkits/system/
|
28
|
+
toolkits/system/aes_cipher.py
|
29
|
+
toolkits/system/basic_utils.py
|
30
|
+
toolkits/system/collections_helper.py
|
31
|
+
toolkits/system/crpyt_helper.py
|
33
32
|
toolkits/system/dict2xml.py
|
34
|
-
toolkits/system/
|
35
|
-
toolkits/system/
|
36
|
-
toolkits/system/
|
37
|
-
toolkits/system/filesHelper.py
|
38
|
-
toolkits/system/listHelper.py
|
33
|
+
toolkits/system/dict_helper.py
|
34
|
+
toolkits/system/excel_helper.py
|
35
|
+
toolkits/system/file_helper.py
|
39
36
|
toolkits/system/load_module.py
|
40
|
-
toolkits/system/
|
41
|
-
toolkits/system/
|
42
|
-
toolkits/system/
|
43
|
-
toolkits/system/
|
37
|
+
toolkits/system/priority_tasks.py
|
38
|
+
toolkits/system/shell_helper.py
|
39
|
+
toolkits/system/str_helper.py
|
40
|
+
toolkits/system/time_helper.py
|
41
|
+
toolkits/system/win32_env.py
|
44
42
|
toolkits/system/process_monitor/__init__.py
|
45
43
|
toolkits/system/process_monitor/process_monitor.py
|
46
44
|
toolkits/system/tasks_deamon/__init__.py
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
|
-
|
4
|
-
def list_split_by_length(data_list, length_interval):
|
5
|
-
list_final = []
|
6
|
-
data_len = len(data_list)
|
7
|
-
times = data_len / length_interval
|
8
|
-
for index in range(0, times+1):
|
9
|
-
begin = index * length_interval
|
10
|
-
end = begin + length_interval
|
11
|
-
if end > data_len:
|
12
|
-
end = data_len
|
13
|
-
if len(data_list[begin:end]) > 0:
|
14
|
-
list_final.append(data_list[begin:end])
|
15
|
-
return list_final
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/toolkits-0.2.2/toolkits/databases/esClient.py → /toolkits-0.2.4/toolkits/databases/es_client.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
|
/toolkits-0.2.2/toolkits/network/ipHelper.py → /toolkits-0.2.4/toolkits/network/ip_helper.py
RENAMED
File without changes
|
/toolkits-0.2.2/toolkits/network/pdiHelper.py → /toolkits-0.2.4/toolkits/network/pdi_helper.py
RENAMED
File without changes
|
/toolkits-0.2.2/toolkits/network/sendMail.py → /toolkits-0.2.4/toolkits/network/send_mail.py
RENAMED
File without changes
|
File without changes
|
/toolkits-0.2.2/toolkits/system/AESCipher.py → /toolkits-0.2.4/toolkits/system/aes_cipher.py
RENAMED
File without changes
|
/toolkits-0.2.2/toolkits/system/basicUtils.py → /toolkits-0.2.4/toolkits/system/basic_utils.py
RENAMED
File without changes
|
File without changes
|
/toolkits-0.2.2/toolkits/system/crpytHelper.py → /toolkits-0.2.4/toolkits/system/crpyt_helper.py
RENAMED
File without changes
|
File without changes
|
/toolkits-0.2.2/toolkits/system/dictHelper.py → /toolkits-0.2.4/toolkits/system/dict_helper.py
RENAMED
File without changes
|
/toolkits-0.2.2/toolkits/system/excelHelper.py → /toolkits-0.2.4/toolkits/system/excel_helper.py
RENAMED
File without changes
|
/toolkits-0.2.2/toolkits/system/fileHelper.py → /toolkits-0.2.4/toolkits/system/file_helper.py
RENAMED
File without changes
|
File without changes
|
/toolkits-0.2.2/toolkits/system/priorityTasks.py → /toolkits-0.2.4/toolkits/system/priority_tasks.py
RENAMED
File without changes
|
File without changes
|
/toolkits-0.2.2/toolkits/system/strHelper.py → /toolkits-0.2.4/toolkits/system/str_helper.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/toolkits-0.2.2/toolkits/system/timeHelper.py → /toolkits-0.2.4/toolkits/system/time_helper.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|