rnet 3.0.0rc3__tar.gz → 3.0.0rc4__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 (110) hide show
  1. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/Cargo.lock +36 -36
  2. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/Cargo.toml +7 -7
  3. rnet-3.0.0rc4/LICENSE +201 -0
  4. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/PKG-INFO +45 -46
  5. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/README.md +43 -44
  6. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/pyproject.toml +1 -1
  7. rnet-3.0.0rc4/python/benchmark/bench.py +126 -0
  8. rnet-3.0.0rc4/python/benchmark/benchmark_multi.jpg +0 -0
  9. rnet-3.0.0rc4/python/benchmark/benchmark_multi_threaded.jpg +0 -0
  10. rnet-3.0.0rc4/python/benchmark/benchmark_results.csv +235 -0
  11. rnet-3.0.0rc4/python/benchmark/chart.py +162 -0
  12. rnet-3.0.0rc4/python/benchmark/core.py +291 -0
  13. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/auth.py +0 -1
  14. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/auth.py +0 -1
  15. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/client.py +2 -25
  16. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/emulation.py +1 -2
  17. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/multipart.py +0 -1
  18. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/client.py +2 -2
  19. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/emulation.py +0 -1
  20. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/exceptions.py +0 -1
  21. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/form.py +0 -1
  22. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/keylog.py +2 -1
  23. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/multipart.py +0 -1
  24. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/request.py +0 -1
  25. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/__init__.py +1 -3
  26. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/__init__.pyi +797 -614
  27. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/blocking.py +216 -272
  28. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/cookie.py +15 -5
  29. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/emulation.py +6 -2
  30. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/exceptions.py +17 -13
  31. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/header.py +17 -3
  32. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/tls.py +5 -3
  33. rnet-3.0.0rc3/src/client/body.rs → rnet-3.0.0rc4/src/client/body/mod.rs +13 -39
  34. rnet-3.0.0rc4/src/client/body/multipart.rs +155 -0
  35. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/client/mod.rs +10 -19
  36. rnet-3.0.0rc3/src/client/request.rs → rnet-3.0.0rc4/src/client/req.rs +39 -0
  37. {rnet-3.0.0rc3/src/client/response → rnet-3.0.0rc4/src/client/resp}/future.rs +8 -13
  38. {rnet-3.0.0rc3/src/client/response → rnet-3.0.0rc4/src/client/resp}/history.rs +1 -1
  39. {rnet-3.0.0rc3/src/client/response → rnet-3.0.0rc4/src/client/resp}/http.rs +38 -44
  40. {rnet-3.0.0rc3/src/client/response → rnet-3.0.0rc4/src/client/resp}/stream.rs +3 -3
  41. rnet-3.0.0rc4/src/client/resp/ws/cmd.rs +175 -0
  42. {rnet-3.0.0rc3/src/client/response → rnet-3.0.0rc4/src/client/resp}/ws/mod.rs +32 -12
  43. {rnet-3.0.0rc3/src/client/response → rnet-3.0.0rc4/src/client/resp}/ws/msg.rs +9 -12
  44. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/error.rs +1 -2
  45. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/extractor.rs +1 -1
  46. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/http/cookie.rs +14 -21
  47. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/http/header.rs +10 -10
  48. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/lib.rs +7 -6
  49. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/proxy.rs +1 -1
  50. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/tests/request_test.py +2 -1
  51. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/tests/response_test.py +1 -1
  52. rnet-3.0.0rc3/LICENSE +0 -674
  53. rnet-3.0.0rc3/python/README.md +0 -36
  54. rnet-3.0.0rc3/python/benchmark/bench.py +0 -452
  55. rnet-3.0.0rc3/python/benchmark/benchmark_multi.jpg +0 -0
  56. rnet-3.0.0rc3/python/benchmark/benchmark_multi_threaded.jpg +0 -0
  57. rnet-3.0.0rc3/python/benchmark/benchmark_results.csv +0 -235
  58. rnet-3.0.0rc3/src/client/multipart/form.rs +0 -30
  59. rnet-3.0.0rc3/src/client/multipart/mod.rs +0 -4
  60. rnet-3.0.0rc3/src/client/multipart/part.rs +0 -104
  61. rnet-3.0.0rc3/src/client/response/ws/cmd.rs +0 -158
  62. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/.github/FUNDING.yml +0 -0
  63. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  64. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  65. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/.github/assets/capsolver.jpg +0 -0
  66. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/.github/dependabot.yml +0 -0
  67. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/.github/musl_build.sh +0 -0
  68. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/.github/workflows/ci.yml +0 -0
  69. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/.gitignore +0 -0
  70. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/benchmark/README.md +0 -0
  71. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/benchmark/requirements.txt +0 -0
  72. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/benchmark/server.py +0 -0
  73. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/basic_auth.py +0 -0
  74. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/bearer_auth.py +0 -0
  75. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/basic_auth.py +0 -0
  76. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/bearer_auth.py +0 -0
  77. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/body.py +0 -0
  78. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/cookie.py +0 -0
  79. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/form.py +0 -0
  80. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/get.py +0 -0
  81. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/json.py +0 -0
  82. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/proxy.py +0 -0
  83. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/query.py +0 -0
  84. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/blocking/stream.py +0 -0
  85. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/body.py +0 -0
  86. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/get.py +0 -0
  87. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/header_map.py +0 -0
  88. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/http1_websocket.py +0 -0
  89. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/http2_websocket.py +0 -0
  90. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/json.py +0 -0
  91. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/orig_headers.py +0 -0
  92. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/proxy.py +0 -0
  93. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/query.py +0 -0
  94. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/examples/stream.py +0 -0
  95. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/python/rnet/py.typed +0 -0
  96. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/buffer.rs +0 -0
  97. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/client/dns.rs +0 -0
  98. {rnet-3.0.0rc3/src/client/response → rnet-3.0.0rc4/src/client/resp}/mod.rs +0 -0
  99. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/emulation.rs +0 -0
  100. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/http/mod.rs +0 -0
  101. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/http/status.rs +0 -0
  102. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/macros.rs +0 -0
  103. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/tls/identity.rs +0 -0
  104. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/tls/keylog.rs +0 -0
  105. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/tls/mod.rs +0 -0
  106. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/src/tls/store.rs +0 -0
  107. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/tests/cookie_test.py +0 -0
  108. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/tests/header_test.py +0 -0
  109. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/tests/redirect_test.py +0 -0
  110. {rnet-3.0.0rc3 → rnet-3.0.0rc4}/tests/tls_test.py +0 -0
