rnet 3.0.0rc3__cp311-abi3-musllinux_1_2_aarch64.whl → 3.0.0rc4__cp311-abi3-musllinux_1_2_aarch64.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__.py +1 -3
- rnet/__init__.pyi +797 -614
- rnet/blocking.py +216 -272
- rnet/cookie.py +15 -5
- rnet/emulation.py +6 -2
- rnet/exceptions.py +17 -13
- rnet/header.py +17 -3
- rnet/rnet.abi3.so +0 -0
- rnet/tls.py +5 -3
- {rnet-3.0.0rc3.dist-info → rnet-3.0.0rc4.dist-info}/METADATA +45 -46
- rnet-3.0.0rc4.dist-info/RECORD +15 -0
- rnet-3.0.0rc4.dist-info/licenses/LICENSE +201 -0
- rnet-3.0.0rc3.dist-info/RECORD +0 -15
- rnet-3.0.0rc3.dist-info/licenses/LICENSE +0 -674
- {rnet-3.0.0rc3.dist-info → rnet-3.0.0rc4.dist-info}/WHEEL +0 -0
rnet/emulation.py
CHANGED
|
@@ -12,6 +12,8 @@ authentic and less likely to be blocked by anti-bot systems.
|
|
|
12
12
|
|
|
13
13
|
from enum import Enum, auto
|
|
14
14
|
|
|
15
|
+
__all__ = ["Emulation", "EmulationOS", "EmulationOption"]
|
|
16
|
+
|
|
15
17
|
|
|
16
18
|
class Emulation(Enum):
|
|
17
19
|
r"""
|
|
@@ -131,12 +133,12 @@ class EmulationOption:
|
|
|
131
133
|
"""
|
|
132
134
|
|
|
133
135
|
def __init__(
|
|
134
|
-
|
|
136
|
+
self,
|
|
135
137
|
emulation: Emulation,
|
|
136
138
|
emulation_os: EmulationOS | None = None,
|
|
137
139
|
skip_http2: bool | None = None,
|
|
138
140
|
skip_headers: bool | None = None,
|
|
139
|
-
) ->
|
|
141
|
+
) -> None:
|
|
140
142
|
"""
|
|
141
143
|
Create a new emulation configuration.
|
|
142
144
|
|
|
@@ -162,6 +164,7 @@ class EmulationOption:
|
|
|
162
164
|
)
|
|
163
165
|
```
|
|
164
166
|
"""
|
|
167
|
+
...
|
|
165
168
|
|
|
166
169
|
@staticmethod
|
|
167
170
|
def random() -> "EmulationOption":
|
|
@@ -182,3 +185,4 @@ class EmulationOption:
|
|
|
182
185
|
client2 = rnet.Client(emulation=EmulationOption.random())
|
|
183
186
|
```
|
|
184
187
|
"""
|
|
188
|
+
...
|
rnet/exceptions.py
CHANGED
|
@@ -6,6 +6,23 @@ The exceptions are organized into logical categories based on their cause and
|
|
|
6
6
|
severity, making it easier to handle specific types of errors appropriately.
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
__all__ = [
|
|
10
|
+
"DNSResolverError",
|
|
11
|
+
"TlsError",
|
|
12
|
+
"ConnectionError",
|
|
13
|
+
"ConnectionResetError",
|
|
14
|
+
"BodyError",
|
|
15
|
+
"BuilderError",
|
|
16
|
+
"DecodingError",
|
|
17
|
+
"StatusError",
|
|
18
|
+
"RequestError",
|
|
19
|
+
"RedirectError",
|
|
20
|
+
"UpgradeError",
|
|
21
|
+
"WebSocketError",
|
|
22
|
+
"URLParseError",
|
|
23
|
+
"TimeoutError",
|
|
24
|
+
]
|
|
25
|
+
|
|
9
26
|
# ========================================
|
|
10
27
|
# Network and System-Level Errors
|
|
11
28
|
# ========================================
|
|
@@ -181,19 +198,6 @@ class URLParseError(Exception):
|
|
|
181
198
|
"""
|
|
182
199
|
|
|
183
200
|
|
|
184
|
-
class MIMEParseError(Exception):
|
|
185
|
-
r"""
|
|
186
|
-
An error occurred while parsing a MIME type.
|
|
187
|
-
|
|
188
|
-
This exception covers failures in parsing or processing
|
|
189
|
-
MIME types and related content type information, such as:
|
|
190
|
-
- Invalid MIME type format
|
|
191
|
-
- Unsupported content types
|
|
192
|
-
- Malformed content-type headers
|
|
193
|
-
- Character set parsing issues
|
|
194
|
-
"""
|
|
195
|
-
|
|
196
|
-
|
|
197
201
|
# ========================================
|
|
198
202
|
# Timeout Errors
|
|
199
203
|
# ========================================
|
rnet/header.py
CHANGED
|
@@ -11,7 +11,9 @@ including proper support for headers that can have multiple values (like
|
|
|
11
11
|
Set-Cookie, Accept-Encoding, etc.).
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
from typing import Iterator, List, Optional, Tuple
|
|
14
|
+
from typing import Dict, Iterator, List, Optional, Tuple
|
|
15
|
+
|
|
16
|
+
__all__ = ["HeaderMap", "OrigHeaderMap"]
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
class HeaderMap:
|
|
@@ -56,8 +58,8 @@ class HeaderMap:
|
|
|
56
58
|
...
|
|
57
59
|
|
|
58
60
|
def __init__(
|
|
59
|
-
|
|
60
|
-
) ->
|
|
61
|
+
self, init: Dict[str, str] | None = None, capacity: int | None = None
|
|
62
|
+
) -> None:
|
|
61
63
|
"""
|
|
62
64
|
Create a new HeaderMap.
|
|
63
65
|
|
|
@@ -97,6 +99,7 @@ class HeaderMap:
|
|
|
97
99
|
Returns:
|
|
98
100
|
True if the header exists, False otherwise
|
|
99
101
|
"""
|
|
102
|
+
...
|
|
100
103
|
|
|
101
104
|
def insert(self, key: str, value: str) -> None:
|
|
102
105
|
r"""
|
|
@@ -109,6 +112,7 @@ class HeaderMap:
|
|
|
109
112
|
key: The header name (case-insensitive)
|
|
110
113
|
value: The header value to set
|
|
111
114
|
"""
|
|
115
|
+
...
|
|
112
116
|
|
|
113
117
|
def append(self, key: str, value: str) -> None:
|
|
114
118
|
r"""
|
|
@@ -122,6 +126,7 @@ class HeaderMap:
|
|
|
122
126
|
key: The header name (case-insensitive)
|
|
123
127
|
value: The header value to append
|
|
124
128
|
"""
|
|
129
|
+
...
|
|
125
130
|
|
|
126
131
|
def remove(self, key: str) -> None:
|
|
127
132
|
r"""
|
|
@@ -133,6 +138,7 @@ class HeaderMap:
|
|
|
133
138
|
Args:
|
|
134
139
|
key: The header name to remove (case-insensitive)
|
|
135
140
|
"""
|
|
141
|
+
...
|
|
136
142
|
|
|
137
143
|
def get(self, key: str, default: Optional[bytes] = None) -> Optional[bytes]:
|
|
138
144
|
r"""
|
|
@@ -149,6 +155,7 @@ class HeaderMap:
|
|
|
149
155
|
Returns:
|
|
150
156
|
The first header value as bytes, or the default value
|
|
151
157
|
"""
|
|
158
|
+
...
|
|
152
159
|
|
|
153
160
|
def get_all(self, key: str) -> Iterator[bytes]:
|
|
154
161
|
r"""
|
|
@@ -164,6 +171,7 @@ class HeaderMap:
|
|
|
164
171
|
Returns:
|
|
165
172
|
An iterator over all header values
|
|
166
173
|
"""
|
|
174
|
+
...
|
|
167
175
|
|
|
168
176
|
def values(self) -> Iterator[bytes]:
|
|
169
177
|
"""
|
|
@@ -172,6 +180,7 @@ class HeaderMap:
|
|
|
172
180
|
Returns:
|
|
173
181
|
An iterator over all header values as bytes.
|
|
174
182
|
"""
|
|
183
|
+
...
|
|
175
184
|
|
|
176
185
|
def keys(self) -> Iterator[bytes]:
|
|
177
186
|
"""
|
|
@@ -180,6 +189,7 @@ class HeaderMap:
|
|
|
180
189
|
Returns:
|
|
181
190
|
An iterator over unique header names as bytes.
|
|
182
191
|
"""
|
|
192
|
+
...
|
|
183
193
|
|
|
184
194
|
def len(self) -> int:
|
|
185
195
|
"""
|
|
@@ -192,6 +202,7 @@ class HeaderMap:
|
|
|
192
202
|
Returns:
|
|
193
203
|
Total number of header values stored
|
|
194
204
|
"""
|
|
205
|
+
...
|
|
195
206
|
|
|
196
207
|
def keys_len(self) -> int:
|
|
197
208
|
"""
|
|
@@ -203,6 +214,7 @@ class HeaderMap:
|
|
|
203
214
|
Returns:
|
|
204
215
|
Number of unique header names
|
|
205
216
|
"""
|
|
217
|
+
...
|
|
206
218
|
|
|
207
219
|
def is_empty(self) -> bool:
|
|
208
220
|
"""
|
|
@@ -211,6 +223,7 @@ class HeaderMap:
|
|
|
211
223
|
Returns:
|
|
212
224
|
True if no headers are stored, False otherwise
|
|
213
225
|
"""
|
|
226
|
+
...
|
|
214
227
|
|
|
215
228
|
def clear(self) -> None:
|
|
216
229
|
"""
|
|
@@ -219,6 +232,7 @@ class HeaderMap:
|
|
|
219
232
|
After calling this method, the header map will be empty and
|
|
220
233
|
is_empty() will return True.
|
|
221
234
|
"""
|
|
235
|
+
...
|
|
222
236
|
|
|
223
237
|
|
|
224
238
|
class OrigHeaderMap:
|
rnet/rnet.abi3.so
CHANGED
|
Binary file
|
rnet/tls.py
CHANGED
|
@@ -10,6 +10,8 @@ from enum import Enum, auto
|
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
from typing import List
|
|
12
12
|
|
|
13
|
+
__all__ = ["TlsVersion", "Identity", "CertStore", "KeyLogPolicy"]
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
class TlsVersion(Enum):
|
|
15
17
|
r"""
|
|
@@ -44,7 +46,7 @@ class Identity:
|
|
|
44
46
|
...
|
|
45
47
|
|
|
46
48
|
@staticmethod
|
|
47
|
-
def from_pkcs8_pem(buf: bytes, key: bytes) -> "
|
|
49
|
+
def from_pkcs8_pem(buf: bytes, key: bytes) -> "Identity":
|
|
48
50
|
"""
|
|
49
51
|
Parses a chain of PEM encoded X509 certificates, with the leaf certificate first.
|
|
50
52
|
`key` is a PEM encoded PKCS #8 formatted private key for the leaf certificate.
|
|
@@ -63,11 +65,11 @@ class CertStore:
|
|
|
63
65
|
"""
|
|
64
66
|
|
|
65
67
|
def __init__(
|
|
66
|
-
|
|
68
|
+
self,
|
|
67
69
|
der_certs: List[bytes] | None = None,
|
|
68
70
|
pem_certs: List[str] | None = None,
|
|
69
71
|
default_paths: bool | None = None,
|
|
70
|
-
) ->
|
|
72
|
+
) -> None:
|
|
71
73
|
"""
|
|
72
74
|
Creates a new CertStore.
|
|
73
75
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rnet
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0rc4
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -19,7 +19,7 @@ License-File: LICENSE
|
|
|
19
19
|
Summary: A blazing-fast Python HTTP client with TLS fingerprint
|
|
20
20
|
Keywords: http,client,websocket,ja3,ja4
|
|
21
21
|
Author-email: 0x676e67 <gngppz@gmail.com>
|
|
22
|
-
License:
|
|
22
|
+
License: Apache-2.0
|
|
23
23
|
Requires-Python: >=3.11
|
|
24
24
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
25
25
|
Project-URL: Documentation, https://github.com/0x676e67/rnet/blob/main/rnet.pyi
|
|
@@ -36,7 +36,7 @@ Project-URL: Repository, https://github.com/0x676e67/rnet
|
|
|
36
36
|
|
|
37
37
|
> 🚀 Help me work seamlessly with open source sharing by [sponsoring me on GitHub](https://github.com/0x676e67/0x676e67/blob/main/SPONSOR.md)
|
|
38
38
|
|
|
39
|
-
A blazing-fast Python HTTP client with advanced browser fingerprinting that accurately emulates **Chrome**, **Firefox**, **Safari**, **Opera**, and **OkHttp**, with precise
|
|
39
|
+
A blazing-fast Python HTTP client with advanced browser fingerprinting that accurately emulates **Chrome**, **Firefox**, **Safari**, **Opera**, and **OkHttp**, with precise TLS and HTTP2 signatures, and powered by [wreq](https://github.com/0x676e67/wreq) for high performance.
|
|
40
40
|
|
|
41
41
|
## Features
|
|
42
42
|
|
|
@@ -57,10 +57,10 @@ A blazing-fast Python HTTP client with advanced browser fingerprinting that accu
|
|
|
57
57
|
|
|
58
58
|
## Example
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
The following example uses the `asyncio` runtime with `rnet` installed via pip:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
pip install asyncio rnet==3.0.
|
|
63
|
+
pip install asyncio rnet==3.0.0rc4
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
And then the code:
|
|
@@ -93,6 +93,31 @@ Additional learning resources include:
|
|
|
93
93
|
- [Repository Tests](https://github.com/0x676e67/rnet/tree/main/tests)
|
|
94
94
|
- [Synchronous Examples](https://github.com/0x676e67/rnet/tree/main/python/examples/blocking)
|
|
95
95
|
- [Asynchronous Examples](https://github.com/0x676e67/rnet/tree/main/python/examples)
|
|
96
|
+
- <details>
|
|
97
|
+
<summary>Available OS emulations</summary>
|
|
98
|
+
|
|
99
|
+
| **OS** | **Description** |
|
|
100
|
+
| ----------- | ------------------------------ |
|
|
101
|
+
| **Windows** | Windows (any version) |
|
|
102
|
+
| **MacOS** | macOS (any version) |
|
|
103
|
+
| **Linux** | Linux (any distribution) |
|
|
104
|
+
| **Android** | Android (mobile) |
|
|
105
|
+
| **iOS** | iOS (iPhone/iPad) |
|
|
106
|
+
|
|
107
|
+
</details>
|
|
108
|
+
- <details>
|
|
109
|
+
<summary>Available browser emulations</summary>
|
|
110
|
+
|
|
111
|
+
| **Browser** | **Versions** |
|
|
112
|
+
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
113
|
+
| **Chrome** | `Chrome100`, `Chrome101`, `Chrome104`, `Chrome105`, `Chrome106`, `Chrome107`, `Chrome108`, `Chrome109`, `Chrome110`, `Chrome114`, `Chrome116`, `Chrome117`, `Chrome118`, `Chrome119`, `Chrome120`, `Chrome123`, `Chrome124`, `Chrome126`, `Chrome127`, `Chrome128`, `Chrome129`, `Chrome130`, `Chrome131`, `Chrome132`, `Chrome133`, `Chrome134`, `Chrome135`, `Chrome136`, `Chrome137` |
|
|
114
|
+
| **Safari** | `SafariIos17_2`, `SafariIos17_4_1`, `SafariIos16_5`, `Safari15_3`, `Safari15_5`, `Safari15_6_1`, `Safari16`, `Safari16_5`, `Safari17_0`, `Safari17_2_1`, `Safari17_4_1`, `Safari17_5`, `Safari18`, `SafariIPad18`, `Safari18_2`, `SafariIos18_1_1`, `Safari18_3`, `Safari18_3_1`, `Safari18_5` |
|
|
115
|
+
| **Firefox** | `Firefox109`, `Firefox117`, `Firefox128`, `Firefox133`, `Firefox135`, `FirefoxPrivate135`, `FirefoxAndroid135`, `Firefox136`, `FirefoxPrivate136`, `Firefox139` |
|
|
116
|
+
| **OkHttp** | `OkHttp3_9`, `OkHttp3_11`, `OkHttp3_13`, `OkHttp3_14`, `OkHttp4_9`, `OkHttp4_10`, `OkHttp4_12`, `OkHttp5` |
|
|
117
|
+
| **Edge** | `Edge101`, `Edge122`, `Edge127`, `Edge131`, `Edge134` |
|
|
118
|
+
| **Opera** | `Opera116`, `Opera117`, `Opera118`, `Opera119` |
|
|
119
|
+
|
|
120
|
+
</details>
|
|
96
121
|
|
|
97
122
|
## Platforms
|
|
98
123
|
|
|
@@ -107,48 +132,39 @@ Additional learning resources include:
|
|
|
107
132
|
|
|
108
133
|
## Building
|
|
109
134
|
|
|
110
|
-
1.
|
|
135
|
+
1. Development
|
|
136
|
+
|
|
137
|
+
Install the BoringSSL build environment by referring to [boring](https://github.com/cloudflare/boring/blob/master/.github/workflows/ci.yml) and [boringssl](https://github.com/google/boringssl/blob/master/BUILDING.md#build-prerequisites).
|
|
111
138
|
|
|
112
139
|
```bash
|
|
140
|
+
# on ubuntu or debian
|
|
141
|
+
sudo apt install -y build-essential cmake perl pkg-config libclang-dev musl-tools git
|
|
113
142
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
114
|
-
pip install maturin
|
|
115
|
-
pip install uv
|
|
143
|
+
pip install uv maturin
|
|
116
144
|
|
|
117
145
|
uv venv
|
|
118
146
|
source .venv/bin/activate
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
2. Development
|
|
122
147
|
|
|
123
|
-
|
|
124
|
-
# build and install the package
|
|
148
|
+
# Development
|
|
125
149
|
maturin develop --uv
|
|
126
|
-
python3 examples/client.py
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
3. Compile wheels
|
|
130
150
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
```bash
|
|
134
|
-
# on ubuntu or debian
|
|
135
|
-
sudo apt-get install build-essential cmake perl pkg-config libclang-dev musl-tools git -y
|
|
151
|
+
# Build wheels
|
|
136
152
|
maturin build --release
|
|
137
153
|
```
|
|
138
154
|
|
|
139
|
-
|
|
155
|
+
2. Musllinux
|
|
140
156
|
|
|
141
157
|
Make sure you have Docker installed. The provided image may be outdated, so you might need to build it yourself. See [rust-cross-musl](https://github.com/0x676e67/toolchain/blob/master/rust-musl-cross/Dockerfile) and the upstream [rust-cross/rust-musl-cross](https://github.com/rust-cross/rust-musl-cross) for reference.
|
|
142
158
|
**Note:** The upstream image does not include some platform-specific linker environment variables; you may need to add these manually.
|
|
143
159
|
|
|
144
160
|
```bash
|
|
161
|
+
bash .github/musl_build.sh i686-unknown-linux-musl
|
|
145
162
|
bash .github/musl_build.sh x86_64-unknown-linux-musl
|
|
146
163
|
bash .github/musl_build.sh aarch64-unknown-linux-musl
|
|
147
164
|
bash .github/musl_build.sh armv7-unknown-linux-musleabihf
|
|
148
|
-
bash .github/musl_build.sh i686-unknown-linux-musl
|
|
149
165
|
```
|
|
150
166
|
|
|
151
|
-
|
|
167
|
+
3. Manylinux
|
|
152
168
|
|
|
153
169
|
For Manylinux compilation, refer to [manylinux](https://github.com/PyO3/maturin?tab=readme-ov-file#manylinux-and-auditwheel).
|
|
154
170
|
|
|
@@ -156,26 +172,13 @@ For Manylinux compilation, refer to [manylinux](https://github.com/PyO3/maturin?
|
|
|
156
172
|
|
|
157
173
|
Outperforms `requests`, `httpx`, `Python-TLS-Client`, and `curl_cffi`. See the [benchmark](https://github.com/0x676e67/rnet/tree/main/python/benchmark) for details. Benchmark data is for reference only—actual performance may vary based on your environment and use case.
|
|
158
174
|
|
|
159
|
-
##
|
|
160
|
-
|
|
161
|
-
For a comprehensive introduction to this library, refer to the [DeepWiki](https://deepwiki.com/0x676e67/rnet) documentation. This AI-generated guide, created by a third party, offers a solid overview and allows interaction with the AI to explore specific APIs.
|
|
162
|
-
|
|
163
|
-
## Emulation
|
|
164
|
-
|
|
165
|
-
In fact, most device models share the same `TLS`/`HTTP2` configuration, with the main difference being the `User-Agent`.
|
|
175
|
+
## License
|
|
166
176
|
|
|
167
|
-
|
|
168
|
-
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
169
|
-
| **Chrome** | `Chrome100`, `Chrome101`, `Chrome104`, `Chrome105`, `Chrome106`, `Chrome107`, `Chrome108`, `Chrome109`, `Chrome110`, `Chrome114`, `Chrome116`, `Chrome117`, `Chrome118`, `Chrome119`, `Chrome120`, `Chrome123`, `Chrome124`, `Chrome126`, `Chrome127`, `Chrome128`, `Chrome129`, `Chrome130`, `Chrome131`, `Chrome132`, `Chrome133`, `Chrome134`, `Chrome135`, `Chrome136`, `Chrome137` |
|
|
170
|
-
| **Safari** | `SafariIos17_2`, `SafariIos17_4_1`, `SafariIos16_5`, `Safari15_3`, `Safari15_5`, `Safari15_6_1`, `Safari16`, `Safari16_5`, `Safari17_0`, `Safari17_2_1`, `Safari17_4_1`, `Safari17_5`, `Safari18`, `SafariIPad18`, `Safari18_2`, `SafariIos18_1_1`, `Safari18_3`, `Safari18_3_1`, `Safari18_5` |
|
|
171
|
-
| **Firefox** | `Firefox109`, `Firefox117`, `Firefox128`, `Firefox133`, `Firefox135`, `FirefoxPrivate135`, `FirefoxAndroid135`, `Firefox136`, `FirefoxPrivate136`, `Firefox139` |
|
|
172
|
-
| **OkHttp** | `OkHttp3_9`, `OkHttp3_11`, `OkHttp3_13`, `OkHttp3_14`, `OkHttp4_9`, `OkHttp4_10`, `OkHttp4_12`, `OkHttp5` |
|
|
173
|
-
| **Edge** | `Edge101`, `Edge122`, `Edge127`, `Edge131`, `Edge134` |
|
|
174
|
-
| **Opera** | `Opera116`, `Opera117`, `Opera118`, `Opera119` |
|
|
177
|
+
Licensed under either of Apache License, Version 2.0 ([LICENSE](./LICENSE) or http://www.apache.org/licenses/LICENSE-2.0).
|
|
175
178
|
|
|
176
|
-
##
|
|
179
|
+
## Contribution
|
|
177
180
|
|
|
178
|
-
|
|
181
|
+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the [Apache-2.0](./LICENSE) license, shall be licensed as above, without any additional terms or conditions.
|
|
179
182
|
|
|
180
183
|
## Sponsors
|
|
181
184
|
|
|
@@ -183,7 +186,3 @@ If you would like to submit your contribution, please open a [Pull Request](http
|
|
|
183
186
|
|
|
184
187
|
[CapSolver](https://www.capsolver.com/?utm_source=github&utm_medium=banner_repo&utm_campaign=rnet) leverages AI-powered Auto Web Unblock to bypass Captchas effortlessly, providing fast, reliable, and cost-effective data access with seamless integration into Colly, Puppeteer, and Playwright—use code **`RNET`** for a 6% bonus!
|
|
185
188
|
|
|
186
|
-
## License
|
|
187
|
-
|
|
188
|
-
**rnet** © [0x676e67](https://github.com/0x676e67), Released under the [GPL-3.0](https://github.com/0x676e67/rnet/blob/main/LICENSE) License.
|
|
189
|
-
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
rnet-3.0.0rc4.dist-info/METADATA,sha256=2YwW2_RNLz7yzW9zGOIk_VjqkpwWNNc9tKvn1f5DtYs,10167
|
|
2
|
+
rnet-3.0.0rc4.dist-info/WHEEL,sha256=j6FOuxwT6CKQM0u5qX1thXGZmEEfmaSnivgZjWdBOSo,107
|
|
3
|
+
rnet-3.0.0rc4.dist-info/licenses/LICENSE,sha256=ld2UNRYADDwfLyJ9Q34VP3bWRfS53mvK1tixHd57kN0,11357
|
|
4
|
+
rnet.libs/libgcc_s-3aecca4c.so.1,sha256=_sVuZnnVxDgxnVfXQEU8B3q8D6Gw3jSv5ShoR2uo8KU,462145
|
|
5
|
+
rnet/__init__.py,sha256=-ls4I6NTnLT8vB8ST0KgphHliSJ8c_NyhrVzBa5JMJ0,277
|
|
6
|
+
rnet/__init__.pyi,sha256=mFsN8_KOvDTR2wpJ0y7eoKVyAVHPExN-6FkawwkoLm8,32440
|
|
7
|
+
rnet/blocking.py,sha256=u5P-g_FZ6jH5fqirNXsNau-ovsjkfqw8X6BpKQ_xpBM,8579
|
|
8
|
+
rnet/cookie.py,sha256=4UYJY9jlXqe8vObXLSqzk1dFoKRO5mCnsgC0TCC4N1Y,3023
|
|
9
|
+
rnet/emulation.py,sha256=JWLvOAtvFa_xkozDinU83BFYW7G8KuEyGVDiaqjqVmQ,5064
|
|
10
|
+
rnet/exceptions.py,sha256=A-3i9K-Ek4KRTap2gAI8Z7-ZMjbsOgKCikT3xWSralc,5854
|
|
11
|
+
rnet/header.py,sha256=K_bp5F_4D21UjMaBp7aM-aGVYI162IsX-vn2fjExEF4,9749
|
|
12
|
+
rnet/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
+
rnet/rnet.abi3.so,sha256=1a_yg536tMw_87bOn7q5VlcU31dhWtQvIqUK3zA6uvM,7934593
|
|
14
|
+
rnet/tls.py,sha256=xTTuk3XSReGvzrTvBLyepWm3wq-bHYW-tetsX66Na3g,4853
|
|
15
|
+
rnet-3.0.0rc4.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 0x676e67 <gngppz@gmail.com>
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
rnet-3.0.0rc3.dist-info/RECORD
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
rnet-3.0.0rc3.dist-info/METADATA,sha256=fEfWy3HHnm5piQjMxfjS8tn9XKDwVisWOB3Q9mWNRUU,10143
|
|
2
|
-
rnet-3.0.0rc3.dist-info/WHEEL,sha256=j6FOuxwT6CKQM0u5qX1thXGZmEEfmaSnivgZjWdBOSo,107
|
|
3
|
-
rnet-3.0.0rc3.dist-info/licenses/LICENSE,sha256=ryRV02Zq6zAIr1heqDUkcGlpP7gVCDF6AqR4wRa82kI,35153
|
|
4
|
-
rnet.libs/libgcc_s-3aecca4c.so.1,sha256=_sVuZnnVxDgxnVfXQEU8B3q8D6Gw3jSv5ShoR2uo8KU,462145
|
|
5
|
-
rnet/__init__.py,sha256=gqet5qGPHqS1VRr8XjzpQOuYetNn-aLss4lTR7cZ_9M,317
|
|
6
|
-
rnet/__init__.pyi,sha256=udvT5QwB905aczie87n-9BAMePfnzU_yen90CtO-F38,29301
|
|
7
|
-
rnet/blocking.py,sha256=4o6eTsoP0_XboU9JwkVKwPwbo-BtzymmqJnOVRoSdt4,11325
|
|
8
|
-
rnet/cookie.py,sha256=RmkrJ4NXkxapBaa-zP7zJZm-H0TRbYCyAQFtrkvEJAA,2877
|
|
9
|
-
rnet/emulation.py,sha256=JBN1WqW7TrrzRFBxxm6aYYuDfGUfFV8fbWaUiTIBIFA,4993
|
|
10
|
-
rnet/exceptions.py,sha256=pr8RNPhr_CswkdKgZGvamSFwyrHE6OPQk72YcJACNBo,5906
|
|
11
|
-
rnet/header.py,sha256=70Ro2nLV0QJgYARpatFcKJhx3NvxrYpdv6T9WMAu82E,9559
|
|
12
|
-
rnet/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
rnet/rnet.abi3.so,sha256=dAQsETEI_AfT5V1JGYZQB_1iGusaeRBu_T0KtSWaOq0,7934577
|
|
14
|
-
rnet/tls.py,sha256=lbte5JDU9_mcPY62H3zV5aC5sPc9v4vRSf9tMrucROA,4793
|
|
15
|
-
rnet-3.0.0rc3.dist-info/RECORD,,
|