iatoolkit 0.4.4__py3-none-any.whl → 0.5.0__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.

Potentially problematic release.


This version of iatoolkit might be problematic. Click here for more details.

iatoolkit/base_company.py CHANGED
@@ -49,5 +49,11 @@ class BaseCompany(ABC):
49
49
  """
50
50
  pass
51
51
 
52
+ def get_ui_component_config(self)-> dict:
53
+ """
54
+ optional method for a company definition of it's UI config
55
+ """
56
+ pass
57
+
52
58
  def unsupported_operation(self, tag):
53
59
  raise NotImplementedError(f"La operación '{tag}' no está soportada por esta empresa.")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iatoolkit
3
- Version: 0.4.4
3
+ Version: 0.5.0
4
4
  Summary: IAToolkit
5
5
  Author: Fernando Libedinsky
6
6
  License-Expression: MIT
@@ -1,5 +1,5 @@
1
1
  iatoolkit/__init__.py,sha256=GkFxAQHKPifz4Kd8M73Rc8TWRVIxjxkl1N0nsPvb_sU,1743
2
- iatoolkit/base_company.py,sha256=LyTnNqxfKKks0eu2DaisWFyMF11PetWNy5QiZe1nYRA,1938
2
+ iatoolkit/base_company.py,sha256=brCO8Z6hnsE31l1S2Jfaah6K9847AB-xRn4MOPLDD4o,2089
3
3
  iatoolkit/cli_commands.py,sha256=XApFY4TrLjyyEt8L1ckY-Ro7AWFed8_tHh-aVsim3ww,3011
4
4
  iatoolkit/company_registry.py,sha256=tduqt3oV8iDX_IB1eA7KIgvIxE4edTcy-3qZIXh3Lzw,2549
5
5
  iatoolkit/iatoolkit.py,sha256=WgBm34nAeVBCpfDDZD13Pos9xIoRx5viVwxjyYCXAmY,15790
@@ -9,7 +9,7 @@ iatoolkit/system_prompts/sql_rules.prompt,sha256=y4nURVnb9AyFwt-lrbMNBHHtZlhk6kC
9
9
  services/__init__.py,sha256=5JqK9sZ6jBuK83zDQokUhxQ0wuJJJ9DXB8pYCLkX7X4,102
10
10
  services/api_service.py,sha256=7FxO9_g-gxuEmYIl5PhgJb7lHVgXJ1btHdH9fDrdhvY,2840
11
11
  services/benchmark_service.py,sha256=_ruKh9YzrTLtR0ZKrRNxqJQW0HdbwWuFz1gfLzJ9owA,5850
12
- services/dispatcher_service.py,sha256=pc_ksXM96c876LJ38c2kCLGIZlKRQcLahC66UruZN9c,14520
12
+ services/dispatcher_service.py,sha256=N2m9QtnupasE8qcUxY3dDIdS1h6mnNYTxNPCBeO0R2c,14840
13
13
  services/document_service.py,sha256=r9EPjkhkjbAdfdZ0LCmUcvQbmGZR7BWgOsBiaeSmuoU,5890
14
14
  services/excel_service.py,sha256=ATPaeAvkLwQAkPZ3AKIUpO73RVyRg0D8c6i37_mcql0,3559
15
15
  services/file_processor_service.py,sha256=98yWYF7nIq1nm7nh6IzMmTKaOMTIeqCFWYwXVtV-ZJI,4102
@@ -25,7 +25,7 @@ services/sql_service.py,sha256=s84K1ADlvMtum949wgMh8jsmqlOUeL-m_SWfAM4Wsv4,2141
25
25
  services/tasks_service.py,sha256=1DdbERlAxIkCpGEylnHDKC-KAsXRJugbaRSzRbPfL58,6790
26
26
  services/user_feedback_service.py,sha256=_LeNBYz4hHFapXfYTQVfkkD34gE8j2UeKnyOZ8H0nWo,2442
27
27
  services/user_session_context_service.py,sha256=GluNSgqP6W_hFke4oslSnfGnU_b-ph28BHH6jf3EIm0,3797
28
- iatoolkit-0.4.4.dist-info/METADATA,sha256=h3whrSrA15ia8BjgxLrhVSH9EqX24u9IFkbDgfgoWxc,9300
29
- iatoolkit-0.4.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
- iatoolkit-0.4.4.dist-info/top_level.txt,sha256=dqlBbmgo9okD9d_WMR9uYzdup7Rxgj26yFF85jRGeu4,19
31
- iatoolkit-0.4.4.dist-info/RECORD,,
28
+ iatoolkit-0.5.0.dist-info/METADATA,sha256=yRm0mMcZabK6LEW8xpY54zLDNWXDSBY5PeZSad-2z6Y,9300
29
+ iatoolkit-0.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
30
+ iatoolkit-0.5.0.dist-info/top_level.txt,sha256=dqlBbmgo9okD9d_WMR9uYzdup7Rxgj26yFF85jRGeu4,19
31
+ iatoolkit-0.5.0.dist-info/RECORD,,
@@ -217,6 +217,19 @@ class Dispatcher:
217
217
 
218
218
  return normalized_user
219
219
 
220
+ def get_ui_component_config(self, company_name: str) -> dict:
221
+ if company_name not in self.company_instances:
222
+ raise IAToolkitException(IAToolkitException.ErrorType.EXTERNAL_SOURCE_ERROR,
223
+ f"Empresa no configurada: {company_name}")
224
+
225
+ company_instance = self.company_instances[company_name]
226
+ try:
227
+ return company_instance.get_ui_component_config()
228
+ except Exception as e:
229
+ logging.exception(e)
230
+ raise IAToolkitException(IAToolkitException.ErrorType.EXTERNAL_SOURCE_ERROR,
231
+ f"Error en get_ui_component_config de {company_name}: {str(e)}") from e
232
+
220
233
  def get_metadata_from_filename(self, company_name: str, filename: str) -> dict:
221
234
  if company_name not in self.company_instances:
222
235
  raise IAToolkitException(IAToolkitException.ErrorType.EXTERNAL_SOURCE_ERROR,
@@ -234,13 +247,6 @@ class Dispatcher:
234
247
  """Returns the instance for a given company name."""
235
248
  return self.company_instances.get(company_name)
236
249
 
237
- def get_registered_companies(self) -> dict:
238
- """Gets all registered companies (for debugging/admin purposes)"""
239
- return {
240
- "registered_classes": list(self.company_registry.get_registered_companies().keys()),
241
- "instantiated": list(self.company_instances.keys()),
242
- "count": len(self.company_instances)
243
- }
244
250
 
245
251
 
246
252
  # iatoolkit system prompts