impit 0.8.0__cp313-cp313-musllinux_1_2_x86_64.whl → 0.9.0__cp313-cp313-musllinux_1_2_x86_64.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.
impit/__init__.py CHANGED
@@ -41,6 +41,7 @@ from .impit import (
41
41
  patch,
42
42
  post,
43
43
  put,
44
+ stream,
44
45
  trace,
45
46
  )
46
47
 
@@ -87,6 +88,7 @@ __all__ = [
87
88
  'patch',
88
89
  'post',
89
90
  'put',
91
+ 'stream',
90
92
  'trace',
91
93
  ]
92
94
 
impit/impit.pyi CHANGED
@@ -1028,6 +1028,40 @@ class AsyncClient:
1028
1028
  """
1029
1029
 
1030
1030
 
1031
+ def stream(
1032
+ method: str,
1033
+ url: str,
1034
+ content: bytes | bytearray | list[int] | None = None,
1035
+ data: dict[str, str] | None = None,
1036
+ headers: dict[str, str] | None = None,
1037
+ timeout: float | None = None,
1038
+ force_http3: bool | None = None,
1039
+ follow_redirects: bool | None = None,
1040
+ max_redirects: int | None = None,
1041
+ cookie_jar: CookieJar | None = None,
1042
+ cookies: Cookies | None = None,
1043
+ proxy: str | None = None,
1044
+ ) -> AbstractContextManager[Response]:
1045
+ """Make a streaming request without creating a client instance.
1046
+
1047
+ Args:
1048
+ method: HTTP method (e.g., "get", "post")
1049
+ url: URL to request
1050
+ content: Raw content to send
1051
+ data: Form data to send in request body
1052
+ headers: HTTP headers
1053
+ timeout: Request timeout in seconds
1054
+ force_http3: Force HTTP/3 protocol
1055
+ follow_redirects: Whether to follow redirects (default: False)
1056
+ max_redirects: Maximum number of redirects to follow (default: 20)
1057
+ cookie_jar: Cookie jar to store cookies in.
1058
+ cookies: httpx-compatible cookies object.
1059
+ proxy: Proxy URL to use to make the request.
1060
+
1061
+ Returns:
1062
+ Response object
1063
+ """
1064
+
1031
1065
  def get(
1032
1066
  url: str,
1033
1067
  content: bytes | bytearray | list[int] | None = None,
@@ -1035,6 +1069,11 @@ def get(
1035
1069
  headers: dict[str, str] | None = None,
1036
1070
  timeout: float | None = None,
1037
1071
  force_http3: bool | None = None,
1072
+ follow_redirects: bool | None = None,
1073
+ max_redirects: int | None = None,
1074
+ cookie_jar: CookieJar | None = None,
1075
+ cookies: Cookies | None = None,
1076
+ proxy: str | None = None,
1038
1077
  ) -> Response:
1039
1078
  """Make a GET request without creating a client instance.
1040
1079
 
