pyegeria 5.4.0.15__py3-none-any.whl → 5.4.0.17__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.
Files changed (114) hide show
  1. commands/cat/.DS_Store +0 -0
  2. commands/cat/.env +8 -0
  3. commands/cat/debug_log +10 -0
  4. commands/cat/debug_log.log +0 -0
  5. commands/cat/dr_egeria_md.py +1 -1
  6. commands/cat/list_format_set.py +5 -3
  7. commands/cat/logs/pyegeria.log +27 -0
  8. commands/cli/debug_log.log +0 -0
  9. commands/ops/load_archive.py +26 -22
  10. commands/ops/logs/pyegeria.log +0 -0
  11. md_processing/.DS_Store +0 -0
  12. md_processing/dr_egeria_inbox/Derive-Dr-Gov-Defs.md +8 -0
  13. md_processing/dr_egeria_inbox/Dr.Egeria Templates.md +873 -0
  14. md_processing/dr_egeria_inbox/arch_test.md +57 -0
  15. md_processing/dr_egeria_inbox/archive/dr_egeria_intro.md +254 -0
  16. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_more_terms.md +696 -0
  17. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part1.md +254 -0
  18. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part2.md +298 -0
  19. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part3.md +608 -0
  20. md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part4.md +94 -0
  21. md_processing/dr_egeria_inbox/archive/freddie_intro.md +284 -0
  22. md_processing/dr_egeria_inbox/archive/freddie_intro_orig.md +275 -0
  23. md_processing/dr_egeria_inbox/archive/test-term.md +110 -0
  24. md_processing/dr_egeria_inbox/cat_test.md +100 -0
  25. md_processing/dr_egeria_inbox/collections.md +39 -0
  26. md_processing/dr_egeria_inbox/data_designer_debug.log +6 -0
  27. md_processing/dr_egeria_inbox/data_designer_out.md +60 -0
  28. md_processing/dr_egeria_inbox/data_designer_search_test.md +11 -0
  29. md_processing/dr_egeria_inbox/data_field.md +54 -0
  30. md_processing/dr_egeria_inbox/data_spec.md +77 -0
  31. md_processing/dr_egeria_inbox/data_spec_test.md +2406 -0
  32. md_processing/dr_egeria_inbox/data_test.md +179 -0
  33. md_processing/dr_egeria_inbox/data_test2.md +429 -0
  34. md_processing/dr_egeria_inbox/data_test3.md +462 -0
  35. md_processing/dr_egeria_inbox/dr_egeria_data_designer_1.md +124 -0
  36. md_processing/dr_egeria_inbox/dr_egeria_intro_categories.md +168 -0
  37. md_processing/dr_egeria_inbox/dr_egeria_intro_part1.md +280 -0
  38. md_processing/dr_egeria_inbox/dr_egeria_intro_part2.md +313 -0
  39. md_processing/dr_egeria_inbox/dr_egeria_intro_part3.md +1073 -0
  40. md_processing/dr_egeria_inbox/dr_egeria_isc1.md +44 -0
  41. md_processing/dr_egeria_inbox/generated_help_report.md +9 -0
  42. md_processing/dr_egeria_inbox/glossary_list.md +5 -0
  43. md_processing/dr_egeria_inbox/glossary_search_test.md +40 -0
  44. md_processing/dr_egeria_inbox/glossary_test1.md +324 -0
  45. md_processing/dr_egeria_inbox/gov_def.md +424 -0
  46. md_processing/dr_egeria_inbox/gov_def2.md +447 -0
  47. md_processing/dr_egeria_inbox/product.md +50 -0
  48. md_processing/dr_egeria_inbox/rel.md +8 -0
  49. md_processing/dr_egeria_inbox/sb.md +119 -0
  50. md_processing/dr_egeria_inbox/solution-components.md +136 -0
  51. md_processing/dr_egeria_inbox/solution_blueprints.md +118 -0
  52. md_processing/dr_egeria_inbox/synonym_test.md +42 -0
  53. md_processing/dr_egeria_inbox/t2.md +268 -0
  54. md_processing/dr_egeria_outbox/.obsidian/app.json +1 -0
  55. md_processing/dr_egeria_outbox/.obsidian/appearance.json +1 -0
  56. md_processing/dr_egeria_outbox/.obsidian/community-plugins.json +6 -0
  57. md_processing/dr_egeria_outbox/.obsidian/core-plugins.json +31 -0
  58. md_processing/dr_egeria_outbox/.obsidian/plugins/calendar/data.json +10 -0
  59. md_processing/dr_egeria_outbox/.obsidian/plugins/calendar/main.js +4459 -0
  60. md_processing/dr_egeria_outbox/.obsidian/plugins/calendar/manifest.json +10 -0
  61. md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-kanban/data.json +3 -0
  62. md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-kanban/main.js +153 -0
  63. md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-kanban/manifest.json +11 -0
  64. md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-kanban/styles.css +1 -0
  65. md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-tasks-plugin/main.js +500 -0
  66. md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-tasks-plugin/manifest.json +12 -0
  67. md_processing/dr_egeria_outbox/.obsidian/plugins/obsidian-tasks-plugin/styles.css +1 -0
  68. md_processing/dr_egeria_outbox/.obsidian/plugins/templater-obsidian/main.js +37 -0
  69. md_processing/dr_egeria_outbox/.obsidian/plugins/templater-obsidian/manifest.json +11 -0
  70. md_processing/dr_egeria_outbox/.obsidian/plugins/templater-obsidian/styles.css +220 -0
  71. md_processing/dr_egeria_outbox/.obsidian/types.json +28 -0
  72. md_processing/dr_egeria_outbox/.obsidian/workspace.json +220 -0
  73. md_processing/dr_egeria_outbox/Untitled.canvas +1 -0
  74. md_processing/dr_egeria_outbox/friday/processed-2025-07-18 15:00-product.md +62 -0
  75. md_processing/dr_egeria_outbox/friday/processed-2025-07-18 15:13-product.md +62 -0
  76. md_processing/dr_egeria_outbox/friday/processed-2025-07-20 13:23-product.md +47 -0
  77. md_processing/dr_egeria_outbox/friday/processed-2025-08-01 11:55-data_test3.md +503 -0
  78. md_processing/dr_egeria_outbox/monday/processed-2025-07-14 12:38-data_designer_out.md +663 -0
  79. md_processing/dr_egeria_outbox/monday/processed-2025-07-21 10:52-generated_help_report.md +2744 -0
  80. md_processing/dr_egeria_outbox/monday/processed-2025-07-21 18:38-collections.md +62 -0
  81. md_processing/dr_egeria_outbox/monday/processed-2025-08-01 11:34-gov_def.md +444 -0
  82. md_processing/dr_egeria_outbox/processed-2025-08-03 16:05-glossary_list.md +37 -0
  83. md_processing/dr_egeria_outbox/sunday/processed-2025-07-20 14:55-product.md +77 -0
  84. md_processing/dr_egeria_outbox/sunday/processed-2025-07-20 15:05-product.md +75 -0
  85. md_processing/dr_egeria_outbox/sunday/processed-2025-07-20 15:11-product.md +74 -0
  86. md_processing/dr_egeria_outbox/sunday/processed-2025-07-20 20:40-collections.md +49 -0
  87. md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 15:00-Derive-Dr-Gov-Defs.md +719 -0
  88. md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 20:13-Derive-Dr-Gov-Defs.md +41 -0
  89. md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 20:14-Derive-Dr-Gov-Defs.md +33 -0
  90. md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 20:50-Derive-Dr-Gov-Defs.md +192 -0
  91. md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 22:08-gov_def2.md +486 -0
  92. md_processing/dr_egeria_outbox/thursday/processed-2025-07-17 22:10-gov_def2.md +486 -0
  93. md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 08:53-gov_def2.md +486 -0
  94. md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 08:54-gov_def2.md +486 -0
  95. md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 09:03-gov_def2.md +486 -0
  96. md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 09:06-gov_def2.md +486 -0
  97. md_processing/dr_egeria_outbox/thursday/processed-2025-07-18 09:10-gov_def2.md +486 -0
  98. md_processing/dr_egeria_outbox/tuesday/processed-2025-07-16 19:15-gov_def2.md +527 -0
  99. md_processing/dr_egeria_outbox/tuesday/processed-2025-07-17 12:08-gov_def2.md +527 -0
  100. md_processing/dr_egeria_outbox/tuesday/processed-2025-07-17 14:27-gov_def2.md +485 -0
  101. md_processing/md_processing_utils/debug_log.log +0 -0
  102. md_processing/md_processing_utils/solution_architect_log.log +0 -0
  103. pyegeria/.DS_Store +0 -0
  104. pyegeria/__init__.py +2 -2
  105. pyegeria/_client_new.py +31 -1
  106. pyegeria/_output_formats.py +23 -0
  107. pyegeria/glossary_browser_omvs.py +178 -65
  108. pyegeria/platform_services.py +3 -3
  109. pyegeria/runtime_manager_omvs.py +55 -55
  110. {pyegeria-5.4.0.15.dist-info → pyegeria-5.4.0.17.dist-info}/METADATA +1 -1
  111. {pyegeria-5.4.0.15.dist-info → pyegeria-5.4.0.17.dist-info}/RECORD +114 -15
  112. {pyegeria-5.4.0.15.dist-info → pyegeria-5.4.0.17.dist-info}/LICENSE +0 -0
  113. {pyegeria-5.4.0.15.dist-info → pyegeria-5.4.0.17.dist-info}/WHEEL +0 -0
  114. {pyegeria-5.4.0.15.dist-info → pyegeria-5.4.0.17.dist-info}/entry_points.txt +0 -0
