python-tls-client 1.0.2__tar.gz → 1.0.3__tar.gz

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.
Files changed (31) hide show
  1. {python_tls_client-1.0.2/python_tls_client.egg-info → python_tls_client-1.0.3}/PKG-INFO +9 -1
  2. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/README.md +8 -0
  3. {python_tls_client-1.0.2 → python_tls_client-1.0.3/python_tls_client.egg-info}/PKG-INFO +9 -1
  4. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/__version__.py +1 -1
  5. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/cffi.py +3 -3
  6. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/LICENSE +0 -0
  7. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/MANIFEST.in +0 -0
  8. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/pyproject.toml +0 -0
  9. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/python_tls_client.egg-info/SOURCES.txt +0 -0
  10. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/python_tls_client.egg-info/dependency_links.txt +0 -0
  11. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/python_tls_client.egg-info/requires.txt +0 -0
  12. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/python_tls_client.egg-info/top_level.txt +0 -0
  13. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/requirements.txt +0 -0
  14. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/setup.cfg +0 -0
  15. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/setup.py +0 -0
  16. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tests/test_binary_response.py +0 -0
  17. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/__init__.py +0 -0
  18. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/cookies.py +0 -0
  19. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/dependencies/__init__.py +0 -0
  20. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/dependencies/tls-client-32.dll +0 -0
  21. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/dependencies/tls-client-64.dll +0 -0
  22. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/dependencies/tls-client-amd64.so +0 -0
  23. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/dependencies/tls-client-arm64.dylib +0 -0
  24. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/dependencies/tls-client-arm64.so +0 -0
  25. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/dependencies/tls-client-x86.dylib +0 -0
  26. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/dependencies/tls-client-x86.so +0 -0
  27. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/exceptions.py +0 -0
  28. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/response.py +0 -0
  29. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/sessions.py +0 -0
  30. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/settings.py +0 -0
  31. {python_tls_client-1.0.2 → python_tls_client-1.0.3}/tls_client/structures.py +0 -0
@@ -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
@@ -141,6 +141,14 @@ Also I wanted to keep the syntax as similar as possible to [requests](https://gi
141
141
 
142
142
  # Changelog
143
143
 
144
+ ## 1.0.3
145
+ - **Fix**: on Linux, 64-bit x86 machines (`platform.machine() == "x86_64"`) were
146
+ incorrectly matched by the `"x86" in machine()` check in `cffi.py` and loaded
147
+ the 32-bit `tls-client-x86.so` binary instead of the 64-bit
148
+ `tls-client-amd64.so`, causing the native library to fail to load on the vast
149
+ majority of Linux hosts. `machine()` is now matched explicitly against
150
+ `x86_64`/`amd64`/`AMD64` before falling back to the 32-bit binary.
151
+
144
152
  ## 1.0.2
145
153
  - **Fix**: binary response bodies (protobuf, images, ...) were corrupted by a
146
154
  UTF-8 `byteReplacer` (U+FFFD) inside the Go C library. Every byte > 127 that
@@ -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
@@ -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"
@@ -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}')