gomyck-tools 1.2.0__py3-none-any.whl → 1.2.1__py3-none-any.whl
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.
- ctools/ckafka.py +3 -3
- gomyck_tools-1.2.1.dist-info/METADATA +31 -0
- {gomyck_tools-1.2.0.dist-info → gomyck_tools-1.2.1.dist-info}/RECORD +5 -5
- gomyck_tools-1.2.0.dist-info/METADATA +0 -30
- {gomyck_tools-1.2.0.dist-info → gomyck_tools-1.2.1.dist-info}/WHEEL +0 -0
- {gomyck_tools-1.2.0.dist-info → gomyck_tools-1.2.1.dist-info}/top_level.txt +0 -0
ctools/ckafka.py
CHANGED
@@ -28,7 +28,7 @@ def send_msg():
|
|
28
28
|
while True:
|
29
29
|
command = input('发送消息: Y/n \n')
|
30
30
|
if command.strip() not in ['N', 'n']:
|
31
|
-
producer.send_msg('jqxx
|
31
|
+
producer.send_msg('jqxx', '{{"jqid": "{}", "xxxx": "{}"}}'.format(string_tools.get_snowflake_id(), datetime.strftime(datetime.now(), '%Y-%m-%d %H:%M:%S')))
|
32
32
|
else:
|
33
33
|
break
|
34
34
|
|
@@ -38,9 +38,9 @@ def consumer_callback(msg):
|
|
38
38
|
print(msg)
|
39
39
|
return True
|
40
40
|
|
41
|
-
consumer.receive_msg('jqxx
|
41
|
+
consumer.receive_msg('jqxx', callBack=consumer_callback)
|
42
42
|
|
43
|
-
time.sleep(
|
43
|
+
while True: time.sleep(1)
|
44
44
|
"""
|
45
45
|
class KafkaInstance:
|
46
46
|
def __init__(self, producer: KafkaProducer, consumer: KafkaConsumer):
|
@@ -0,0 +1,31 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: gomyck-tools
|
3
|
+
Version: 1.2.1
|
4
|
+
Summary: A ctools for python development by hao474798383
|
5
|
+
Home-page: https://blog.gomyck.com
|
6
|
+
Author: gomyck
|
7
|
+
Author-email: hao474798383@163.com
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
10
|
+
Classifier: Operating System :: OS Independent
|
11
|
+
Requires-Python: >=3.8
|
12
|
+
Description-Content-Type: text/markdown
|
13
|
+
Requires-Dist: jsonpickle ~=3.4.2
|
14
|
+
Requires-Dist: SQLAlchemy ~=2.0.36
|
15
|
+
Requires-Dist: chardet ~=5.2.0
|
16
|
+
Requires-Dist: psycopg2-binary ~=2.9.10
|
17
|
+
Requires-Dist: croniter ~=5.0.1
|
18
|
+
Requires-Dist: gmssl ~=3.2.2
|
19
|
+
Requires-Dist: psutil ~=6.1.0
|
20
|
+
Requires-Dist: jsonpath-ng ~=1.7.0
|
21
|
+
Requires-Dist: bottle ~=0.13.2
|
22
|
+
Requires-Dist: requests ~=2.32.3
|
23
|
+
Requires-Dist: urllib3 ~=1.26.20
|
24
|
+
Requires-Dist: kafka-python ~=2.0.2
|
25
|
+
Requires-Dist: bs4 ~=0.0.2
|
26
|
+
Requires-Dist: paho-mqtt ~=2.1.0
|
27
|
+
Requires-Dist: fuzzywuzzy ~=0.18.0
|
28
|
+
Requires-Dist: pymysql ~=1.1.1
|
29
|
+
Requires-Dist: pyzipper ==0.3.6
|
30
|
+
|
31
|
+
this package is for python development
|
@@ -10,7 +10,7 @@ ctools/bottle_websocket.py,sha256=wjsjKVE_tlon0hYfnzBT0Sis6yNPe318vKgTfzWYbfQ,19
|
|
10
10
|
ctools/browser_element_tools.py,sha256=IFR_tWu5on0LxhuC_4yT6EOjwCsC-juIoU8KQRDqR7E,9952
|
11
11
|
ctools/call.py,sha256=BCr8wzt5qd70okv8IZn-9-EpjywleZgvA3u1vfZ_Kt8,1581
|
12
12
|
ctools/cjson.py,sha256=M2XrXnFXTJyKsXP2JRos2Bse4b6WXjr6TrA6y-EF_Ig,1245
|
13
|
-
ctools/ckafka.py,sha256=
|
13
|
+
ctools/ckafka.py,sha256=EiiGCFkSbq8yRjQKVjc2_V114hKb8fJAVIOks_XbQ3w,5944
|
14
14
|
ctools/compile_tools.py,sha256=Nybh3vnkurIKnPnubdYzigjnzFu4GaTMKPvqFdibxmE,510
|
15
15
|
ctools/console.py,sha256=EZumuyynwteKUhUxB_XoulHswDxHd75OQB34RiZ-OBM,1807
|
16
16
|
ctools/cron_lite.py,sha256=f9g7-64GsCxcAW-HUAvT6S-kooScl8zaJyqwHY-X_rE,8308
|
@@ -51,7 +51,7 @@ ctools/wordFill.py,sha256=dB1OLt6GLmWdkDV8H20VWbJmY4ggNNI8iHD1ocae2iM,875
|
|
51
51
|
ctools/word_fill.py,sha256=xeo-P4DOjQUqd-o9XL3g66wQrE2diUPGwFywm8TdVyw,18210
|
52
52
|
ctools/word_fill_entity.py,sha256=eX3G0Gy16hfGpavQSEkCIoKDdTnNgRRJrFvKliETZK8,985
|
53
53
|
ctools/work_path.py,sha256=i4MTUobqNW2WMrT3mwEC_XYQ0_IhFmKoNpTX2W6A8Tc,1680
|
54
|
-
gomyck_tools-1.2.
|
55
|
-
gomyck_tools-1.2.
|
56
|
-
gomyck_tools-1.2.
|
57
|
-
gomyck_tools-1.2.
|
54
|
+
gomyck_tools-1.2.1.dist-info/METADATA,sha256=E8dtyw8qYEen6Dc8ejI45xdC1TS5t85wn8W_hjb7mOA,1004
|
55
|
+
gomyck_tools-1.2.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
56
|
+
gomyck_tools-1.2.1.dist-info/top_level.txt,sha256=-MiIH9FYRVKp1i5_SVRkaI-71WmF1sZSRrNWFU9ls3s,7
|
57
|
+
gomyck_tools-1.2.1.dist-info/RECORD,,
|
@@ -1,30 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: gomyck-tools
|
3
|
-
Version: 1.2.0
|
4
|
-
Summary: A ctools for python development by hao474798383
|
5
|
-
Home-page: https://blog.gomyck.com
|
6
|
-
Author: gomyck
|
7
|
-
Author-email: hao474798383@163.com
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
10
|
-
Classifier: Operating System :: OS Independent
|
11
|
-
Requires-Python: >=3.8
|
12
|
-
Description-Content-Type: text/markdown
|
13
|
-
Requires-Dist: jsonpickle ==3.4.2
|
14
|
-
Requires-Dist: SQLAlchemy >=2.0.36
|
15
|
-
Requires-Dist: chardet >=5.2.0
|
16
|
-
Requires-Dist: psycopg2-binary >=2.9.10
|
17
|
-
Requires-Dist: croniter >=5.0.1
|
18
|
-
Requires-Dist: gmssl >=3.2.2
|
19
|
-
Requires-Dist: psutil >=6.1.0
|
20
|
-
Requires-Dist: jsonpath-ng >=1.7.0
|
21
|
-
Requires-Dist: bottle ==0.13.2
|
22
|
-
Requires-Dist: requests ==2.32.3
|
23
|
-
Requires-Dist: urllib3 ==1.26.20
|
24
|
-
Requires-Dist: kafka-python ==2.0.2
|
25
|
-
Requires-Dist: bs4 ==0.0.2
|
26
|
-
Requires-Dist: paho-mqtt ==2.1.0
|
27
|
-
Requires-Dist: fuzzywuzzy ==0.18.0
|
28
|
-
Requires-Dist: pymysql ==1.1.1
|
29
|
-
|
30
|
-
this package is for python development
|
File without changes
|
File without changes
|