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.

Files changed (100) hide show
  1. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/Cargo.lock +1 -1
  2. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/Cargo.toml +1 -1
  3. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/PKG-INFO +2 -2
  4. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/README.md +1 -1
  5. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/bench.py +12 -12
  6. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/__init__.pyi +2 -1
  7. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/blocking.py +12 -2
  8. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/FUNDING.yml +0 -0
  9. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  10. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  11. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/assets/capsolver.jpg +0 -0
  12. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/dependabot.yml +0 -0
  13. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/musl_build.sh +0 -0
  14. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.github/workflows/ci.yml +0 -0
  15. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/.gitignore +0 -0
  16. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/LICENSE +0 -0
  17. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/pyproject.toml +0 -0
  18. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/README.md +0 -0
  19. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/benchmark_multi.jpg +0 -0
  20. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/benchmark_multi_threaded.jpg +0 -0
  21. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/benchmark_results.csv +0 -0
  22. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/chart.py +0 -0
  23. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/core.py +0 -0
  24. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/requirements.txt +0 -0
  25. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/benchmark/server.py +0 -0
  26. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/auth.py +0 -0
  27. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/basic_auth.py +0 -0
  28. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/bearer_auth.py +0 -0
  29. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/auth.py +0 -0
  30. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/basic_auth.py +0 -0
  31. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/bearer_auth.py +0 -0
  32. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/body.py +0 -0
  33. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/client.py +0 -0
  34. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/cookie.py +0 -0
  35. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/emulation.py +0 -0
  36. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/form.py +0 -0
  37. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/get.py +0 -0
  38. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/json.py +0 -0
  39. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/multipart.py +0 -0
  40. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/proxy.py +0 -0
  41. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/query.py +0 -0
  42. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/blocking/stream.py +0 -0
  43. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/body.py +0 -0
  44. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/client.py +0 -0
  45. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/emulation.py +0 -0
  46. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/exceptions.py +0 -0
  47. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/form.py +0 -0
  48. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/get.py +0 -0
  49. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/header_map.py +0 -0
  50. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/http1_websocket.py +0 -0
  51. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/http2_websocket.py +0 -0
  52. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/json.py +0 -0
  53. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/keylog.py +0 -0
  54. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/multipart.py +0 -0
  55. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/orig_headers.py +0 -0
  56. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/proxy.py +0 -0
  57. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/query.py +0 -0
  58. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/request.py +0 -0
  59. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/examples/stream.py +0 -0
  60. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/__init__.py +0 -0
  61. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/cookie.py +0 -0
  62. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/emulation.py +0 -0
  63. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/exceptions.py +0 -0
  64. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/header.py +0 -0
  65. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/py.typed +0 -0
  66. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/python/rnet/tls.py +0 -0
  67. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/buffer.rs +0 -0
  68. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/body/mod.rs +0 -0
  69. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/body/multipart.rs +0 -0
  70. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/dns.rs +0 -0
  71. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/mod.rs +0 -0
  72. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/req.rs +0 -0
  73. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/future.rs +0 -0
  74. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/history.rs +0 -0
  75. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/http.rs +0 -0
  76. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/mod.rs +0 -0
  77. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/stream.rs +0 -0
  78. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/ws/cmd.rs +0 -0
  79. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/ws/mod.rs +0 -0
  80. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/client/resp/ws/msg.rs +0 -0
  81. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/emulation.rs +0 -0
  82. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/error.rs +0 -0
  83. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/extractor.rs +0 -0
  84. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/http/cookie.rs +0 -0
  85. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/http/header.rs +0 -0
  86. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/http/mod.rs +0 -0
  87. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/http/status.rs +0 -0
  88. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/lib.rs +0 -0
  89. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/macros.rs +0 -0
  90. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/proxy.rs +0 -0
  91. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/tls/identity.rs +0 -0
  92. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/tls/keylog.rs +0 -0
  93. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/tls/mod.rs +0 -0
  94. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/src/tls/store.rs +0 -0
  95. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/cookie_test.py +0 -0
  96. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/header_test.py +0 -0
  97. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/redirect_test.py +0 -0
  98. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/request_test.py +0 -0
  99. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/response_test.py +0 -0
  100. {rnet-3.0.0rc4 → rnet-3.0.0rc5}/tests/tls_test.py +0 -0
@@ -1493,7 +1493,7 @@ dependencies = [
1493
1493
 
1494
1494
  [[package]]
1495
1495
  name = "rnet"
1496
- version = "3.0.0-rc4"
1496
+ version = "3.0.0-rc5"
1497
1497
  dependencies = [
1498
1498
  "bytes",
1499
1499
  "cookie",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rnet"
3
- version = "3.0.0-rc4"
3
+ version = "3.0.0-rc5"
4
4
  description = "A blazing-fast Python HTTP client with TLS fingerprint"
5
5
  license = "Apache-2.0"
6
6
  repository = "https://github.com/0x676e67/rnet"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rnet
3
- Version: 3.0.0rc4
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.0rc4
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.0rc4
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", "-t",
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", "-o",
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", "-c",
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 ClientParams, History, Message, Request, Streamer, WebSocketRequest
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