nebu 0.1.93__py3-none-any.whl → 0.1.95__py3-none-any.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.
- nebu/processors/models.py +1 -0
- nebu/processors/processor.py +6 -1
- {nebu-0.1.93.dist-info → nebu-0.1.95.dist-info}/METADATA +1 -1
- {nebu-0.1.93.dist-info → nebu-0.1.95.dist-info}/RECORD +7 -7
- {nebu-0.1.93.dist-info → nebu-0.1.95.dist-info}/WHEEL +0 -0
- {nebu-0.1.93.dist-info → nebu-0.1.95.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.93.dist-info → nebu-0.1.95.dist-info}/top_level.txt +0 -0
nebu/processors/models.py
CHANGED
nebu/processors/processor.py
CHANGED
@@ -214,11 +214,14 @@ class Processor(Generic[InputType, OutputType]):
|
|
214
214
|
wait: bool = False,
|
215
215
|
logs: bool = False,
|
216
216
|
api_key: Optional[str] = None,
|
217
|
+
user_key: Optional[str] = None,
|
217
218
|
) -> OutputType | Dict[str, Any] | None:
|
218
219
|
"""
|
219
220
|
Allows the Processor instance to be called like a function, sending data.
|
220
221
|
"""
|
221
|
-
return self.send(
|
222
|
+
return self.send(
|
223
|
+
data=data, wait=wait, logs=logs, api_key=api_key, user_key=user_key
|
224
|
+
)
|
222
225
|
|
223
226
|
def send(
|
224
227
|
self,
|
@@ -226,6 +229,7 @@ class Processor(Generic[InputType, OutputType]):
|
|
226
229
|
wait: bool = False,
|
227
230
|
logs: bool = False,
|
228
231
|
api_key: Optional[str] = None,
|
232
|
+
user_key: Optional[str] = None,
|
229
233
|
) -> OutputType | Dict[str, Any] | None:
|
230
234
|
"""
|
231
235
|
Send data to the processor and optionally stream logs in the background.
|
@@ -250,6 +254,7 @@ class Processor(Generic[InputType, OutputType]):
|
|
250
254
|
stream_data = V1StreamData(
|
251
255
|
content=data,
|
252
256
|
wait=wait,
|
257
|
+
user_key=user_key,
|
253
258
|
)
|
254
259
|
response = requests.post(
|
255
260
|
messages_url,
|
@@ -17,12 +17,12 @@ nebu/processors/consumer.py,sha256=j6iKF_wc8RUNKrFqjB5keUX-Gj9hGZUbmAjEyTm-Oj0,5
|
|
17
17
|
nebu/processors/consumer_process_worker.py,sha256=h--eNFKaLbUayxn88mB8oGGdrU2liE1dnwm_TPlewX8,36960
|
18
18
|
nebu/processors/decorate.py,sha256=pGA0m8cxTnEu7ullKTaAgjf_FFP5RhRqBnQnsdSwtJs,55476
|
19
19
|
nebu/processors/default.py,sha256=W4slJenG59rvyTlJ7gRp58eFfXcNOTT2Hfi6zzJAobI,365
|
20
|
-
nebu/processors/models.py,sha256=
|
21
|
-
nebu/processors/processor.py,sha256=
|
20
|
+
nebu/processors/models.py,sha256=g4B1t6Rgoy-NUEHBLeQc0EENzHXLDlWSio8Muv7cTDU,4093
|
21
|
+
nebu/processors/processor.py,sha256=xxduD632g_2lBhAF2tZ3g0aoZJFgbfNwrDgtOAio0Is,16677
|
22
22
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
23
23
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
|
-
nebu-0.1.
|
25
|
-
nebu-0.1.
|
26
|
-
nebu-0.1.
|
27
|
-
nebu-0.1.
|
28
|
-
nebu-0.1.
|
24
|
+
nebu-0.1.95.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
25
|
+
nebu-0.1.95.dist-info/METADATA,sha256=BoGdysyJ_sBHSe0GX2ZexszO9SdxRrfYkhMPxyOcqH0,1760
|
26
|
+
nebu-0.1.95.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
|
27
|
+
nebu-0.1.95.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
28
|
+
nebu-0.1.95.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|