commands/cat/.DS_Store ADDED
Binary file
commands/cat/.env ADDED
@@ -0,0 +1,8 @@
1
+ #
2
+ # This file contains default Environment variable settings
3
+
4
+ PYEGERIA_ROOT_PATH=/Users/dwolfson/localGit/egeria-v5-3/egeria-python
5
+ PYEGERIA_CONFIG_FILE=config.json
6
+ #PYEGERIA_CONSOLE_WIDTH=200
7
+ EGERIA_USER_NAME=peterprofile
8
+ EGERIA_USER_PASSWORD=secret
commands/cat/debug_log CHANGED
@@ -538,3 +538,13 @@ D  2025-08-01T11:55:49.817943-0500  | ERROR | parse_upsert_command | 23
538
538
  | {}
539
539
  D  2025-08-01T11:55:49.818011-0500  | ERROR | parse_upsert_command | 240 | Request is invalid, `Update Data Class` is not valid - see previous messages
540
540
  | {}
541
+ D  2025-08-03T16:05:33.497921-0500  | INFO | process_markdown_file | 90 |
542
+
543
+ ====================================================
544
+
545
+ | {}
546
+ D  2025-08-03T16:05:33.498408-0500  | INFO | process_markdown_file | 91 | Processing Markdown File: ../../md_processing/dr_egeria_inbox/glossary_list.md | {}
547
+ D  2025-08-03T16:05:33.500280-0500  | INFO | print_msg | 131 | INFO-Optional attribute with labels `['Search String', 'Filter']` missing | {}
548
+ D  2025-08-03T16:05:33.548949-0500  | INFO | print_msg | 131 | DEBUG-INFO->Found Glossary `Egeria-Markdown` with qualified name `Glossary::Egeria-Markdown` | {}
549
+ D  2025-08-03T16:05:33.549047-0500  | INFO | print_msg | 131 | INFO-Found glossary `Egeria-Markdown` with GUID 962c8c82-1148-49ec-b004-403900de31b5 | {}
550
+ D  2025-08-03T16:05:33.549216-0500  | INFO | print_msg | 131 | INFO-Optional attribute with labels `['Output', 'Output Format']` missing | {}
File without changes
@@ -66,7 +66,7 @@ setup_log()
66
66
  @click.command("process_markdown_file", help="Process a markdown file and return the output as a string.")
