rnet 2.4.1__tar.gz → 3.0.0rc1__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 (140) hide show
  1. {rnet-2.4.1 → rnet-3.0.0rc1}/.github/workflows/ci.yml +18 -5
  2. {rnet-2.4.1 → rnet-3.0.0rc1}/Cargo.lock +187 -168
  3. rnet-3.0.0rc1/Cargo.toml +82 -0
  4. {rnet-2.4.1 → rnet-3.0.0rc1}/PKG-INFO +29 -27
  5. {rnet-2.4.1 → rnet-3.0.0rc1}/README.md +27 -21
  6. {rnet-2.4.1 → rnet-3.0.0rc1}/pyproject.toml +15 -19
  7. {rnet-2.4.1 → rnet-3.0.0rc1}/python/README.md +2 -13
  8. {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/bench.py +6 -7
  9. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/auth.py +1 -1
  10. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/auth.py +3 -3
  11. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/basic_auth.py +2 -2
  12. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/bearer_auth.py +2 -2
  13. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/body.py +2 -2
  14. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/client.py +5 -4
  15. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/cookie.py +2 -2
  16. rnet-2.4.1/python/examples/blocking/impersonate.py → rnet-3.0.0rc1/python/examples/blocking/emulation.py +4 -7
  17. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/form.py +2 -2
  18. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/get.py +4 -2
  19. rnet-2.4.1/python/examples/blocking/ws.py → rnet-3.0.0rc1/python/examples/blocking/http1_websocket.py +5 -3
  20. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/json.py +2 -2
  21. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/multipart.py +4 -3
  22. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/proxy.py +2 -2
  23. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/query.py +2 -2
  24. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/stream.py +3 -2
  25. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/client.py +3 -3
  26. rnet-2.4.1/python/examples/impersonate.py → rnet-3.0.0rc1/python/examples/emulation.py +19 -18
  27. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/form.py +1 -1
  28. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/get.py +2 -0
  29. rnet-2.4.1/python/examples/ws.py → rnet-3.0.0rc1/python/examples/http1_websocket.py +4 -13
  30. rnet-3.0.0rc1/python/examples/http2_websocket.py +61 -0
  31. rnet-3.0.0rc1/python/examples/keylog.py +18 -0
  32. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/multipart.py +1 -1
  33. rnet-3.0.0rc1/python/examples/orig_headers.py +28 -0
  34. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/request.py +1 -1
  35. rnet-3.0.0rc1/python/rnet/__init__.py +19 -0
  36. {rnet-2.4.1 → rnet-3.0.0rc1}/python/rnet/__init__.pyi +60 -208
  37. rnet-2.4.1/python/rnet/blocking.pyi → rnet-3.0.0rc1/python/rnet/blocking.py +67 -172
  38. rnet-2.4.1/python/rnet/cookie.pyi → rnet-3.0.0rc1/python/rnet/cookie.py +56 -2
  39. rnet-3.0.0rc1/python/rnet/emulation.py +185 -0
  40. rnet-3.0.0rc1/python/rnet/exceptions.py +214 -0
  41. rnet-3.0.0rc1/python/rnet/header.py +431 -0
  42. rnet-3.0.0rc1/python/rnet/tls.py +161 -0
  43. rnet-3.0.0rc1/src/client/body.rs +181 -0
  44. rnet-3.0.0rc1/src/client/dns.rs +74 -0
  45. rnet-3.0.0rc1/src/client/future.rs +93 -0
  46. rnet-3.0.0rc1/src/client/mod.rs +1067 -0
  47. {rnet-2.4.1/src/typing → rnet-3.0.0rc1/src/client}/multipart/form.rs +0 -14
  48. rnet-3.0.0rc1/src/client/multipart/mod.rs +4 -0
  49. {rnet-2.4.1/src/typing → rnet-3.0.0rc1/src/client}/multipart/part.rs +2 -2
  50. rnet-3.0.0rc1/src/client/request.rs +214 -0
  51. {rnet-2.4.1/src/client/async_impl → rnet-3.0.0rc1/src/client}/response/http.rs +182 -102
  52. rnet-3.0.0rc1/src/client/response/mod.rs +10 -0
  53. rnet-3.0.0rc1/src/client/response/stream.rs +127 -0
  54. rnet-3.0.0rc1/src/client/response/ws/mod.rs +380 -0
  55. rnet-2.4.1/src/client/async_impl/response/ws/message.rs → rnet-3.0.0rc1/src/client/response/ws/msg.rs +31 -31
  56. rnet-2.4.1/src/typing/enums.rs → rnet-3.0.0rc1/src/emulation.rs +41 -62
  57. {rnet-2.4.1 → rnet-3.0.0rc1}/src/error.rs +29 -12
  58. rnet-3.0.0rc1/src/extractor.rs +186 -0
  59. rnet-3.0.0rc1/src/http/cookie.rs +339 -0
  60. {rnet-2.4.1/src/typing → rnet-3.0.0rc1/src/http}/header.rs +186 -110
  61. rnet-3.0.0rc1/src/http/mod.rs +31 -0
  62. {rnet-2.4.1/src/typing → rnet-3.0.0rc1/src/http}/status.rs +9 -12
  63. rnet-3.0.0rc1/src/lib.rs +247 -0
  64. {rnet-2.4.1 → rnet-3.0.0rc1}/src/macros.rs +3 -3
  65. rnet-3.0.0rc1/src/proxy.rs +152 -0
  66. rnet-3.0.0rc1/src/tls/identity.rs +48 -0
  67. rnet-3.0.0rc1/src/tls/keylog.rs +38 -0
  68. rnet-3.0.0rc1/src/tls/mod.rs +25 -0
  69. rnet-3.0.0rc1/src/tls/store.rs +76 -0
  70. rnet-3.0.0rc1/tests/cookie_test.py +120 -0
  71. rnet-2.4.1/tests/header_map_test.py → rnet-3.0.0rc1/tests/header_test.py +12 -0
  72. rnet-3.0.0rc1/tests/redirect_test.py +48 -0
  73. rnet-3.0.0rc1/tests/request_test.py +206 -0
  74. {rnet-2.4.1 → rnet-3.0.0rc1}/tests/response_test.py +43 -36
  75. rnet-3.0.0rc1/tests/tls_test.py +46 -0
  76. rnet-2.4.1/Cargo.toml +0 -57
  77. rnet-2.4.1/python/rnet/__init__.py +0 -14
  78. rnet-2.4.1/python/rnet/blocking.py +0 -1
  79. rnet-2.4.1/python/rnet/cookie.py +0 -1
  80. rnet-2.4.1/python/rnet/exceptions.py +0 -1
  81. rnet-2.4.1/python/rnet/exceptions.pyi +0 -64
  82. rnet-2.4.1/python/rnet/header.py +0 -1
  83. rnet-2.4.1/python/rnet/header.pyi +0 -103
  84. rnet-2.4.1/python/rnet/impersonate.py +0 -1
  85. rnet-2.4.1/python/rnet/impersonate.pyi +0 -147
  86. rnet-2.4.1/src/client/async_impl/mod.rs +0 -532
  87. rnet-2.4.1/src/client/async_impl/response/mod.rs +0 -7
  88. rnet-2.4.1/src/client/async_impl/response/ws/mod.rs +0 -249
  89. rnet-2.4.1/src/client/blocking/mod.rs +0 -194
  90. rnet-2.4.1/src/client/blocking/response/http.rs +0 -212
  91. rnet-2.4.1/src/client/blocking/response/mod.rs +0 -7
  92. rnet-2.4.1/src/client/blocking/response/ws.rs +0 -132
  93. rnet-2.4.1/src/client/default.rs +0 -54
  94. rnet-2.4.1/src/client/dns.rs +0 -59
  95. rnet-2.4.1/src/client/mod.rs +0 -127
  96. rnet-2.4.1/src/client/param/client.rs +0 -207
  97. rnet-2.4.1/src/client/param/mod.rs +0 -9
  98. rnet-2.4.1/src/client/param/request.rs +0 -91
  99. rnet-2.4.1/src/client/param/ws.rs +0 -120
  100. rnet-2.4.1/src/client/request_ops.rs +0 -252
  101. rnet-2.4.1/src/lib.rs +0 -129
  102. rnet-2.4.1/src/typing/body.rs +0 -49
  103. rnet-2.4.1/src/typing/cookie.rs +0 -190
  104. rnet-2.4.1/src/typing/ipaddr.rs +0 -37
  105. rnet-2.4.1/src/typing/json.rs +0 -15
  106. rnet-2.4.1/src/typing/mod.rs +0 -106
  107. rnet-2.4.1/src/typing/multipart/mod.rs +0 -7
  108. rnet-2.4.1/src/typing/proxy.rs +0 -146
  109. rnet-2.4.1/src/typing/ssl.rs +0 -9
  110. rnet-2.4.1/src/typing/stream.rs +0 -82
  111. rnet-2.4.1/tests/auth_test.py +0 -40
  112. rnet-2.4.1/tests/badssl_test.py +0 -14
  113. rnet-2.4.1/tests/client_test.py +0 -90
  114. rnet-2.4.1/tests/decompress_test.py +0 -34
  115. rnet-2.4.1/tests/request_test.py +0 -106
  116. {rnet-2.4.1 → rnet-3.0.0rc1}/.github/FUNDING.yml +0 -0
  117. {rnet-2.4.1 → rnet-3.0.0rc1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  118. {rnet-2.4.1 → rnet-3.0.0rc1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  119. {rnet-2.4.1 → rnet-3.0.0rc1}/.github/assets/capsolver.jpg +0 -0
  120. {rnet-2.4.1 → rnet-3.0.0rc1}/.github/dependabot.yml +0 -0
  121. {rnet-2.4.1 → rnet-3.0.0rc1}/.github/musl_build.sh +0 -0
  122. {rnet-2.4.1 → rnet-3.0.0rc1}/.gitignore +0 -0
  123. {rnet-2.4.1 → rnet-3.0.0rc1}/LICENSE +0 -0
  124. {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/README.md +0 -0
  125. {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/benchmark_multi.jpg +0 -0
  126. {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/benchmark_multi_threaded.jpg +0 -0
  127. {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/benchmark_results.csv +0 -0
  128. {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/requirements.txt +0 -0
  129. {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/server.py +0 -0
  130. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/basic_auth.py +0 -0
  131. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/bearer_auth.py +0 -0
  132. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/body.py +0 -0
  133. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/exceptions.py +0 -0
  134. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/header_map.py +0 -0
  135. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/json.py +0 -0
  136. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/proxy.py +0 -0
  137. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/query.py +0 -0
  138. {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/stream.py +0 -0
  139. {rnet-2.4.1 → rnet-3.0.0rc1}/python/rnet/py.typed +0 -0
  140. {rnet-2.4.1 → rnet-3.0.0rc1}/src/buffer.rs +0 -0
@@ -21,7 +21,7 @@ on:
21
21
  workflow_dispatch:
22
22
 
23
23
  env:
24
- MATURIIN_ARGS: '--interpreter python3.7 python3.8 python3.9 python3.10 python3.11 python3.12 python3.13 python3.13t python3.14'
24
+ MATURIIN_ARGS: '--find-interpreter'
25
25
 
26
26
  concurrency:
27
27
  group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
@@ -81,10 +81,12 @@ jobs:
81
81
  platform:
82
82
  - runner: ubuntu-latest
83
83
  target: x86_64
84
+ allocator: jemalloc
84
85
  apt_packages: ''
85
86
  custom_env: {}
86
87
  - runner: ubuntu-latest
87
88
  target: x86
89
+ allocator: jemalloc
88
90
  apt_packages: crossbuild-essential-i386
89
91
  custom_env:
90
92
  CC: i686-linux-gnu-gcc
@@ -92,6 +94,7 @@ jobs:
92
94
  CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER: i686-linux-gnu-g++
93
95
  - runner: ubuntu-latest
94
96
  target: aarch64
97
+ allocator: jemalloc
95
98
  apt_packages: crossbuild-essential-arm64
96
99
  custom_env:
97
100
  CC: aarch64-linux-gnu-gcc
@@ -99,6 +102,7 @@ jobs:
99
102
  CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-g++
100
103
  - runner: ubuntu-latest
101
104
  target: armv7
105
+ allocator: jemalloc
102
106
  apt_packages: crossbuild-essential-armhf
103
107
  custom_env:
104
108
  CC: arm-linux-gnueabihf-gcc
@@ -121,7 +125,7 @@ jobs:
121
125
  with:
122
126
  rust-toolchain: stable
123
127
  target: ${{ matrix.platform.target }}
124
- args: ${{ matrix.platform.target == 'x86_64' && '--release --out dist --zig' || '--release --out dist' }} ${{ env.MATURIIN_ARGS }}
128
+ args: ${{ matrix.platform.target == 'x86_64' && '--release --out dist --zig' || '--release --out dist' }} ${{ env.MATURIIN_ARGS }} --features ${{ matrix.platform.allocator }}
125
129
  sccache: 'false'
126
130
  manylinux: auto
127
131
  container: 'off'
@@ -140,17 +144,21 @@ jobs:
140
144
  platform:
141
145
  - runner: ubuntu-22.04
142
146
  target: x86_64-unknown-linux-musl
147
+ allocator: jemalloc
143
148
  - runner: ubuntu-22.04
144
149
  target: aarch64-unknown-linux-musl
150
+ allocator: jemalloc
145
151
  - runner: ubuntu-22.04
146
152
  target: armv7-unknown-linux-musleabihf
153
+ allocator: jemalloc
147
154
  - runner: ubuntu-22.04
148
155
  target: i686-unknown-linux-musl
156
+ allocator: jemalloc
149
157
  steps:
150
158
  - uses: actions/checkout@v4
151
159
  - name: Build wheels
152
160
  run:
153
- bash .github/musl_build.sh ${{ matrix.platform.target }} "${{ env.MATURIIN_ARGS }}"
161
+ bash .github/musl_build.sh ${{ matrix.platform.target }} "${{ env.MATURIIN_ARGS }}" --features "${{ matrix.platform.allocator }}"
154
162
  - name: Upload wheels
155
163
  uses: actions/upload-artifact@v4
156
164
  with:
@@ -165,12 +173,15 @@ jobs:
165
173
  platform:
166
174
  - runner: windows-latest
167
175
  target: x64
176
+ allocator: mimalloc
168
177
  python-architecture: x64
169
178
  - runner: windows-latest
170
179
  target: x86
180
+ allocator: mimalloc
171
181
  python-architecture: x86
172
182
  - runner: windows-latest
173
183
  target: aarch64
184
+ allocator: mimalloc
174
185
  steps:
175
186
  - uses: actions/checkout@v4
176
187
  - uses: actions/setup-python@v5
@@ -185,7 +196,7 @@ jobs:
185
196
  uses: PyO3/maturin-action@v1
186
197
  with:
187
198
  target: ${{ matrix.platform.target }}
188
- args: --release --out dist ${{ env.MATURIIN_ARGS }}
199
+ args: --release --out dist ${{ env.MATURIIN_ARGS }} --features ${{ matrix.platform.allocator || '' }}
189
200
  sccache: 'true'
190
201
  - name: Upload wheels
191
202
  uses: actions/upload-artifact@v4
@@ -201,8 +212,10 @@ jobs:
201
212
  platform:
202
213
  - runner: macos-13
203
214
  target: x86_64
215
+ allocator: jemalloc
204
216
  - runner: macos-14
205
217
  target: aarch64
218
+ allocator: jemalloc
206
219
  steps:
207
220
  - uses: actions/checkout@v4
208
221
  - uses: actions/setup-python@v5
@@ -216,7 +229,7 @@ jobs:
216
229
  uses: PyO3/maturin-action@v1
217
230
  with:
218
231
  target: ${{ matrix.platform.target }}
219
- args: --release --out dist ${{ env.MATURIIN_ARGS }}
232
+ args: --release --out dist ${{ env.MATURIIN_ARGS }} --features ${{ matrix.platform.allocator || '' }}
220
233
  sccache: 'true'
221
234
  - name: Upload wheels
222
235
  uses: actions/upload-artifact@v4