nebu 0.1.57__py3-none-any.whl → 0.1.58__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.
@@ -7,7 +7,7 @@ from pydantic import BaseModel
7
7
 
8
8
  from nebu.auth import get_user_profile
9
9
  from nebu.config import GlobalConfig
10
- from nebu.meta import V1ResourceMetaRequest
10
+ from nebu.meta import V1ResourceMetaRequest, V1ResourceReference
11
11
  from nebu.processors.models import (
12
12
  V1ContainerRequest,
13
13
  V1Processor,
@@ -203,6 +203,7 @@ class Processor(Generic[InputType]):
203
203
  headers={"Authorization": f"Bearer {self.api_key}"},
204
204
  )
205
205
  patch_response.raise_for_status()
206
+ self.processor = V1Processor.model_validate(patch_response.json())
206
207
  print(f"Updated Processor {self.processor.metadata.name}")
207
208
 
208
209
  def __call__(
@@ -389,11 +390,17 @@ class Processor(Generic[InputType]):
389
390
  response.raise_for_status()
390
391
  return
391
392
 
392
- def ref(self) -> str:
393
+ def ref(self) -> V1ResourceReference:
393
394
  """
394
395
  Get the resource ref for the processor.
395
396
  """
396
- return f"{self.name}.{self.namespace}.Processor"
397
+ if not self.processor:
398
+ raise ValueError("Processor not found")
399
+ return V1ResourceReference(
400
+ name=self.processor.metadata.name,
401
+ namespace=self.processor.metadata.namespace,
402
+ kind="Processor",
403
+ )
397
404
 
398
405
  def stop_logs(self):
399
406
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nebu
3
- Version: 0.1.57
3
+ Version: 0.1.58
4
4
  Summary: A globally distributed container runtime
5
5
  Requires-Python: >=3.10.14
6
6
  Description-Content-Type: text/markdown
@@ -14,12 +14,12 @@ nebu/processors/consumer.py,sha256=q4cFKPEfMf1xIs0Y3CjUDCR35QVjr0F_hSOZUKUYc_U,3
14
14
  nebu/processors/decorate.py,sha256=f4y0BL2W07XMMVzm0GPwh7GfJ-QRioSjBofJSa7hQtg,53175
15
15
  nebu/processors/default.py,sha256=W4slJenG59rvyTlJ7gRp58eFfXcNOTT2Hfi6zzJAobI,365
16
16
  nebu/processors/models.py,sha256=y40HoW-MEzDWB2dm_tsYlUy3Nf3s6eiLC0iGO9BoNog,3956
17
- nebu/processors/processor.py,sha256=paFYsuezpcvcCPLoGV_gpRBUd0k1oEghM2sNhzA6zNo,15739
17
+ nebu/processors/processor.py,sha256=H2M7OLtWM_6YqUCFQ84Pooj0KjNf8N1-KYx0CrRX9xI,16061
18
18
  nebu/processors/remote.py,sha256=TeAIPGEMqnDIb7H1iett26IEZrBlcbPB_-DSm6jcH1E,1285
19
19
  nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
20
20
  nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
- nebu-0.1.57.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
- nebu-0.1.57.dist-info/METADATA,sha256=ZhASbZ8lUXAPcIPf3tUqzMzgjE5t8wW71UlAvTM9_sQ,1731
23
- nebu-0.1.57.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
24
- nebu-0.1.57.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
25
- nebu-0.1.57.dist-info/RECORD,,
21
+ nebu-0.1.58.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
+ nebu-0.1.58.dist-info/METADATA,sha256=uUlgtJTeotDxz1WK2HQDSHK9ieNko5I8WnWxQbr4JRg,1731
23
+ nebu-0.1.58.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
24
+ nebu-0.1.58.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
25
+ nebu-0.1.58.dist-info/RECORD,,
File without changes