67
67
  @click.option("--input-file", help="Markdown file to process.", default="dr_egeria_intro_part1.md", required=True,
68
68
  prompt=False)
69
- @click.option("--output-folder", help="Output folder.", default=".", required=False)
69
+ @click.option("--output-folder", help="Output folder.", default="", required=False)
70
70
  @click.option("--directive", default="process", help="How to process the file",
71
71
  type=click.Choice(["display", "validate", "process"], case_sensitive=False), prompt=False, )
72
72
  @click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use.")
@@ -38,7 +38,7 @@ import argparse
38
38
  import json
39
39
  import os
40
40
  import time
41
- from typing import Any, Dict, List
41
+
42
42
  from loguru import logger
43
43
  from rich import box
44
44
  from rich.console import Console
@@ -51,9 +51,11 @@ import pydevd_pycharm
51
51
  from pyegeria import (
52
52
  EgeriaTech,
53
53
  NO_ELEMENTS_FOUND,
54
- config_logging,
55
- get_app_config
54
+ # config_logging,
55
+ # get_app_config
56
56
  )
57
+ from pyegeria.load_config import get_app_config
58
+ from pyegeria.logging_configuration import config_logging
57
59
  from pyegeria._output_formats import select_output_format_set, get_output_format_set_heading, \
58
60
  get_output_format_set_description
