nexus-extensibility 2.0.0b40__py3-none-any.whl → 2.0.0b42__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.
@@ -2,5 +2,4 @@ from ._data_model_extensions import *
2
2
  from ._data_model_extensions import *
3
3
  from ._data_model import *
4
4
  from ._extensibility_data_source import *
5
- from ._extensibility_utilities import *
6
- from ._i_extension import *
5
+ from ._extensibility_utilities import *
@@ -7,7 +7,6 @@ from typing import (Any, Awaitable, Callable, Dict, List, Optional, Protocol,
7
7
  from urllib.parse import ParseResult
8
8
 
9
9
  from ._data_model import CatalogItem, CatalogRegistration, ResourceCatalog
10
- from ._i_extension import IExtension
11
10
 
12
11
  ################# DATA SOURCE TYPES ###############
13
12
 
@@ -105,7 +104,7 @@ class ReadDataHandler(Protocol):
105
104
 
106
105
  ################# DATA SOURCE ###############
107
106
 
108
- class IDataSource(IExtension, ABC):
107
+ class IDataSource(ABC):
109
108
  """
110
109
  A data source.
111
110
  """
@@ -132,12 +131,12 @@ class IDataSource(IExtension, ABC):
132
131
  pass
133
132
 
134
133
  @abstractmethod
135
- def get_catalog(self, catalog_id: str) -> Awaitable[ResourceCatalog]:
134
+ def enrich_catalog(self, catalog: ResourceCatalog) -> Awaitable[ResourceCatalog]:
136
135
  """
137
- Gets the requested ResourceCatalog.
136
+ Enriches the provided ResourceCatalog.
138
137
 
139
138
  Args:
140
- catalog_id: The catalog identifier.
139
+ catalog: The catalog to enrich.
141
140
  """
142
141
  pass
143
142
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nexus-extensibility
3
- Version: 2.0.0b40
3
+ Version: 2.0.0b42
4
4
  Summary: Type definitions to implement data sources for the Nexus system.
5
5
  Home-page: https://github.com/nexus-main/nexus
6
6
  Author: https://github.com/nexus-main
@@ -0,0 +1,10 @@
1
+ nexus_extensibility/__init__.py,sha256=temuSqvUeZusU_0j-QoRalMIDfCHm9JP8W6jEO280nA,184
2
+ nexus_extensibility/_data_model.py,sha256=HBuH2ftXAq_a5pJWc5UtqbEEcQIVAolz3xLUYgAHyk0,11964
3
+ nexus_extensibility/_data_model_extensions.py,sha256=iLSOVDKvVoorj2h0x_XHGhbKwd_NHtrURgS7aUVe8MI,670
4
+ nexus_extensibility/_data_model_utilities.py,sha256=cb_uJD4CeYz1m7NEttQ7kR3nrcMjovJQCrSUchnglQE,377
5
+ nexus_extensibility/_extensibility_data_source.py,sha256=zNNBypSpz0h1TE8MbZbFtApWnJtLvPA9WM63IIwttDs,7083
6
+ nexus_extensibility/_extensibility_utilities.py,sha256=hQFcY2joHt1goJSCvMfEW5cprN1I-B1-SihqYme8R1A,786
7
+ nexus_extensibility-2.0.0b42.dist-info/METADATA,sha256=S7kgBV_iYVz3TnurLVhbiuUIjhI816MhG26qVv04RTw,775
8
+ nexus_extensibility-2.0.0b42.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
9
+ nexus_extensibility-2.0.0b42.dist-info/top_level.txt,sha256=GTaw9wgS6EKrgO6FhJ3YZuMrkgoK7kP-hW9uybPDbyg,20
10
+ nexus_extensibility-2.0.0b42.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- from abc import ABC
2
-
3
-
4
- class IExtension(ABC):
5
- """
6
- A base interface for extensions.
7
- """
8
- pass
@@ -1,11 +0,0 @@
1
- nexus_extensibility/__init__.py,sha256=3NjQgmwGAfhEef3LmQaTBXE9CPORo5ea4xh38hkUQkA,212
2
- nexus_extensibility/_data_model.py,sha256=HBuH2ftXAq_a5pJWc5UtqbEEcQIVAolz3xLUYgAHyk0,11964
3
- nexus_extensibility/_data_model_extensions.py,sha256=iLSOVDKvVoorj2h0x_XHGhbKwd_NHtrURgS7aUVe8MI,670
4
- nexus_extensibility/_data_model_utilities.py,sha256=cb_uJD4CeYz1m7NEttQ7kR3nrcMjovJQCrSUchnglQE,377
5
- nexus_extensibility/_extensibility_data_source.py,sha256=5svJBeeehjsR4taLp-xZ4rXTFzzzNa2LxxP7nlw852c,7121
6
- nexus_extensibility/_extensibility_utilities.py,sha256=hQFcY2joHt1goJSCvMfEW5cprN1I-B1-SihqYme8R1A,786
7
- nexus_extensibility/_i_extension.py,sha256=JiylZIbVEnKAZ8_4MAIjIVXNcfex76m_FTVOC1CoA2k,107
8
- nexus_extensibility-2.0.0b40.dist-info/METADATA,sha256=lpnAeuK1q2D3bFmz3kTXT6D4jGyqhxRRRPOkgp2xqq4,775
9
- nexus_extensibility-2.0.0b40.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
10
- nexus_extensibility-2.0.0b40.dist-info/top_level.txt,sha256=GTaw9wgS6EKrgO6FhJ3YZuMrkgoK7kP-hW9uybPDbyg,20
11
- nexus_extensibility-2.0.0b40.dist-info/RECORD,,