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 CHANGED
@@ -92,6 +92,7 @@ class V1UpdateProcessor(BaseModel):
92
92
  class V1StreamData(BaseModel):
93
93
  content: Any = None
94
94
  wait: Optional[bool] = None
95
+ user_key: Optional[str] = None
95
96
 
96
97
 
97
98
  class Message(BaseModel, Generic[T]):
@@ -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(data=data, wait=wait, logs=logs, api_key=api_key)
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.93
3
+ Version: 0.1.95
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
@@ -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=FnBJFxtaJkp-uIOs90qkJUBvOR80l2cdGnfmOIWIvVA,4058
21
- nebu/processors/processor.py,sha256=dCQ9si_P03Lw_dLQESE_TUD6ZGGTYZce28GmiyWm1Hg,16525
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.93.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
- nebu-0.1.93.dist-info/METADATA,sha256=3MTAfHaYqznKvUqtvvB_CBslT2Xnh8j1TLWz05ec8PM,1760
26
- nebu-0.1.93.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
27
- nebu-0.1.93.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
28
- nebu-0.1.93.dist-info/RECORD,,
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