rnet 2.4.0__cp37-cp37m-macosx_10_12_x86_64.whl → 2.4.2__cp37-cp37m-macosx_10_12_x86_64.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.

Potentially problematic release.


This version of rnet might be problematic. Click here for more details.

rnet/__init__.pyi CHANGED
@@ -125,6 +125,9 @@ class Client:
125
125
  read_timeout: Optional[int] = None,
126
126
  no_keepalive: Optional[bool] = None,
127
127
  tcp_keepalive: Optional[int] = None,
128
+ tcp_keepalive_interval: Optional[int] = None,
129
+ tcp_keepalive_retries: Optional[int] = None,
130
+ tcp_user_timeout: Optional[int] = None,
128
131
  pool_idle_timeout: Optional[int] = None,
129
132
  pool_max_idle_per_host: Optional[int] = None,
130
133
  pool_max_size: Optional[int] = None,
@@ -151,19 +154,58 @@ class Client:
151
154
  r"""
152
155
  Creates a new Client instance.
153
156
 
154
- # Examples
155
-
156
- ```python
157
- import asyncio
158
- import rnet
159
-
160
- client = rnet.Client(
161
- user_agent="my-app/0.0.1",
162
- timeout=10,
163
- )
164
- response = await client.get('https://httpbin.org/get')
165
- print(response.text)
166
- ```
157
+ Args:
158
+ impersonate: Browser fingerprint/impersonation config.
159
+ user_agent: Default User-Agent string.
160
+ default_headers: Default request headers.
161
+ headers_order: Custom header order.
162
+ referer: Automatically set Referer.
163
+ allow_redirects: Allow automatic redirects.
164
+ max_redirects: Maximum number of redirects.
165
+ cookie_store: Enable cookie store.
166
+ lookup_ip_strategy: IP lookup strategy.
167
+ timeout: Total timeout (seconds).
168
+ connect_timeout: Connection timeout (seconds).
169
+ read_timeout: Read timeout (seconds).
170
+ no_keepalive: Disable HTTP keep-alive.
171
+ tcp_keepalive: TCP keepalive time (seconds).
172
+ tcp_keepalive_interval: TCP keepalive interval (seconds).
173
+ tcp_keepalive_retries: TCP keepalive retry count.
174
+ tcp_user_timeout: TCP user timeout (seconds).
175
+ pool_idle_timeout: Connection pool idle timeout (seconds).
176
+ pool_max_idle_per_host: Max idle connections per host.
177
+ pool_max_size: Max total connections in pool.
178
+ http1_only: Enable HTTP/1.1 only.
179
+ http2_only: Enable HTTP/2 only.
180
+ https_only: Enable HTTPS only.
181
+ tcp_nodelay: Enable TCP_NODELAY.
182
+ http2_max_retry_count: Max HTTP/2 retry count.
183
+ verify: Verify SSL or specify CA path.
184
+ tls_info: Return TLS info.
185
+ min_tls_version: Minimum TLS version.
186
+ max_tls_version: Maximum TLS version.
187
+ no_proxy: Disable proxy.
188
+ proxies: Proxy server list.
189
+ local_address: Local bind address.
190
+ interface: Local network interface.
191
+ gzip: Enable gzip decompression.
192
+ brotli: Enable brotli decompression.
193
+ deflate: Enable deflate decompression.
194
+ zstd: Enable zstd decompression.
195
+
196
+ Examples:
197
+
198
+ ```python
199
+ import asyncio
200
+ import rnet
201
+
202
+ client = rnet.Client(
203
+ user_agent="my-app/0.0.1",
204
+ timeout=10,
205
+ )
206
+ response = await client.get('https://httpbin.org/get')
207
+ print(response.text)
208
+ ```
167
209
  """
168
210
 
169
211
  def get_cookies(self, url: str) -> Optional[bytes]:
rnet/blocking.pyi CHANGED
@@ -45,6 +45,9 @@ class BlockingClient:
45
45
  read_timeout: Optional[int] = None,
46
46
  no_keepalive: Optional[bool] = None,
47
47
  tcp_keepalive: Optional[int] = None,
48
+ tcp_keepalive_interval: Optional[int] = None,
49
+ tcp_keepalive_retries: Optional[int] = None,
50
+ tcp_user_timeout: Optional[int] = None,
48
51
  pool_idle_timeout: Optional[int] = None,
49
52
  pool_max_idle_per_host: Optional[int] = None,
50
53
  pool_max_size: Optional[int] = None,
