rnet 3.0.0rc4__tar.gz → 3.0.0rc5__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.
Potentially problematic release.
This version of rnet might be problematic. Click here for more details.
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/Cargo.lock +1 -1
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/Cargo.toml +1 -1
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/PKG-INFO +2 -2
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/README.md +1 -1
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/bench.py +12 -12
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/__init__.pyi +2 -1
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/blocking.py +12 -2
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/FUNDING.yml +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/assets/capsolver.jpg +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/dependabot.yml +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/musl_build.sh +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/workflows/ci.yml +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.gitignore +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/LICENSE +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/pyproject.toml +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/README.md +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/benchmark_multi.jpg +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/benchmark_multi_threaded.jpg +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/benchmark_results.csv +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/chart.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/core.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/requirements.txt +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/server.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/auth.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/basic_auth.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/bearer_auth.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/auth.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/basic_auth.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/bearer_auth.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/body.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/client.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/cookie.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/emulation.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/form.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/get.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/json.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/multipart.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/proxy.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/query.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/stream.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/body.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/client.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/emulation.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/exceptions.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/form.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/get.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/header_map.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/http1_websocket.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/http2_websocket.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/json.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/keylog.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/multipart.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/orig_headers.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/proxy.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/query.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/request.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/stream.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/__init__.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/cookie.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/emulation.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/exceptions.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/header.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/py.typed +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/tls.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/buffer.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/body/mod.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/body/multipart.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/dns.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/mod.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/req.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/future.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/history.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/http.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/mod.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/stream.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/ws/cmd.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/ws/mod.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/ws/msg.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/emulation.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/error.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/extractor.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/http/cookie.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/http/header.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/http/mod.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/http/status.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/lib.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/macros.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/proxy.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/tls/identity.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/tls/keylog.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/tls/mod.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/tls/store.rs +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/cookie_test.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/header_test.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/redirect_test.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/request_test.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/response_test.py +0 -0
- {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/tls_test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rnet
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.0rc5
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -60,7 +60,7 @@ A blazing-fast Python HTTP client with advanced browser fingerprinting that accu
|
|
|
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.0rc5
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
And then the code:
|
|
@@ -32,7 +32,7 @@ A blazing-fast Python HTTP client with advanced browser fingerprinting that accu
|
|
|
32
32
|
The following example uses the `asyncio` runtime with `rnet` installed via pip:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
pip install asyncio rnet==3.0.
|
|
35
|
+
pip install asyncio rnet==3.0.0rc5
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
And then the code:
|
|
@@ -24,43 +24,43 @@ def parse_arguments():
|
|
|
24
24
|
"""Parse command line arguments"""
|
|
25
25
|
parser = argparse.ArgumentParser(
|
|
26
26
|
description="HTTP Client Benchmark Tool",
|
|
27
|
-
formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
|
27
|
+
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
|
28
28
|
)
|
|
29
29
|
|
|
30
30
|
parser.add_argument(
|
|
31
|
-
"--requests", "-r",
|
|
32
|
-
type=int,
|
|
33
|
-
default=400,
|
|
34
|
-
help="Number of requests per test"
|
|
31
|
+
"--requests", "-r", type=int, default=400, help="Number of requests per test"
|
|
35
32
|
)
|
|
36
33
|
|
|
37
34
|
parser.add_argument(
|
|
38
|
-
"--threads",
|
|
35
|
+
"--threads",
|
|
36
|
+
"-t",
|
|
39
37
|
type=int,
|
|
40
38
|
nargs="+",
|
|
41
39
|
default=[1, 4, 8, 16],
|
|
42
|
-
help="Thread counts to test (e.g., --threads 1 2 4 8)"
|
|
40
|
+
help="Thread counts to test (e.g., --threads 1 2 4 8)",
|
|
43
41
|
)
|
|
44
42
|
|
|
45
43
|
parser.add_argument(
|
|
46
|
-
"--output",
|
|
44
|
+
"--output",
|
|
45
|
+
"-o",
|
|
47
46
|
type=str,
|
|
48
47
|
default="benchmark_results.csv",
|
|
49
|
-
help="Output CSV file name"
|
|
48
|
+
help="Output CSV file name",
|
|
50
49
|
)
|
|
51
50
|
|
|
52
51
|
parser.add_argument(
|
|
53
|
-
"--chart",
|
|
52
|
+
"--chart",
|
|
53
|
+
"-c",
|
|
54
54
|
type=str,
|
|
55
55
|
default="benchmark_multi.jpg",
|
|
56
|
-
help="Output chart file name"
|
|
56
|
+
help="Output chart file name",
|
|
57
57
|
)
|
|
58
58
|
|
|
59
59
|
parser.add_argument(
|
|
60
60
|
"--base-url",
|
|
61
61
|
type=str,
|
|
62
62
|
default="http://127.0.0.1:8000",
|
|
63
|
-
help="Base URL for the benchmark server"
|
|
63
|
+
help="Base URL for the benchmark server",
|
|
64
64
|
)
|
|
65
65
|
|
|
66
66
|
return parser.parse_args()
|
|
@@ -10,10 +10,11 @@ from typing import (
|
|
|
10
10
|
Dict,
|
|
11
11
|
List,
|
|
12
12
|
TypedDict,
|
|
13
|
+
Unpack,
|
|
14
|
+
NotRequired,
|
|
13
15
|
)
|
|
14
16
|
from pathlib import Path
|
|
15
17
|
from enum import Enum, auto
|
|
16
|
-
from typing import Unpack, NotRequired
|
|
17
18
|
|
|
18
19
|
from .cookie import Cookie, Jar
|
|
19
20
|
from .header import HeaderMap, OrigHeaderMap
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import datetime
|
|
2
|
-
from rnet import
|
|
2
|
+
from rnet import (
|
|
3
|
+
ClientParams,
|
|
4
|
+
History,
|
|
5
|
+
Message,
|
|
6
|
+
Request,
|
|
7
|
+
Streamer,
|
|
8
|
+
WebSocketRequest,
|
|
9
|
+
Version,
|
|
10
|
+
Method,
|
|
11
|
+
SocketAddr,
|
|
12
|
+
StatusCode,
|
|
13
|
+
)
|
|
3
14
|
from typing import (
|
|
4
15
|
Optional,
|
|
5
16
|
Any,
|
|
@@ -7,7 +18,6 @@ from typing import (
|
|
|
7
18
|
Unpack,
|
|
8
19
|
)
|
|
9
20
|
|
|
10
|
-
from rnet import Version, Method, SocketAddr, StatusCode
|
|
11
21
|
from rnet.header import HeaderMap
|
|
12
22
|
from rnet.cookie import Cookie
|
|
13
23
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|