streamlit-octostar-utils 0.2.2__py3-none-any.whl → 0.2.3a2__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.
@@ -13,6 +13,9 @@ from typing import Dict, Any
13
13
  from fastapi import Request
14
14
  from fastapi.responses import JSONResponse
15
15
  from starlette.exceptions import HTTPException as StarletteHTTPException
16
+ import logging
17
+
18
+ logger = logging.getLogger(__name__)
16
19
 
17
20
  from octostar.utils.workspace import read_file, upsert_entities, write_file
18
21
  from octostar.utils.ontology import fetch_ontology_data
@@ -404,7 +407,9 @@ class NifiContextManager(object):
404
407
  {e.record["entity_id"]: e for e in all_entities}.values()
405
408
  )
406
409
  self.sync_entities()
407
- return [entity for entity in self.jsonify(self.out_entities)["content"]]
410
+ output = [entity for entity in self.jsonify(self.out_entities)["content"]]
411
+ raise Exception(output)
412
+ return output
408
413
 
409
414
  def raise_exception(self, entity, exc):
410
415
  error_response = DefaultErrorRoute.format_error(exc)
@@ -929,14 +934,16 @@ class NifiEntity(object):
929
934
  "relationships"
930
935
  ],
931
936
  },
937
+ "entity_timestamp": None,
932
938
  "sync_params": {},
933
939
  "nifi_attributes": {},
934
- "metrics": {},
935
940
  "config": deepcopy(self.request["config"]),
936
- "fallback_os_workspace": self.request["fallback_os_workspace"],
937
- "is_temporary": True,
938
- "entity_timestamp": None,
941
+ "metrics": {},
939
942
  "contents_pointer": None,
943
+ "is_temporary": True,
944
+ "exception": {},
945
+ "last_processor_name": None,
946
+ "fallback_os_workspace": self.request["fallback_os_workspace"],
940
947
  }
941
948
  child_entity = NifiEntity(
942
949
  self.context,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: streamlit-octostar-utils
3
- Version: 0.2.2
3
+ Version: 0.2.3a2
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: Octostar
@@ -2,7 +2,7 @@ streamlit_octostar_utils/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-Y
2
2
  streamlit_octostar_utils/api_crafter/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
3
  streamlit_octostar_utils/api_crafter/celery.py,sha256=bQq8P95j0XDWqx6Hdnm96PJL8kcp9ZcSKjveZUCQTVk,29874
4
4
  streamlit_octostar_utils/api_crafter/fastapi.py,sha256=2bktT5Mwjs9XixWcOqUKMoLM_cgKl-cqZDUa2Imf4xA,14357
5
- streamlit_octostar_utils/api_crafter/nifi.py,sha256=DjF58brQal48Z1cmdOZwvhAPUSTUdku6zCXgi6DXiPE,45186
5
+ streamlit_octostar_utils/api_crafter/nifi.py,sha256=tfRUJgvDjVa-Vh0NtbSLDqtZ_VWV9hyb1j2ec3KX3Sg,45365
6
6
  streamlit_octostar_utils/api_crafter/parser/__init__.py,sha256=YeYWF6sdQiCFV_RKNW2t9Vs6KJExE2pbXxWTe_DOayY,107
7
7
  streamlit_octostar_utils/api_crafter/parser/combine_fields.py,sha256=ddc44xkajw8MU0peAX_263DL7rPXbTKbHUjpOhRgvyU,8790
8
8
  streamlit_octostar_utils/api_crafter/parser/entities_parser.py,sha256=zOQoN-p1Gz6ZzxvoX4M1b4Fi3mfmQr5zaNUcp_8gCjw,30016
@@ -36,7 +36,7 @@ streamlit_octostar_utils/threading/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzp
36
36
  streamlit_octostar_utils/threading/async_task_manager.py,sha256=q7N6YZwUvIYMzkSHmsJNheNVCv93c03H6Hyg9uH8pvk,4747
37
37
  streamlit_octostar_utils/threading/session_callback_manager.py,sha256=LvZVP4g6tvKtYmI13f2j1sX_7hm61Groqp5xJine9_k,3973
38
38
  streamlit_octostar_utils/threading/session_state_hot_swapper.py,sha256=6eeCQI6A42hp4DmW2NQw2rbeR-k9N8DhfBKQdN_fbLU,811
39
- streamlit_octostar_utils-0.2.2.dist-info/LICENSE,sha256=dkwVPyV03fPHHtERnF6RnvRXcll__tud9gWca1RcgnQ,1073
40
- streamlit_octostar_utils-0.2.2.dist-info/METADATA,sha256=dvOLTIIdkTcRAK9iA8kIH4pmBw3DE6MZy8x_-VMjVQ4,2256
41
- streamlit_octostar_utils-0.2.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
- streamlit_octostar_utils-0.2.2.dist-info/RECORD,,
39
+ streamlit_octostar_utils-0.2.3a2.dist-info/LICENSE,sha256=dkwVPyV03fPHHtERnF6RnvRXcll__tud9gWca1RcgnQ,1073
40
+ streamlit_octostar_utils-0.2.3a2.dist-info/METADATA,sha256=ksriSchjGyudEjkieVsVwSZB3xstAafoZZCiLUH_aPE,2258
41
+ streamlit_octostar_utils-0.2.3a2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
42
+ streamlit_octostar_utils-0.2.3a2.dist-info/RECORD,,