@@ -1045,6 +1084,11 @@ def get(
1045
1084
  headers: HTTP headers
1046
1085
  timeout: Request timeout in seconds
1047
1086
  force_http3: Force HTTP/3 protocol
1087
+ follow_redirects: Whether to follow redirects (default: False)
1088
+ max_redirects: Maximum number of redirects to follow (default: 20)
1089
+ cookie_jar: Cookie jar to store cookies in.
1090
+ cookies: httpx-compatible cookies object.
1091
+ proxy: Proxy URL to use to make the request.
1048
1092
 
1049
1093
  Returns:
1050
1094
  Response object
@@ -1058,6 +1102,11 @@ def post(
1058
1102
  headers: dict[str, str] | None = None,
1059
1103
  timeout: float | None = None,
1060
1104
  force_http3: bool | None = None,
1105
+ follow_redirects: bool | None = None,
1106
+ max_redirects: int | None = None,
1107
+ cookie_jar: CookieJar | None = None,
1108
+ cookies: Cookies | None = None,
1109
+ proxy: str | None = None,
1061
1110
  ) -> Response:
1062
1111
  """Make a POST request without creating a client instance.
1063
1112
 
@@ -1068,6 +1117,11 @@ def post(
1068
1117
  headers: HTTP headers
1069
1118
  timeout: Request timeout in seconds
1070
1119
  force_http3: Force HTTP/3 protocol
1120
+ follow_redirects: Whether to follow redirects (default: False)
1121
+ max_redirects: Maximum number of redirects to follow (default: 20)
1122
+ cookie_jar: Cookie jar to store cookies in.
1123
+ cookies: httpx-compatible cookies object.
1124
+ proxy: Proxy URL to use to make the request.
1071
1125
 
1072
1126
  Returns:
1073
1127
  Response object
@@ -1081,6 +1135,11 @@ def put(
1081
1135
  headers: dict[str, str] | None = None,
1082
1136
  timeout: float | None = None,
1083
1137
  force_http3: bool | None = None,
1138
+ follow_redirects: bool | None = None,
1139
+ max_redirects: int | None = None,
1140
+ cookie_jar: CookieJar | None = None,
1141
+ cookies: Cookies | None = None,
1142
+ proxy: str | None = None,
1084
1143
  ) -> Response:
1085
1144
  """Make a PUT request without creating a client instance.
1086
1145
 
@@ -1091,6 +1150,11 @@ def put(
1091
1150
  headers: HTTP headers
1092
1151
  timeout: Request timeout in seconds
1093
1152
  force_http3: Force HTTP/3 protocol
1153
+ follow_redirects: Whether to follow redirects (default: False)
1154
+ max_redirects: Maximum number of redirects to follow (default: 20)
1155
+ cookie_jar: Cookie jar to store cookies in.
1156
+ cookies: httpx-compatible cookies object.
1157
+ proxy: Proxy URL to use to make the request.
1094
1158
 
1095
1159
  Returns:
1096
1160
  Response object
@@ -1104,6 +1168,11 @@ def patch(
1104
1168
  headers: dict[str, str] | None = None,
1105
1169
  timeout: float | None = None,
1106
1170
  force_http3: bool | None = None,
1171
+ follow_redirects: bool | None = None,
1172
+ max_redirects: int | None = None,
1173
+ cookie_jar: CookieJar | None = None,
1174
+ cookies: Cookies | None = None,
1175
+ proxy: str | None = None,
1107
1176
  ) -> Response:
1108
1177
  """Make a PATCH request without creating a client instance.
1109
1178
 
@@ -1114,6 +1183,11 @@ def patch(
1114
1183
  headers: HTTP headers
1115
1184
  timeout: Request timeout in seconds
1116
1185
  force_http3: Force HTTP/3 protocol
1186
+ follow_redirects: Whether to follow redirects (default: False)
1187
+ max_redirects: Maximum number of redirects to follow (default: 20)
1188
+ cookie_jar: Cookie jar to store cookies in.
1189
+ cookies: httpx-compatible cookies object.
1190
+ proxy: Proxy URL to use to make the request.
1117
1191
 
1118
1192
  Returns:
1119
1193
  Response object
@@ -1127,6 +1201,11 @@ def delete(
1127
1201
  headers: dict[str, str] | None = None,
1128
1202
  timeout: float | None = None,
1129
1203
  force_http3: bool | None = None,
1204
+ follow_redirects: bool | None = None,
1205
+ max_redirects: int | None = None,
1206
+ cookie_jar: CookieJar | None = None,
1207
+ cookies: Cookies | None = None,
1208
+ proxy: str | None = None,
1130
1209
  ) -> Response:
1131
1210
  """Make a DELETE request without creating a client instance.
1132
1211
 
@@ -1137,6 +1216,11 @@ def delete(
1137
1216
  headers: HTTP headers
1138
1217
  timeout: Request timeout in seconds
1139
1218
  force_http3: Force HTTP/3 protocol
1219
+ follow_redirects: Whether to follow redirects (default: False)
1220
+ max_redirects: Maximum number of redirects to follow (default: 20)
1221
+ cookie_jar: Cookie jar to store cookies in.
1222
+ cookies: httpx-compatible cookies object.
1223
+ proxy: Proxy URL to use to make the request.
1140
1224
 
1141
1225
  Returns:
1142
1226
  Response object
@@ -1150,6 +1234,11 @@ def head(
1150
1234
  headers: dict[str, str] | None = None,
1151
1235
  timeout: float | None = None,
1152
1236
  force_http3: bool | None = None,
1237
+ follow_redirects: bool | None = None,
1238
+ max_redirects: int | None = None,
1239
+ cookie_jar: CookieJar | None = None,
1240
+ cookies: Cookies | None = None,
1241
+ proxy: str | None = None,
1153
1242
  ) -> Response:
1154
1243
  """Make a HEAD request without creating a client instance.
1155
1244
 
@@ -1160,6 +1249,11 @@ def head(
1160
1249
  headers: HTTP headers
1161
1250
  timeout: Request timeout in seconds
1162
1251
  force_http3: Force HTTP/3 protocol
1252
+ follow_redirects: Whether to follow redirects (default: False)
1253
+ max_redirects: Maximum number of redirects to follow (default: 20)
1254
+ cookie_jar: Cookie jar to store cookies in.
1255
+ cookies: httpx-compatible cookies object.
1256
+ proxy: Proxy URL to use to make the request.
1163
1257
 
1164
1258
  Returns:
1165
1259
  Response object
@@ -1173,6 +1267,11 @@ def options(
1173
1267
  headers: dict[str, str] | None = None,
1174
1268
  timeout: float | None = None,
1175
1269
  force_http3: bool | None = None,
1270
+ follow_redirects: bool | None = None,
1271
+ max_redirects: int | None = None,
1272
+ cookie_jar: CookieJar | None = None,
1273
+ cookies: Cookies | None = None,
1274
+ proxy: str | None = None,
1176
1275
  ) -> Response:
1177
1276
  """Make an OPTIONS request without creating a client instance.
1178
1277
 
@@ -1183,6 +1282,11 @@ def options(
1183
1282
  headers: HTTP headers
1184
1283
  timeout: Request timeout in seconds (overrides default timeout)
1185
1284
  force_http3: Force HTTP/3 protocol
1285
+ follow_redirects: Whether to follow redirects (default: False)
1286
+ max_redirects: Maximum number of redirects to follow (default: 20)
1287
+ cookie_jar: Cookie jar to store cookies in.
1288
+ cookies: httpx-compatible cookies object.
1289
+ proxy: Proxy URL to use to make the request.
1186
1290
  """
1187
1291
 
1188
1292
 
@@ -1193,6 +1297,11 @@ def trace(
1193
1297
  headers: dict[str, str] | None = None,
1194
1298
  timeout: float | None = None,
1195
1299
  force_http3: bool | None = None,
1300
+ follow_redirects: bool | None = None,
1301
+ max_redirects: int | None = None,
1302
+ cookie_jar: CookieJar | None = None,
1303
+ cookies: Cookies | None = None,
1304
+ proxy: str | None = None,
1196
1305
  ) -> Response:
1197
1306
  """Make a TRACE request without creating a client instance.
1198
1307
 
@@ -1203,4 +1312,9 @@ def trace(
1203
1312
  headers: HTTP headers
1204
1313
  timeout: Request timeout in seconds (overrides default timeout)
1205
1314
  force_http3: Force HTTP/3 protocol
1315
+ follow_redirects: Whether to follow redirects (default: False)
1316
+ max_redirects: Maximum number of redirects to follow (default: 20)
1317
+ cookie_jar: Cookie jar to store cookies in.
1318
+ cookies: httpx-compatible cookies object.
1319
+ proxy: Proxy URL to use to make the request.
1206
1320
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: impit
3
- Version: 0.8.0
3
+ Version: 0.9.0
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -0,0 +1,9 @@
1
+ impit-0.9.0.dist-info/METADATA,sha256=rUem-pBLg6yAp-5ARgqksLUOut5yrVmou21VKAv3Qy0,2833
2
+ impit-0.9.0.dist-info/WHEEL,sha256=k_XiDtlLA7dbYGdvJSsIA4CTI9KZm58eaZX7iYUYBGQ,108
3
+ impit.libs/libgcc_s-98a1ef30.so.1,sha256=XOVRhHznCIpbSdhFoozhla-OfRqBtXftKPQ4cSMKjrs,433441
4
+ impit/__init__.py,sha256=uZsD0XMFOt7QwVUgNcnVQkDF85y9n5slxoxR0wim7ug,1664
5
+ impit/cookies.py,sha256=bfNPkMk2Y0bG-RqqMMJxIfvCMZp_fDclYAnSlsCwkIg,7009
6
+ impit/impit.cpython-313-x86_64-linux-musl.so,sha256=UlbcfPotbcezKVMCglRUniWlPDVXd8go_hfY75MGhBU,14832353
7
+ impit/impit.pyi,sha256=IxLCuSkx3mHQcwcSS65lveoM5QYvMeJcU-Mhhdelyng,45730
8
+ impit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ impit-0.9.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: maturin (1.9.6)
2
+ Generator: maturin (1.10.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp313-cp313-musllinux_1_2_x86_64
@@ -1,9 +0,0 @@
1
- impit-0.8.0.dist-info/METADATA,sha256=7p2Z-gsgaIWC5nu-s4kfZXeFNOGQ15c2k333rwUATnc,2833
2
- impit-0.8.0.dist-info/WHEEL,sha256=NGpe31VxD2JLU5mFNU4WdPVHwRnOs_GNM-ErHSDpx_E,107
3
- impit.libs/libgcc_s-98a1ef30.so.1,sha256=XOVRhHznCIpbSdhFoozhla-OfRqBtXftKPQ4cSMKjrs,433441
4
- impit/__init__.py,sha256=4xyRTEr58yC1QvHGe_gmTvKbKDX2iLjPQxNevetIXw0,1638
5
- impit/cookies.py,sha256=bfNPkMk2Y0bG-RqqMMJxIfvCMZp_fDclYAnSlsCwkIg,7009
6
- impit/impit.cpython-313-x86_64-linux-musl.so,sha256=PoTyaX2WJ_b9uRpYJ8BziKbp-CKEQvQ87zScDyGYxhw,14840537
7
- impit/impit.pyi,sha256=HtqVh6mtue9OZGVAr78RLhDEOGhWgum9qPakoZeisag,40638
8
- impit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- impit-0.8.0.dist-info/RECORD,,