nebu 0.1.63__py3-none-any.whl → 0.1.65__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/__init__.py +2 -0
- nebu/namespaces/models.py +5 -1
- nebu/namespaces/namespace.py +4 -7
- {nebu-0.1.63.dist-info → nebu-0.1.65.dist-info}/METADATA +1 -1
- {nebu-0.1.63.dist-info → nebu-0.1.65.dist-info}/RECORD +8 -8
- {nebu-0.1.63.dist-info → nebu-0.1.65.dist-info}/WHEEL +0 -0
- {nebu-0.1.63.dist-info → nebu-0.1.65.dist-info}/licenses/LICENSE +0 -0
- {nebu-0.1.63.dist-info → nebu-0.1.65.dist-info}/top_level.txt +0 -0
nebu/__init__.py
CHANGED
@@ -10,6 +10,8 @@ from .containers.container import Container
|
|
10
10
|
from .containers.models import *
|
11
11
|
from .data import *
|
12
12
|
from .meta import *
|
13
|
+
from .namespaces.models import *
|
14
|
+
from .namespaces.namespace import *
|
13
15
|
from .processors.decorate import *
|
14
16
|
from .processors.models import *
|
15
17
|
from .processors.processor import *
|
nebu/namespaces/models.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
from typing import Dict, Optional
|
1
|
+
from typing import Dict, List, Optional
|
2
2
|
|
3
3
|
from pydantic import BaseModel, Field
|
4
4
|
|
@@ -18,3 +18,7 @@ class V1NamespaceRequest(BaseModel):
|
|
18
18
|
class V1Namespace(BaseModel):
|
19
19
|
kind: str = Field(default="Namespace")
|
20
20
|
metadata: V1ResourceMeta
|
21
|
+
|
22
|
+
|
23
|
+
class V1Namespaces(BaseModel):
|
24
|
+
namespaces: List[V1Namespace]
|
nebu/namespaces/namespace.py
CHANGED
@@ -1,20 +1,16 @@
|
|
1
1
|
from typing import Dict, List, Optional
|
2
2
|
|
3
3
|
import requests
|
4
|
-
from pydantic import BaseModel
|
5
4
|
|
6
5
|
from nebu.config import GlobalConfig
|
7
6
|
from nebu.namespaces.models import (
|
8
7
|
V1Namespace,
|
9
8
|
V1NamespaceMetaRequest,
|
10
9
|
V1NamespaceRequest,
|
10
|
+
V1Namespaces,
|
11
11
|
)
|
12
12
|
|
13
13
|
|
14
|
-
class V1Namespaces(BaseModel):
|
15
|
-
namespaces: List[V1Namespace]
|
16
|
-
|
17
|
-
|
18
14
|
class Namespace:
|
19
15
|
"""
|
20
16
|
A class for managing Namespace instances.
|
@@ -46,8 +42,9 @@ class Namespace:
|
|
46
42
|
self.namespaces_url, headers={"Authorization": f"Bearer {self.api_key}"}
|
47
43
|
)
|
48
44
|
response.raise_for_status()
|
49
|
-
|
50
|
-
|
45
|
+
resp_json = response.json()
|
46
|
+
print(resp_json)
|
47
|
+
existing_namespaces = V1Namespaces.model_validate(resp_json)
|
51
48
|
self.namespace: Optional[V1Namespace] = next(
|
52
49
|
(
|
53
50
|
namespace_val
|
@@ -1,4 +1,4 @@
|
|
1
|
-
nebu/__init__.py,sha256=
|
1
|
+
nebu/__init__.py,sha256=xNtWiN29MJZK_WBEUP-9hDmlkfLxoASVI-f4tNTXO58,454
|
2
2
|
nebu/auth.py,sha256=N_v6SPFD9HU_UoRDTaouH03g2Hmo9C-xxqInE1FweXE,1471
|
3
3
|
nebu/cache.py,sha256=jmluqvWnE9N8uNq6nppXSxEJK7DKWaB79GicaGg9KmY,4718
|
4
4
|
nebu/config.py,sha256=C5Jt9Bd0i0HrgzBSVNJ-Ml3KwX_gaYbYYZEtNL2gvJg,7031
|
@@ -10,8 +10,8 @@ nebu/containers/container.py,sha256=yb7KaPTVXnEEAlrpdlUi4HNqF6P7z9bmwAILGlq6iqU,
|
|
10
10
|
nebu/containers/decorator.py,sha256=uFtzlAXRHYZECJ-NPusY7oN9GXvdHrHDd_JNrIGr8aQ,3244
|
11
11
|
nebu/containers/models.py,sha256=0j6NGy4yto-enRDh_4JH_ZTbHrLdSpuMOqNQPnIrwC4,6815
|
12
12
|
nebu/containers/server.py,sha256=yFa2Y9PzBn59E1HftKiv0iapPonli2rbGAiU6r-wwe0,2513
|
13
|
-
nebu/namespaces/models.py,sha256=
|
14
|
-
nebu/namespaces/namespace.py,sha256=
|
13
|
+
nebu/namespaces/models.py,sha256=EqUOpzhVBhvJw2P92ONDUbIgC31M9jMmcaG5vyOrsWg,497
|
14
|
+
nebu/namespaces/namespace.py,sha256=Q_EDH7BgQrTkaDh_l4tbo22qpq-uARfIk8ZPBLjITGY,4967
|
15
15
|
nebu/processors/consumer.py,sha256=q4cFKPEfMf1xIs0Y3CjUDCR35QVjr0F_hSOZUKUYc_U,33667
|
16
16
|
nebu/processors/decorate.py,sha256=rzasgz_kq6yQosoABawu5yhkBj7i12Ah9ntBIVxEyrk,52928
|
17
17
|
nebu/processors/default.py,sha256=W4slJenG59rvyTlJ7gRp58eFfXcNOTT2Hfi6zzJAobI,365
|
@@ -20,8 +20,8 @@ nebu/processors/processor.py,sha256=PsLs-Oo0bcvqoDKHErpOaic25y8uvTQ8KxtyFwLptW0,
|
|
20
20
|
nebu/processors/remote.py,sha256=TeAIPGEMqnDIb7H1iett26IEZrBlcbPB_-DSm6jcH1E,1285
|
21
21
|
nebu/redis/models.py,sha256=coPovAcVXnOU1Xh_fpJL4PO3QctgK9nBe5QYoqEcnxg,1230
|
22
22
|
nebu/services/service.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
|
-
nebu-0.1.
|
24
|
-
nebu-0.1.
|
25
|
-
nebu-0.1.
|
26
|
-
nebu-0.1.
|
27
|
-
nebu-0.1.
|
23
|
+
nebu-0.1.65.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
24
|
+
nebu-0.1.65.dist-info/METADATA,sha256=K0qoxYXcxr1nMvbRvP8GKllZ8-b06i93uIhjMVskzTw,1731
|
25
|
+
nebu-0.1.65.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
26
|
+
nebu-0.1.65.dist-info/top_level.txt,sha256=uLIbEKJeGSHWOAJN5S0i5XBGwybALlF9bYoB1UhdEgQ,5
|
27
|
+
nebu-0.1.65.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|