xtn-tools-pro 1.0.0.9.1__py3-none-any.whl → 1.0.0.9.2__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.
@@ -148,5 +148,23 @@ def generate_secret_key(length=32):
148
148
  return secrets.token_hex(length)
149
149
 
150
150
 
151
+ def img_bytes_to_str(img_data: bytes):
152
+ """
153
+ 图片数据 bytes_to_str
154
+ :param img_data:
155
+ :return:
156
+ """
157
+ return img_data.decode('latin1')
158
+
159
+
160
+ def img_str_to_bytes(img_data: str):
161
+ """
162
+ 图片数据 str_to_bytes
163
+ :param img_data:
164
+ :return:
165
+ """
166
+ return img_data.encode('latin1')
167
+
168
+
151
169
  if __name__ == '__main__':
152
170
  print(get_base64_encode(''))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xtn-tools-pro
3
- Version: 1.0.0.9.1
3
+ Version: 1.0.0.9.2
4
4
  Summary: xtn 开发工具
5
5
  Author: xtn
6
6
  Author-email: czw011122@gmail.com
@@ -52,7 +52,7 @@ xtn_tools_pro/task_pro/go_fun.py,sha256=hWEt2uJ9FCvJH7PhVZttS-11A7J6zbRKwX7c5YLY
52
52
  xtn_tools_pro/task_pro/go_fun_v2.py,sha256=SgcXgtEBGSVL1V2LyqO0z8Md2H8JZxucYrLLIwqtiLM,18489
53
53
  xtn_tools_pro/task_pro/go_fun_v3.py,sha256=PdmT59wTJYS3gYS8d3LQX8JvQcREqfZENiy3MARb0UY,17991
54
54
  xtn_tools_pro/utils/__init__.py,sha256=I1_n_NP23F2lBqlF4EOlnOdLYxM8M4pbn63UhJN1hRE,418
55
- xtn_tools_pro/utils/crypto.py,sha256=oyzFqWum_oimUtzhfVCELQhdMjxDbLu-nOWfcNmazcc,4087
55
+ xtn_tools_pro/utils/crypto.py,sha256=YOdWB8yVauVEyT2d5i9M_bXUJVFTq4BQoUy2NLPhmts,4427
56
56
  xtn_tools_pro/utils/file_utils.py,sha256=obaBP7CaBCsXxzqGeWzV2l0yw7vicgKOaXzmpMV8ips,2567
57
57
  xtn_tools_pro/utils/helpers.py,sha256=H-a3gnahIah3kJqyKzzKlPWtVQYcFlJncz2rAfBqIiw,4444
58
58
  xtn_tools_pro/utils/log.py,sha256=mf5huJDA8xVxxFWPG_tl_vOsAA2_ywGDFycYSGHIDCo,10202
@@ -60,9 +60,9 @@ xtn_tools_pro/utils/retry.py,sha256=0wjHsR5DBBKpv4naMfxiky8kprrZes4WURIfFQ4H708,
60
60
  xtn_tools_pro/utils/set_data.py,sha256=IthfAclck7AbaxOIKOgJZ2wdcfEmlvC-C63Tywcr4bA,11180
61
61
  xtn_tools_pro/utils/sql.py,sha256=EAKzbkZP7Q09j15Gm6o0_uq0qgQmcCQT6EAawbpp4v0,6263
62
62
  xtn_tools_pro/utils/time_utils.py,sha256=TUtzG61PeVYXhaQd6pBrXAdlz7tBispNIRQRcGhE2No,4859
63
- xtn_tools_pro-1.0.0.9.1.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
- xtn_tools_pro-1.0.0.9.1.dist-info/METADATA,sha256=Iq-XIpN4T-Y8ahnprGrrCu-Pvp4Eho55piq0XpSHrEw,498
65
- xtn_tools_pro-1.0.0.9.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
66
- xtn_tools_pro-1.0.0.9.1.dist-info/entry_points.txt,sha256=t8CtXWOgw7nRDW3XNlZh8MT_P4l8EzsFnyWi5b3ovrc,68
67
- xtn_tools_pro-1.0.0.9.1.dist-info/top_level.txt,sha256=jyB3FLDEr8zE1U7wHczTgIbvUpALhR-ULF7RVEO7O2U,14
68
- xtn_tools_pro-1.0.0.9.1.dist-info/RECORD,,
63
+ xtn_tools_pro-1.0.0.9.2.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
+ xtn_tools_pro-1.0.0.9.2.dist-info/METADATA,sha256=ZeQIueTLWe64s0SrhHqRVjuzIkRpR6eY19NcjqAnhhE,498
65
+ xtn_tools_pro-1.0.0.9.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
66
+ xtn_tools_pro-1.0.0.9.2.dist-info/entry_points.txt,sha256=t8CtXWOgw7nRDW3XNlZh8MT_P4l8EzsFnyWi5b3ovrc,68
67
+ xtn_tools_pro-1.0.0.9.2.dist-info/top_level.txt,sha256=jyB3FLDEr8zE1U7wHczTgIbvUpALhR-ULF7RVEO7O2U,14
68
+ xtn_tools_pro-1.0.0.9.2.dist-info/RECORD,,