tls-client-python 1.14.0__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.
tls_client/__init__.py ADDED
@@ -0,0 +1,43 @@
1
+ """
2
+ tls_client – High-performance Python binding for
3
+ github.com/bogdanfinn/tls-client via CFFI + platform-native shared library.
4
+
5
+ The package auto‑detects the host OS and architecture at import time,
6
+ selecting the correct pre‑compiled binary from the bundled ``bin/``
7
+ directory. A ``TLS_CLIENT_LIB`` environment variable may be used to
8
+ override automatic discovery.
9
+
10
+ Quick start
11
+ -----------
12
+ >>> from tls_client import Session
13
+ >>> s = Session(client_identifier="chrome_146")
14
+ >>> resp = s.get("https://httpbin.org/json")
15
+ >>> print(resp.status_code, resp.text[:50])
16
+
17
+ Async
18
+ -----
19
+ >>> from tls_client import AsyncSession
20
+ >>> async with AsyncSession() as s:
21
+ ... resp = await s.get("https://httpbin.org/json")
22
+ """
23
+
24
+ from tls_client._core import (
25
+ AsyncSession,
26
+ Session,
27
+ Request,
28
+ Response,
29
+ clear_client_pool,
30
+ SUPPORTED_CLIENT_IDENTIFIERS,
31
+ list_client_identifiers,
32
+ )
33
+
34
+ __all__ = [
35
+ "Session",
36
+ "AsyncSession",
37
+ "Request",
38
+ "Response",
39
+ "clear_client_pool",
40
+ "SUPPORTED_CLIENT_IDENTIFIERS",
41
+ "list_client_identifiers",
42
+ ]
43
+ __version__ = "1.14.0"