xlin 0.1.5__py3-none-any.whl → 0.1.6__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.
xlin/multiprocess_mapping.py
CHANGED
@@ -23,6 +23,7 @@ def element_mapping(
|
|
23
23
|
if use_multiprocessing:
|
24
24
|
pool = ThreadPool(thread_pool_size)
|
25
25
|
results = pool.map(mapping_func, iterator)
|
26
|
+
pool.close()
|
26
27
|
for ok, row in results:
|
27
28
|
if ok:
|
28
29
|
rows.append(row)
|
@@ -116,6 +117,7 @@ def multiprocessing_mapping_jsonlist(
|
|
116
117
|
if len(tmp_list) > 0:
|
117
118
|
results = pool.map(partial_func, tmp_list)
|
118
119
|
output_list.extend([x for x in results])
|
120
|
+
pool.close()
|
119
121
|
if need_caching:
|
120
122
|
save_json_list(output_list, output_path)
|
121
123
|
return output_list
|
@@ -176,6 +178,7 @@ def multiprocessing_mapping(
|
|
176
178
|
if len(tmp_list) > 0:
|
177
179
|
results = pool.map(partial_func, tmp_list)
|
178
180
|
output_list.extend([x for x in results])
|
181
|
+
pool.close()
|
179
182
|
output_df = pd.DataFrame(output_list)
|
180
183
|
if need_caching:
|
181
184
|
output_df.to_excel(output_path, index=False)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
xlin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
xlin/ischinese.py,sha256=Ia9IMQ6q-UHkdLwqS70L1fTnfSPbluFrv_I1UqsKquo,293
|
3
3
|
xlin/jsonl.py,sha256=oE8w8IFVEnBQdWUCMGYF9BlE3wtEhFsmjaLpZPKwSXg,6605
|
4
|
-
xlin/multiprocess_mapping.py,sha256=
|
4
|
+
xlin/multiprocess_mapping.py,sha256=pmzyEUYpbpIZ_ezyvWWWRpr7D7n4t3E3jW1nGXBbVck,7652
|
5
5
|
xlin/read_as_dataframe.py,sha256=ir3HUT6dt3crqa3xnlcNn8j3wqjSIGJgiIVLP3KkBaQ,8678
|
6
6
|
xlin/statistic.py,sha256=BLj8hszlbBT5xDIfd70_YtOb8QgZEvYXiFJDGXBwCfw,881
|
7
7
|
xlin/terminal_color.py,sha256=nfE-CY2BzjY2eZbm9yk8r-AuyJ-hchmLXhASCb4HAIA,191
|
@@ -9,7 +9,7 @@ xlin/util.py,sha256=SOQUh506GQlljJYLYuI6nScSTOrgRQnMq2xfxSvKIlI,11303
|
|
9
9
|
xlin/uuid.py,sha256=gouvm7_DL22sIhXl-g4e6S2qzIZtmE3SEp00xy1upyg,271
|
10
10
|
xlin/xls2xlsx.py,sha256=5zfcM0gmunFQOcOj9nYd9Dj0HMhU7-cPKnPIy6Ot9iU,930
|
11
11
|
xlin/yaml.py,sha256=kICi7G3Td5q2MaSXXt85qNTWoHMgjzt7pvn7r3C4dME,183
|
12
|
-
xlin-0.1.
|
13
|
-
xlin-0.1.
|
14
|
-
xlin-0.1.
|
15
|
-
xlin-0.1.
|
12
|
+
xlin-0.1.6.dist-info/LICENSE,sha256=KX0dDCYlO4DskqMZY8qeY94EZMrDRNnNqlGLkXVlKyM,1063
|
13
|
+
xlin-0.1.6.dist-info/METADATA,sha256=ZD5Yq1R5euSmgFaB04TWZr8C8fJWTANr8icU_rgVNT4,772
|
14
|
+
xlin-0.1.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
15
|
+
xlin-0.1.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|