59
61
  from pyegeria._exceptions_new import PyegeriaException, print_exception_response
@@ -0,0 +1,27 @@
1
+ 2025-08-04 10:10:25 | INFO | main:394 - view server @ https://localhost:9443-{}
2
+ 2025-08-04 10:10:26 | SUCCESS | get_platform_origin:357 - Got response from https://localhost:9443/open-metadata/platform-services/users/erinoverview/server-platform/origin
3
+ Response: Egeria OMAG Server Platform (version 5.4-SNAPSHOT)-{}
4
+ 2025-08-04 10:10:26 | INFO | __init__:76 - CollectionManager initialized, platform origin is: True-{}
5
+ 2025-08-04 10:10:27 | ERROR | __init__:235 -
6
+
7
+ => SERVER_ERROR_500
8
+ => Egeria detected error: `https://localhost:9443/servers/qs-view-server/api/open-metadata/collection-manager/collections/by-search-string?startFrom=0&pageSize=0&startsWith=true&endsWith=false&ignoreCase=false`.
9
+ * Context:
10
+ * class name=`Client2`
11
+ * caller method=`_async_find_collections_w_body`
12
+ * System Action: Server-side issue requires attention.
13
+ * User Action: Contact server support.
14
+ * HTTP Code: 200
15
+
16
+ Egeria detected error: `OPEN-METADATA-400-022`.
17
+ * class = OpenMetadataRootElementsResponse
18
+ * relatedHTTPCode = 400
19
+ * exceptionClassName = org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException
20
+ * actionDescription = findCollections
21
+ * exceptionErrorMessage = OPEN-METADATA-400-022 The search string passed on the searchString parameter of the findCollections operation is null
22
+ * exceptionErrorMessageId = OPEN-METADATA-400-022
23
+ * exceptionErrorMessageParameters = ['searchString', 'findCollections']
24
+ * exceptionSystemAction = The system is unable to process the request without a search string.
25
+ * exceptionUserAction = Correct the code in the caller to provide the search string.
26
+ * exceptionProperties = `searchString`
27
+ -{'ip': URL('https://localhost:9443/servers/qs-view-server/api/open-metadata/collection-manager/collections/by-search-string?startFrom=0&pageSize=0&startsWith=true&endsWith=false&ignoreCase=false'), 'http_code': 200, 'pyegeria_code': 'SERVER_ERROR_500'}
File without changes
@@ -11,29 +11,33 @@ This script refreshed an integration daemon.
11
11
  import os
