notify-tls-client 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.
@@ -1,20 +1,37 @@
1
+ import sys
1
2
  from sys import platform
2
3
  from platform import machine
3
4
  import ctypes
4
5
  import os
5
6
 
7
+ system = sys.platform
8
+ arch = machine()
9
+
10
+
11
+ if system == "darwin":
12
+ # macOS (arm64 = Apple Silicon, x86_64 = Intel)
13
+ file_ext = "-arm64.dylib" if arch == "arm64" else "-amd64.dylib"
14
+
15
+ elif system in ("win32", "cygwin"):
16
+ # Windows (32 ou 64 bits)
17
+ file_ext = "-amd64.dll" if ctypes.sizeof(ctypes.c_voidp) == 8 else "-386.dll"
6
18
 
7
- if platform == 'darwin':
8
- file_ext = '-arm64.dylib' if machine() == "arm64" else '-x86.dylib'
9
- elif platform in ('win32', 'cygwin'):
10
- file_ext = '-64.dll' if 8 == ctypes.sizeof(ctypes.c_voidp) else '-32.dll'
11
19
  else:
12
- if machine() == "aarch64":
13
- file_ext = '-arm64.so'
14
- elif "x86" in machine():
15
- file_ext = '-x86.so'
20
+ # Linux e outras
21
+ if arch == "aarch64":
22
+ file_ext = "-arm64.so"
23
+ elif arch == "armv7l":
24
+ file_ext = "-arm-7.so"
25
+ elif arch == "armv6l":
26
+ file_ext = "-arm-6.so"
27
+ elif arch == "armv5tel":
28
+ file_ext = "-arm-5.so"
29
+ elif arch in ("i386", "i686"):
30
+ file_ext = "-386.so"
31
+ elif arch == "x86_64":
32
+ file_ext = "-amd64.so"
16
33
  else:
17
- file_ext = '-amd64.so'
34
+ raise RuntimeError(f"Arquitetura desconhecida: {arch}")
18
35
 
19
36
  root_dir = os.path.abspath(os.path.dirname(__file__))
20
37
  lib_dir = os.path.join(root_dir, "dependencies")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: notify_tls_client
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Sem descrição
5
5
  Author: Jeferson Albara
6
6
  Author-email: Naruto Uzumaki <naruto_uzumaki@gmail.com>
@@ -8,7 +8,7 @@ notify_tls_client/core/proxiesmanager/proxiesmanager.py,sha256=5bVO9a6J_72W61t1g
8
8
  notify_tls_client/core/proxiesmanager/proxiesmanagerloader.py,sha256=4KMGGRGLl1_pZMH3kEY4sTnyMQi6J4luB_Vr6ekV1nI,1146
9
9
  notify_tls_client/tls_client/__init__.py,sha256=ORP-QdcnLxOEs42G3yPr6txUxryz7jUOA_AtHMafpf8,655
10
10
  notify_tls_client/tls_client/__version__.py,sha256=EWf5bTOobWzd-Lq4tqaGYEt22CR2D2Hs_sLbZoJNPXk,385
11
- notify_tls_client/tls_client/cffi.py,sha256=znDcM9xosXClYjTCYVO1Ug79Qzti98iCJJFB64XBkeQ,1384
11
+ notify_tls_client/tls_client/cffi.py,sha256=bHZezE-gJCTqplJae-_qZsDm77ymLAeNbP6hNekTWrQ,1805
12
12
  notify_tls_client/tls_client/cookies.py,sha256=5ujSFL6V8bDMCH8Mow6qoj5dP5GjfMJTd8_jWottvpM,15153
13
13
  notify_tls_client/tls_client/exceptions.py,sha256=edxP4P0NVOK-1r0zNRAMt4yh97LArXz8i6SU9oTSYQY,78
14
14
  notify_tls_client/tls_client/response.py,sha256=I0yjEfmrKH89rqRUr7W5hxTkqNpULzs0YXEFCJ91qv8,2377
@@ -19,7 +19,7 @@ notify_tls_client/tls_client/dependencies/__init__.py,sha256=47DEQpj8HBSa-_TImW-
19
19
  notify_tls_client/tls_client/dependencies/tls-client-windows-1.11.0-64.dll,sha256=mEOLbVw06uWPqdh4WLsu4R-U1DjUENHFiM6wyz1nSTY,25889369
20
20
  notify_tls_client/tls_client/dependencies/tls-client-xgo-1.11.0-darwin-arm64.dylib,sha256=MAsdrzWjuvZ-VcMaDph_-obpukI_3GR-6jBuKudOq68,10664722
21
21
  notify_tls_client/tls_client/dependencies/tls-client-xgo-1.11.0-linux-amd64.so,sha256=iLTVk_yA061dZP9GRlF51cD1KKC3_IZc1oMCFd1WPyI,15935104
22
- notify_tls_client-0.1.5.dist-info/METADATA,sha256=cf-1lSj-vdC7C-Fcv7vjSfqqTrIu6YX0yNZ-FM7Q3bE,480
23
- notify_tls_client-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
- notify_tls_client-0.1.5.dist-info/top_level.txt,sha256=fq9YA0cFdpCuUO7cdMFN7oxm1zDfZm_m1KPXehUqA5o,18
25
- notify_tls_client-0.1.5.dist-info/RECORD,,
22
+ notify_tls_client-0.1.6.dist-info/METADATA,sha256=vC67N3ICdu7CDw9qo5Uc565TWEOyiJwPQIW4kaCqb58,480
23
+ notify_tls_client-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ notify_tls_client-0.1.6.dist-info/top_level.txt,sha256=fq9YA0cFdpCuUO7cdMFN7oxm1zDfZm_m1KPXehUqA5o,18
25
+ notify_tls_client-0.1.6.dist-info/RECORD,,