@@ -71,6 +74,45 @@ class BlockingClient:
71
74
  r"""
72
75
  Creates a new BlockingClient instance.
73
76
 
77
+ Args:
78
+ impersonate: Browser fingerprint/impersonation config.
79
+ user_agent: Default User-Agent string.
80
+ default_headers: Default request headers.
81
+ headers_order: Custom header order.
82
+ referer: Automatically set Referer.
83
+ allow_redirects: Allow automatic redirects.
84
+ max_redirects: Maximum number of redirects.
85
+ cookie_store: Enable cookie store.
86
+ lookup_ip_strategy: IP lookup strategy.
87
+ timeout: Total timeout (seconds).
88
+ connect_timeout: Connection timeout (seconds).
89
+ read_timeout: Read timeout (seconds).
90
+ no_keepalive: Disable HTTP keep-alive.
91
+ tcp_keepalive: TCP keepalive time (seconds).
92
+ tcp_keepalive_interval: TCP keepalive interval (seconds).
93
+ tcp_keepalive_retries: TCP keepalive retry count.
94
+ tcp_user_timeout: TCP user timeout (seconds).
95
+ pool_idle_timeout: Connection pool idle timeout (seconds).
96
+ pool_max_idle_per_host: Max idle connections per host.
97
+ pool_max_size: Max total connections in pool.
98
+ http1_only: Enable HTTP/1.1 only.
99
+ http2_only: Enable HTTP/2 only.
100
+ https_only: Enable HTTPS only.
101
+ tcp_nodelay: Enable TCP_NODELAY.
102
+ http2_max_retry_count: Max HTTP/2 retry count.
103
+ verify: Verify SSL or specify CA path.
104
+ tls_info: Return TLS info.
105
+ min_tls_version: Minimum TLS version.
106
+ max_tls_version: Maximum TLS version.
107
+ no_proxy: Disable proxy.
108
+ proxies: Proxy server list.
109
+ local_address: Local bind address.
110
+ interface: Local network interface.
111
+ gzip: Enable gzip decompression.
112
+ brotli: Enable brotli decompression.
113
+ deflate: Enable deflate decompression.
114
+ zstd: Enable zstd decompression.
115
+
74
116
  # Examples
75
117
 
76
118
  ```python
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rnet
3
- Version: 2.4.0
3
+ Version: 2.4.2
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -22,7 +22,6 @@ Classifier: Operating System :: MacOS
22
22
  License-File: LICENSE
23
23
  Summary: A blazing-fast Python HTTP client with TLS fingerprint
24
24
  Keywords: http,client,websocket,ja3,ja4
25
- Author: 0x676e67 <gngppz@gmail.com>
26
25
  Author-email: 0x676e67 <gngppz@gmail.com>
27
26
  License: GPL-3.0
28
27
  Requires-Python: >=3.7
@@ -1,10 +1,10 @@
1
- rnet-2.4.0.dist-info/METADATA,sha256=o_Xp2JerFBe432TdQ2CzJfAqFdKgrNU09S_hkkJiuS4,8342
2
- rnet-2.4.0.dist-info/WHEEL,sha256=VowXW_nSq_RphrsRRdsic6SMS38jlWxbuOynHvB3OdI,105
3
- rnet-2.4.0.dist-info/licenses/LICENSE,sha256=ryRV02Zq6zAIr1heqDUkcGlpP7gVCDF6AqR4wRa82kI,35153
1
+ rnet-2.4.2.dist-info/METADATA,sha256=S89KxNfYlG7B9sRcRVDG7nfEDHugx26cUtMDAHsBroM,8306
2
+ rnet-2.4.2.dist-info/WHEEL,sha256=pSwYJT4-oVKyXcOW61FUXmbFigDldIlxRd6fv5cPNdU,105
3
+ rnet-2.4.2.dist-info/licenses/LICENSE,sha256=ryRV02Zq6zAIr1heqDUkcGlpP7gVCDF6AqR4wRa82kI,35153
4
4
  rnet/__init__.py,sha256=lhI2OJ7jXT98IHzhStJumoHAW4eCfROYiRkW1FycxCY,292
5
- rnet/__init__.pyi,sha256=2JQFn2oe364z5Cd7oMEozPKDtio8ldPstzdJz5MyaZ0,30457
5
+ rnet/__init__.pyi,sha256=81wvUDx0zqydo7zx06BhFVkYQPT06-AO1b1Q7nMfyDg,32583
6
6
  rnet/blocking.py,sha256=ND4qNqtA7PAI6AroCi31S1_JEcwx2GOF0ThevQhbJPw,15
7
- rnet/blocking.pyi,sha256=IVI7rvk4d-CJcn70LsPtEshAa_dH8p_k_aoQcJHDQpg,14275
7
+ rnet/blocking.pyi,sha256=m7g0RCuuoM44X4ChtjkT9ilTrXB0ttlS8WFy7QeSGq4,16362
8
8
  rnet/cookie.py,sha256=ND4qNqtA7PAI6AroCi31S1_JEcwx2GOF0ThevQhbJPw,15
9
9
  rnet/cookie.pyi,sha256=xwBIlfMTJH78_dBeqEh6fiwPuQnT5e8thVHu5n4qHe4,1622
10
10
  rnet/exceptions.py,sha256=ND4qNqtA7PAI6AroCi31S1_JEcwx2GOF0ThevQhbJPw,15
@@ -14,5 +14,5 @@ rnet/header.pyi,sha256=qAp_-HXJEaTmpJf7-UdqMt5CEvFqBZkc3m-30hvbqlk,2895
14
14
  rnet/impersonate.py,sha256=ND4qNqtA7PAI6AroCi31S1_JEcwx2GOF0ThevQhbJPw,15
15
15
  rnet/impersonate.pyi,sha256=dMjfbiQfB9UaAKDQMQWC5lX5G-vQ1LMY9sZZfGkcZoU,3966
16
16
  rnet/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- rnet/rnet.cpython-37m-darwin.so,sha256=CMdTJOnoq5hsGkhMrmcLxt6HEggFzr2Gkpsv_8IUMd0,8100168
18
- rnet-2.4.0.dist-info/RECORD,,
17
+ rnet/rnet.cpython-37m-darwin.so,sha256=lexdDZ5fMqfAYPA0yZUkSvHBpEi6jeOuYmm4Q6eTtk4,8116560
18
+ rnet-2.4.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.9.1)
2
+ Generator: maturin (1.9.2)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp37-cp37m-macosx_10_12_x86_64