python-tls-client 1.0.2__py3-none-any.whl → 1.0.3__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-tls-client
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Advanced Python HTTP Client with TLS fingerprint spoofing (fork with binary-response fix and certificate pinning)
5
5
  Author: Emanuele Scarlata
6
6
  License-Expression: MIT
@@ -172,6 +172,14 @@ Also I wanted to keep the syntax as similar as possible to [requests](https://gi
172
172
 
173
173
  # Changelog
174
174
 
175
+ ## 1.0.3
176
+ - **Fix**: on Linux, 64-bit x86 machines (`platform.machine() == "x86_64"`) were
177
+ incorrectly matched by the `"x86" in machine()` check in `cffi.py` and loaded
178
+ the 32-bit `tls-client-x86.so` binary instead of the 64-bit
179
+ `tls-client-amd64.so`, causing the native library to fail to load on the vast
180
+ majority of Linux hosts. `machine()` is now matched explicitly against
181
+ `x86_64`/`amd64`/`AMD64` before falling back to the 32-bit binary.
182
+
175
183
  ## 1.0.2
176
184
  - **Fix**: binary response bodies (protobuf, images, ...) were corrupted by a
177
185
  UTF-8 `byteReplacer` (U+FFFD) inside the Go C library. Every byte > 127 that
@@ -1,7 +1,7 @@
1
- python_tls_client-1.0.2.dist-info/licenses/LICENSE,sha256=issbIg7ujiqhtvXsx5mmKhdeZ6zd39ew_nEzvvwImfw,1123
1
+ python_tls_client-1.0.3.dist-info/licenses/LICENSE,sha256=issbIg7ujiqhtvXsx5mmKhdeZ6zd39ew_nEzvvwImfw,1123
2
2
  tls_client/__init__.py,sha256=ORP-QdcnLxOEs42G3yPr6txUxryz7jUOA_AtHMafpf8,655
3
- tls_client/__version__.py,sha256=s_NN5vH9smBr16spQclEogL4BdMY_9QO__dMbufzvSk,445
4
- tls_client/cffi.py,sha256=RPuw_n-18YP__umggHbv4i4XcEa8ge-spGmt40Yf4sQ,995
3
+ tls_client/__version__.py,sha256=44prGvLt4nYxvVWOCD33Ky2Zb-QVa7TxgYWnW86DWvU,445
4
+ tls_client/cffi.py,sha256=p6arENyBf1-x43CPOsKAT0ADhy2CaAFAEXdyLj2duzs,1018
5
5
  tls_client/cookies.py,sha256=5ujSFL6V8bDMCH8Mow6qoj5dP5GjfMJTd8_jWottvpM,15153
6
6
  tls_client/exceptions.py,sha256=edxP4P0NVOK-1r0zNRAMt4yh97LArXz8i6SU9oTSYQY,78
7
7
  tls_client/response.py,sha256=5Ji09s3fnrSst3N5n61fJ7motHNF3Jjsk6WBmsZ6iOk,3126
@@ -16,7 +16,7 @@ tls_client/dependencies/tls-client-arm64.dylib,sha256=9aKdKT0X97KOrXIyi2ilnGDpyi
16
16
  tls_client/dependencies/tls-client-arm64.so,sha256=MCwijkBgGDvxs9KPpSU53zou73NxzXjmUiZMZwUTpFE,11116584
17
17
  tls_client/dependencies/tls-client-x86.dylib,sha256=dEzNbwEuzbc_CWkBW3NyqhBOQY4IJJSMUT_2h5z8LBk,11687888
18
18
  tls_client/dependencies/tls-client-x86.so,sha256=xY-FoLKXMRxEJHyb9W1TKXVmuARnSeQw4T8w6cbuHLI,12045392
19
- python_tls_client-1.0.2.dist-info/METADATA,sha256=gaTJ6dwlCG1EEkWVq54IySqI766Uxn7SriTA94aS4_Y,6329
20
- python_tls_client-1.0.2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
21
- python_tls_client-1.0.2.dist-info/top_level.txt,sha256=yLrfQtbTRfECzPN62knWdGNmbhcPRev1grCAMuEsEz0,11
22
- python_tls_client-1.0.2.dist-info/RECORD,,
19
+ python_tls_client-1.0.3.dist-info/METADATA,sha256=ouTIRQ4XKfhMjoplf8POykNnVou4jG5RnLCAsjhjlWA,6784
20
+ python_tls_client-1.0.3.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
21
+ python_tls_client-1.0.3.dist-info/top_level.txt,sha256=yLrfQtbTRfECzPN62knWdGNmbhcPRev1grCAMuEsEz0,11
22
+ python_tls_client-1.0.3.dist-info/RECORD,,
tls_client/__version__.py CHANGED
@@ -6,6 +6,6 @@
6
6
 
7
7
  __title__ = "tls_client"
8
8
  __description__ = "Advanced Python HTTP Client (fork with binary-response fix and certificate pinning)."
9
- __version__ = "1.0.2"
9
+ __version__ = "1.0.3"
10
10
  __author__ = "Emanuele Scarlata"
11
11
  __license__ = "MIT"
tls_client/cffi.py CHANGED
@@ -11,10 +11,10 @@ elif platform in ('win32', 'cygwin'):
11
11
  else:
12
12
  if machine() == "aarch64":
13
13
  file_ext = '-arm64.so'
14
- elif "x86" in machine():
15
- file_ext = '-x86.so'
16
- else:
14
+ elif machine() in ("x86_64", "amd64", "AMD64"):
17
15
  file_ext = '-amd64.so'
16
+ else:
17
+ file_ext = '-x86.so'
18
18
 
19
19
  root_dir = os.path.abspath(os.path.dirname(__file__))
20
20
  library = ctypes.cdll.LoadLibrary(f'{root_dir}/dependencies/tls-client{file_ext}')