@@ -210,9 +210,9 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
210
210
 
211
211
  [[package]]
212
212
  name = "cc"
213
- version = "1.2.35"
213
+ version = "1.2.36"
214
214
  source = "registry+https://github.com/rust-lang/crates.io-index"
215
- checksum = "590f9024a68a8c40351881787f1934dc11afd69090f5edb6831464694d836ea3"
215
+ checksum = "5252b3d2648e5eedbc1a6f501e3c795e07025c1e93bbf8bbdd6eef7f447a6d54"
216
216
  dependencies = [
217
217
  "find-msvc-tools",
218
218
  "jobserver",
@@ -444,9 +444,9 @@ dependencies = [
444
444
 
445
445
  [[package]]
446
446
  name = "find-msvc-tools"
447
- version = "0.1.0"
447
+ version = "0.1.1"
448
448
  source = "registry+https://github.com/rust-lang/crates.io-index"
449
- checksum = "e178e4fba8a2726903f6ba98a6d221e76f9c12c650d5dc0e6afdc50677b49650"
449
+ checksum = "7fd99930f64d146689264c637b5af2f0233a933bef0d8570e2526bf9e083192d"
450
450
 
451
451
  [[package]]
452
452
  name = "flate2"
@@ -986,9 +986,9 @@ dependencies = [
986
986
 
987
987
  [[package]]
988
988
  name = "js-sys"
989
- version = "0.3.77"
989
+ version = "0.3.78"
990
990
  source = "registry+https://github.com/rust-lang/crates.io-index"
991
- checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
991
+ checksum = "0c0b063578492ceec17683ef2f8c5e89121fbd0b172cbc280635ab7567db2738"
992
992
  dependencies = [
993
993
  "once_cell",
994
994
  "wasm-bindgen",
@@ -1044,9 +1044,9 @@ dependencies = [
1044
1044
 
1045
1045
  [[package]]
1046
1046
  name = "log"
1047
- version = "0.4.27"
1047
+ version = "0.4.28"
1048
1048
  source = "registry+https://github.com/rust-lang/crates.io-index"
1049
- checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
1049
+ checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432"
1050
1050
 
1051
1051
  [[package]]
1052
1052
  name = "loom"
@@ -1304,9 +1304,9 @@ dependencies = [
1304
1304
 
1305
1305
  [[package]]
1306
1306
  name = "pyo3"
1307
- version = "0.25.1"
1307
+ version = "0.26.0"
1308
1308
  source = "registry+https://github.com/rust-lang/crates.io-index"
1309
- checksum = "8970a78afe0628a3e3430376fc5fd76b6b45c4d43360ffd6cdd40bdde72b682a"
1309
+ checksum = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383"
1310
1310
  dependencies = [
1311
1311
  "indexmap",
1312
1312
  "indoc",
@@ -1323,9 +1323,9 @@ dependencies = [
1323
1323
 
1324
1324
  [[package]]
1325
1325
  name = "pyo3-async-runtimes"
1326
- version = "0.25.0"
1326
+ version = "0.26.0"
1327
1327
  source = "registry+https://github.com/rust-lang/crates.io-index"
1328
- checksum = "d73cc6b1b7d8b3cef02101d37390dbdfe7e450dfea14921cae80a9534ba59ef2"
1328
+ checksum = "e6ee6d4cb3e8d5b925f5cdb38da183e0ff18122eb2048d4041c9e7034d026e23"
1329
1329
  dependencies = [
1330
1330
  "async-channel",
1331
1331
  "futures",
@@ -1337,20 +1337,19 @@ dependencies = [
1337
1337
 
1338
1338
  [[package]]
1339
1339
  name = "pyo3-build-config"
1340
- version = "0.25.1"
1340
+ version = "0.26.0"
1341
1341
  source = "registry+https://github.com/rust-lang/crates.io-index"
1342
- checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598"
1342
+ checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f"
1343
1343
  dependencies = [
1344
- "once_cell",
1345
1344
  "python3-dll-a",
1346
1345
  "target-lexicon",
1347
1346
  ]
1348
1347
 
1349
1348
  [[package]]
1350
1349
  name = "pyo3-ffi"
1351
- version = "0.25.1"
1350
+ version = "0.26.0"
1352
1351
  source = "registry+https://github.com/rust-lang/crates.io-index"
1353
- checksum = "7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c"
1352
+ checksum = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105"
1354
1353
  dependencies = [
1355
1354
  "libc",
1356
1355
  "pyo3-build-config",
@@ -1358,9 +1357,9 @@ dependencies = [
1358
1357
 
1359
1358
  [[package]]
1360
1359
  name = "pyo3-macros"
1361
- version = "0.25.1"
1360
+ version = "0.26.0"
1362
1361
  source = "registry+https://github.com/rust-lang/crates.io-index"
1363
- checksum = "a8725c0a622b374d6cb051d11a0983786448f7785336139c3c94f5aa6bef7e50"
1362
+ checksum = "2e64eb489f22fe1c95911b77c44cc41e7c19f3082fc81cce90f657cdc42ffded"
1364
1363
  dependencies = [
1365
1364
  "proc-macro2",
1366
1365
  "pyo3-macros-backend",
@@ -1370,9 +1369,9 @@ dependencies = [
1370
1369
 
1371
1370
  [[package]]
1372
1371
  name = "pyo3-macros-backend"
1373
- version = "0.25.1"
1372
+ version = "0.26.0"
1374
1373
  source = "registry+https://github.com/rust-lang/crates.io-index"
1375
- checksum = "4109984c22491085343c05b0dbc54ddc405c3cf7b4374fc533f5c3313a572ccc"
1374
+ checksum = "100246c0ecf400b475341b8455a9213344569af29a3c841d29270e53102e0fcf"
1376
1375
  dependencies = [
1377
1376
  "heck",
1378
1377
  "proc-macro2",
@@ -1494,7 +1493,7 @@ dependencies = [
1494
1493
 
1495
1494
  [[package]]
1496
1495
  name = "rnet"
1497
- version = "3.0.0-rc3"
1496
+ version = "3.0.0-rc4"
1498
1497
  dependencies = [
1499
1498
  "bytes",
1500
1499
  "cookie",
@@ -2194,21 +2193,22 @@ dependencies = [
2194
2193
 
2195
2194
  [[package]]
2196
2195
  name = "wasm-bindgen"
2197
- version = "0.2.100"
2196
+ version = "0.2.101"
2198
2197
  source = "registry+https://github.com/rust-lang/crates.io-index"
2199
- checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
2198
+ checksum = "7e14915cadd45b529bb8d1f343c4ed0ac1de926144b746e2710f9cd05df6603b"
2200
2199
  dependencies = [
2201
2200
  "cfg-if",
2202
2201
  "once_cell",
2203
2202
  "rustversion",
2204
2203
  "wasm-bindgen-macro",
2204
+ "wasm-bindgen-shared",
2205
2205
  ]
2206
2206
 
2207
2207
  [[package]]
2208
2208
  name = "wasm-bindgen-backend"
2209
- version = "0.2.100"
2209
+ version = "0.2.101"
2210
2210
  source = "registry+https://github.com/rust-lang/crates.io-index"
2211
- checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
2211
+ checksum = "e28d1ba982ca7923fd01448d5c30c6864d0a14109560296a162f80f305fb93bb"
2212
2212
  dependencies = [
2213
2213
  "bumpalo",
2214
2214
  "log",
@@ -2220,9 +2220,9 @@ dependencies = [
2220
2220
 
2221
2221
  [[package]]
2222
2222
  name = "wasm-bindgen-macro"
2223
- version = "0.2.100"
2223
+ version = "0.2.101"
2224
2224
  source = "registry+https://github.com/rust-lang/crates.io-index"
2225
- checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
2225
+ checksum = "7c3d463ae3eff775b0c45df9da45d68837702ac35af998361e2c84e7c5ec1b0d"
2226
2226
  dependencies = [
2227
2227
  "quote",
2228
2228
  "wasm-bindgen-macro-support",
@@ -2230,9 +2230,9 @@ dependencies = [
2230
2230
 
2231
2231
  [[package]]
2232
2232
  name = "wasm-bindgen-macro-support"
2233
- version = "0.2.100"
2233
+ version = "0.2.101"
2234
2234
  source = "registry+https://github.com/rust-lang/crates.io-index"
2235
- checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
2235
+ checksum = "7bb4ce89b08211f923caf51d527662b75bdc9c9c7aab40f86dcb9fb85ac552aa"
2236
2236
  dependencies = [
2237
2237
  "proc-macro2",
2238
2238
  "quote",
@@ -2243,9 +2243,9 @@ dependencies = [
2243
2243
 
2244
2244
  [[package]]
2245
2245
  name = "wasm-bindgen-shared"
2246
- version = "0.2.100"
2246
+ version = "0.2.101"
2247
2247
  source = "registry+https://github.com/rust-lang/crates.io-index"
2248
- checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
2248
+ checksum = "f143854a3b13752c6950862c906306adb27c7e839f7414cec8fea35beab624c1"
2249
2249
  dependencies = [
2250
2250
  "unicode-ident",
2251
2251
  ]
@@ -2629,9 +2629,9 @@ checksum = "052283831dbae3d879dc7f51f3d92703a316ca49f91540417d38591826127814"
2629
2629
 
2630
2630
  [[package]]
2631
2631
  name = "wreq"
2632
- version = "6.0.0-rc.13"
2632
+ version = "6.0.0-rc.14"
2633
2633
  source = "registry+https://github.com/rust-lang/crates.io-index"
2634
- checksum = "d060f55257ac26b82db150912c456c002d403e35bd36e0ef6203ff43e34b5a08"
2634
+ checksum = "6972cef8f4dd65493b83be71541037b69e895c79b6a14585871dd170adf69804"
2635
2635
  dependencies = [
2636
2636
  "ahash",
2637
2637
  "boring2",
@@ -2809,9 +2809,9 @@ dependencies = [
2809
2809
 
2810
2810
  [[package]]
2811
2811
  name = "zstd-sys"
2812
- version = "2.0.15+zstd.1.5.7"
2812
+ version = "2.0.16+zstd.1.5.7"
2813
2813
  source = "registry+https://github.com/rust-lang/crates.io-index"
2814
- checksum = "eb81183ddd97d0c74cedf1d50d85c8d08c1b8b68ee863bdee9e706eedba1a237"
2814
+ checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748"
2815
2815
  dependencies = [
2816
2816
  "cc",
2817
2817
  "pkg-config",
@@ -1,12 +1,12 @@
1
1
  [package]
2
2
  name = "rnet"
3
- version = "3.0.0-rc3"
3
+ version = "3.0.0-rc4"
4
4
  description = "A blazing-fast Python HTTP client with TLS fingerprint"
5
- edition = "2024"
6
- rust-version = "1.85.0"
7
- license = "GPL-3.0"
5
+ license = "Apache-2.0"
8
6
  repository = "https://github.com/0x676e67/rnet"
9
7
  authors = ["0x676e67 <gngppz@gmail.com>"]
8
+ edition = "2024"
9
+ rust-version = "1.85.0"
10
10
  readme = "README.md"
11
11
 
12
12
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -25,13 +25,13 @@ abi3 = ["pyo3/abi3-py311"]
25
25
 
26
26
  [dependencies]
27
27
  tokio = "1.47.1"
28
- pyo3 = { version = "0.25.1", features = [
28
+ pyo3 = { version = "0.26.0", features = [
29
29
  "indexmap",
30
30
  "extension-module",
31
31
  "multiple-pymethods",
32
32
  "generate-import-lib",
33
33
  ] }
34
- pyo3-async-runtimes = { version = "0.25.0", features = [
34
+ pyo3-async-runtimes = { version = "0.26.0", features = [
35
35
  "tokio-runtime",
36
36
  "unstable-streams",
37
37
  ] }
@@ -42,7 +42,7 @@ bytes = "1.10.1"
42
42
  futures-util = { version = "0.3.31", default-features = false }
43
43
  http = "1"
44
44
  http-body-util = "0.1.3"
45
- wreq = { version = "6.0.0-rc.13", features = [
45
+ wreq = { version = "6.0.0-rc.14", features = [
46
46
  "json",
47
47
  "socks",
48
48
  "stream",
rnet-3.0.0rc4/LICENSE ADDED
@@ -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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rnet
3
- Version: 3.0.0rc3
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: GPL-3.0
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 **TLS/HTTP2** signatures, and powered by [wreq](https://github.com/0x676e67/wreq) for high performance.
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
- This asynchronous example demonstrates how to make a simple GET request using the `rnet` library. So you need install `rnet` and run the following code:
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.0rc3
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. Install environment
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
- ```bash
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
- 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).
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
- - Musllinux
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
- - Manylinux
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
- ## Documentation
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
- | **Browser** | **Versions** |
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
- ## Contributing
179
+ ## Contribution
177
180
 
178
- If you would like to submit your contribution, please open a [Pull Request](https://github.com/0x676e67/rnet/pulls).
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
-