12
12
 
13
13
  import click
14
-
15
- from pyegeria import AutomatedCuration, EgeriaTech
16
- from pyegeria._exceptions import (
17
- InvalidParameterException,
18
- PropertyServerException,
19
- UserNotAuthorizedException,
20
- print_exception_response,
14
+ from loguru import logger
15
+ from pyegeria import AutomatedCuration, EgeriaTech, config_logging, get_app_config
16
+ from pyegeria._exceptions_new import (
17
+ PyegeriaException, print_exception_response, print_basic_exception
21
18
  )
22
19
 
23
- EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
24
- EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
25
- EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
26
- EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
27
- EGERIA_VIEW_SERVER_URL = os.environ.get(
28
- "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
29
- )
30
- EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon")
31
- EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
32
- "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
33
- )
20
+ # EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
21
+ # EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
22
+ # EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
23
+ # EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
24
+ # EGERIA_VIEW_SERVER_URL = os.environ.get(
25
+ # "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
26
+ # )
27
+ # EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon")
28
+ # EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
29
+ # "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
30
+ # )
31
+
32
+
33
+
34
34
  EGERIA_USER = os.environ.get("EGERIA_USER", "erinoverview")
35
35
  EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
36
+ app_settings = get_app_config()
37
+ app_config = app_settings.Environment
38
+ config_logging()
36
39
 
40
+ print(f"Console width is {app_config.console_width}")
37
41
 
38
42
  @click.command("load-archive")
39
43
  @click.option(
@@ -42,13 +46,13 @@ EGERIA_USER_PASSWORD = os.environ.get("EGERIA_USER_PASSWORD", "secret")
42
46
  help="Full path on the Metadata Server to the archive file to load",
43
47
  )
44
48
  @click.option(
45
- "--server_name", default=EGERIA_METADATA_STORE, help="Egeria metadata store to load"
49
+ "--server_name", default=app_config.egeria_metadata_store, help="Egeria metadata store to load"
46
50
  )
47
51
  @click.option(
48
- "--view-server", default=EGERIA_VIEW_SERVER, help="Egeria view server to connect to"
52
+ "--view-server", default=app_config.egeria_view_server, help="Egeria view server to connect to"
49
53
  )
50
54
  @click.option(
51
- "--url", default=EGERIA_PLATFORM_URL, help="URL of Egeria platform to connect to"
55
+ "--url", default=app_config.egeria_platform_url, help="URL of Egeria platform to connect to"
52
56
  )
53
57
  @click.option("--userid", default=EGERIA_USER, help="Egeria admin user")
54
58
  @click.option("--password", default=EGERIA_USER_PASSWORD, help="Egeria admin password")
@@ -65,7 +69,7 @@ def load_archive(file_name, server_name, view_server, url, userid, password, tim
65
69
 
66
70
  click.echo(f"Loaded archive: {file_name}")
67
71
 
68
- except (InvalidParameterException, PropertyServerException) as e:
72
+ except (PyegeriaException) as e:
69
73
  print(
70
74
  f"Perhaps there was a timeout? If so, the command will complete despite the exception\n"
71
75
  f"===> You can check by rerunning the command in a few minutes"
File without changes
Binary file
@@ -0,0 +1,8 @@
1
+ ___
2
+ # View Governance Definition Context
3
+ ## Display Name
4
+ New Sustainability Governance Domain
5
+ ## Qualified Name
6
+ GovernanceApproach::New Sustainability Governance Domain
7
+ ## Output Format
8
+ HTML