pyegeria 5.3.9.9.4__py3-none-any.whl → 5.3.9.9.5__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.
- md_processing/dr_egeria_outbox/processed-2025-05-19 09:26-data_test.md +91 -0
- md_processing/dr_egeria_outbox/processed-2025-05-19 10:27-data_test.md +91 -0
- md_processing/md_commands/data_designer_commands.py +5 -4
- md_processing/md_processing_utils/md_processing_constants.py +12 -2
- pyegeria/data_designer_omvs.py +4 -3
- {pyegeria-5.3.9.9.4.dist-info → pyegeria-5.3.9.9.5.dist-info}/METADATA +1 -1
- {pyegeria-5.3.9.9.4.dist-info → pyegeria-5.3.9.9.5.dist-info}/RECORD +11 -9
- /md_processing/{commands.json → dr_egeria_inbox/commands.json} +0 -0
- {pyegeria-5.3.9.9.4.dist-info → pyegeria-5.3.9.9.5.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.9.9.4.dist-info → pyegeria-5.3.9.9.5.dist-info}/WHEEL +0 -0
- {pyegeria-5.3.9.9.4.dist-info → pyegeria-5.3.9.9.5.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,91 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
Data Specification for the Teddy Bear Drop Foot Clinical Trial
|
8
|
+
|
9
|
+
# foo Create Data Specification
|
10
|
+
|
11
|
+
## Data Specification
|
12
|
+
|
13
|
+
|
14
|
+
Data Specification for the Teddy Bear Drop Foot Clinical Trial
|
15
|
+
>woof
|
16
|
+
## Description
|
17
|
+
>Meow -
|
18
|
+
|
19
|
+
Principle data requirements for Teddy Bear Drop Foot Clinical Trial.
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
# foo Create Data Dictionary
|
25
|
+
## Name
|
26
|
+
Clinical Trial Data Dictionary
|
27
|
+
|
28
|
+
## Description
|
29
|
+
A data dictionary for clinical trial data elements.
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
___
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
TBDF-Incoming Weekly Measurement Data
|
39
|
+
|
40
|
+
|
41
|
+
# Update Data Structure
|
42
|
+
|
43
|
+
## Data Structure Name
|
44
|
+
|
45
|
+
TBDF-Incoming Weekly Measurement Data
|
46
|
+
|
47
|
+
## Description
|
48
|
+
This describes the weekly measurement data for each patient for the Teddy Bear drop foot clinical trial
|
49
|
+
|
50
|
+
## Qualified Name
|
51
|
+
DataStruct::TBDF-Incoming Weekly Measurement Data
|
52
|
+
|
53
|
+
## Namespace
|
54
|
+
|
55
|
+
|
56
|
+
## Version Identifier
|
57
|
+
|
58
|
+
|
59
|
+
## Guid
|
60
|
+
3eb5d206-6d3f-4b61-8f45-d7fbc05a870e
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
WWT-Incoming Weekly Measurement Data
|
65
|
+
|
66
|
+
# foo Create Data Structure
|
67
|
+
|
68
|
+
## Qualified Name
|
69
|
+
DataStruct::WWT-Incoming Weekly Measurement Data
|
70
|
+
|
71
|
+
## GUID
|
72
|
+
ae221834-a3a6-4f32-ac94-110dff761b49
|
73
|
+
|
74
|
+
## Data Structure
|
75
|
+
|
76
|
+
WWT-Incoming Weekly Measurement Data
|
77
|
+
|
78
|
+
|
79
|
+
## Description
|
80
|
+
A collection of data fields that form a data structure.
|
81
|
+
|
82
|
+
|
83
|
+
## In Data Specification
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
## Qualified Name
|
88
|
+
|
89
|
+
# Provenance
|
90
|
+
|
91
|
+
* Results from processing file data_test.md on 2025-05-19 09:26
|
@@ -0,0 +1,91 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
Data Specification for the Teddy Bear Drop Foot Clinical Trial
|
8
|
+
|
9
|
+
# foo Create Data Specification
|
10
|
+
|
11
|
+
## Data Specification
|
12
|
+
|
13
|
+
|
14
|
+
Data Specification for the Teddy Bear Drop Foot Clinical Trial
|
15
|
+
>woof
|
16
|
+
## Description
|
17
|
+
>Meow -
|
18
|
+
|
19
|
+
Principle data requirements for Teddy Bear Drop Foot Clinical Trial.
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
# foo Create Data Dictionary
|
25
|
+
## Name
|
26
|
+
Clinical Trial Data Dictionary
|
27
|
+
|
28
|
+
## Description
|
29
|
+
A data dictionary for clinical trial data elements.
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
___
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
TBDF-Incoming Weekly Measurement Data
|
39
|
+
|
40
|
+
|
41
|
+
# Update Data Structure
|
42
|
+
|
43
|
+
## Data Structure Name
|
44
|
+
|
45
|
+
TBDF-Incoming Weekly Measurement Data
|
46
|
+
|
47
|
+
## Description
|
48
|
+
This describes the weekly measurement data for each patient for the Teddy Bear drop foot clinical trial
|
49
|
+
|
50
|
+
## Qualified Name
|
51
|
+
DataStruct::TBDF-Incoming Weekly Measurement Data
|
52
|
+
|
53
|
+
## Namespace
|
54
|
+
|
55
|
+
|
56
|
+
## Version Identifier
|
57
|
+
|
58
|
+
|
59
|
+
## Guid
|
60
|
+
3eb5d206-6d3f-4b61-8f45-d7fbc05a870e
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
WWT-Incoming Weekly Measurement Data
|
65
|
+
|
66
|
+
# foo Create Data Structure
|
67
|
+
|
68
|
+
## Qualified Name
|
69
|
+
DataStruct::WWT-Incoming Weekly Measurement Data
|
70
|
+
|
71
|
+
## GUID
|
72
|
+
ae221834-a3a6-4f32-ac94-110dff761b49
|
73
|
+
|
74
|
+
## Data Structure
|
75
|
+
|
76
|
+
WWT-Incoming Weekly Measurement Data
|
77
|
+
|
78
|
+
|
79
|
+
## Description
|
80
|
+
A collection of data fields that form a data structure.
|
81
|
+
|
82
|
+
|
83
|
+
## In Data Specification
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
## Qualified Name
|
88
|
+
|
89
|
+
# Provenance
|
90
|
+
|
91
|
+
* Results from processing file data_test.md on 2025-05-19 10:27
|
@@ -19,8 +19,9 @@ from pyegeria import DEBUG_LEVEL, body_slimmer
|
|
19
19
|
from pyegeria.egeria_tech_client import EgeriaTech
|
20
20
|
from pyegeria.md_processing_utils import ALWAYS, INFO
|
21
21
|
|
22
|
+
command_definitions = os.environ.get("COMMAND_DEFINITIONS")
|
22
23
|
print("Current working directory: ", os.getcwd())
|
23
|
-
load_commands('
|
24
|
+
load_commands('commands.json')
|
24
25
|
debug_level = DEBUG_LEVEL
|
25
26
|
|
26
27
|
console = Console(width=int(200))
|
@@ -740,14 +741,14 @@ def process_data_structure_upsert_command(egeria_client: EgeriaTech, txt: str, d
|
|
740
741
|
}
|
741
742
|
egeria_client.update_data_structure_w_body(guid, body, replace_all_props)
|
742
743
|
print_msg(ALWAYS, f"Updated element `{display_name}` with GUID {guid}", debug_level)
|
743
|
-
core_props = egeria_client.
|
744
|
+
core_props = egeria_client.get_data_structure_by_guid(guid, output_format='FORM')
|
744
745
|
|
745
746
|
update_element_dictionary(qualified_name, {
|
746
747
|
'guid': guid, 'display_name': display_name
|
747
748
|
})
|
748
749
|
update_data_collection_memberships(egeria_client, in_data_spec, guid, replace_all_props)
|
749
750
|
|
750
|
-
return egeria_client.
|
751
|
+
return egeria_client.get_data_structure_by_guid(guid, output_format='MD')
|
751
752
|
|
752
753
|
elif object_action == "Create":
|
753
754
|
if exists:
|
@@ -776,7 +777,7 @@ def process_data_structure_upsert_command(egeria_client: EgeriaTech, txt: str, d
|
|
776
777
|
'guid': guid, 'display_name': display_name
|
777
778
|
})
|
778
779
|
|
779
|
-
core_props = egeria_client.
|
780
|
+
core_props = egeria_client.get_data_structure_by_guid(guid, output_format='FORM')
|
780
781
|
|
781
782
|
if in_data_dictionary:
|
782
783
|
print_msg(ALWAYS, f"Will add to data dictionary(s) `{in_data_dictionary}`", debug_level)
|
@@ -2,12 +2,16 @@
|
|
2
2
|
This file contains display-related constants and formatting functions for Egeria Markdown processing
|
3
3
|
"""
|
4
4
|
import json
|
5
|
-
|
5
|
+
import os
|
6
6
|
from rich.markdown import Markdown
|
7
7
|
|
8
8
|
from pyegeria._globals import DEBUG_LEVEL
|
9
9
|
from md_processing.md_processing_utils.message_constants import message_types, ALWAYS, ERROR, INFO, WARNING
|
10
10
|
|
11
|
+
EGERIA_ROOT_PATH = os.environ.get("EGERIA_ROOT_PATH", "../../")
|
12
|
+
EGERIA_INBOX_PATH = os.environ.get("EGERIA_INBOX_PATH", "loading-bay/dr_egeria_inbox")
|
13
|
+
|
14
|
+
|
11
15
|
# Constants for element labels
|
12
16
|
GLOSSARY_NAME_LABELS = ["Glossary Name", "Glossary", "Glossaries", "Owning Glossary", "In Glossary"]
|
13
17
|
CATEGORY_NAME_LABELS = ["Glossary Category Name", "Glossary Category", "Glossary Categories", "Category Name",
|
@@ -58,10 +62,16 @@ COMMAND_DEFINITIONS = {}
|
|
58
62
|
debug_level = DEBUG_LEVEL
|
59
63
|
|
60
64
|
|
65
|
+
|
61
66
|
def load_commands(filename: str) -> None:
|
62
67
|
global COMMAND_DEFINITIONS
|
68
|
+
print("EGERIA_INBOX_PATH: ", EGERIA_INBOX_PATH)
|
69
|
+
|
70
|
+
full_file_path = os.path.join(EGERIA_ROOT_PATH, EGERIA_INBOX_PATH, filename)
|
71
|
+
|
72
|
+
print("Loading commands from: ", full_file_path)
|
63
73
|
try:
|
64
|
-
with open(
|
74
|
+
with open(full_file_path, 'r') as file:
|
65
75
|
COMMAND_DEFINITIONS = json.load(file)
|
66
76
|
except FileNotFoundError:
|
67
77
|
msg = f"ERROR: File {filename} not found."
|
pyegeria/data_designer_omvs.py
CHANGED
@@ -17,6 +17,7 @@ from pyegeria.output_formatter import (extract_mermaid_only, extract_basic_dict,
|
|
17
17
|
from pyegeria.utils import body_slimmer
|
18
18
|
|
19
19
|
|
20
|
+
|
20
21
|
def query_seperator(current_string):
|
21
22
|
if current_string == "":
|
22
23
|
return "?"
|
@@ -1296,7 +1297,7 @@ r replace_all_properties: bool, default = False
|
|
1296
1297
|
self._async_get_data_structures_by_name(filter, body, start_from, page_size, output_format))
|
1297
1298
|
return response
|
1298
1299
|
|
1299
|
-
async def
|
1300
|
+
async def _async_get_data_structure_by_guid(self, guid: str, body: dict = None,
|
1300
1301
|
output_format: str = "DICT") -> list | str:
|
1301
1302
|
""" Get the data structure metadata elements for the specified GUID.
|
1302
1303
|
Async version.
|
@@ -1350,7 +1351,7 @@ r replace_all_properties: bool, default = False
|
|
1350
1351
|
return self.generate_data_structure_output(element, filter, output_format)
|
1351
1352
|
return element
|
1352
1353
|
|
1353
|
-
def
|
1354
|
+
def get_data_structure_by_guid(self, guid: str, body: str = None, output_format: str = "DICT") -> list | str:
|
1354
1355
|
""" Get the data structure metadata element with the specified unique identifier..
|
1355
1356
|
|
1356
1357
|
Parameters
|
@@ -1390,7 +1391,7 @@ r replace_all_properties: bool, default = False
|
|
1390
1391
|
"""
|
1391
1392
|
|
1392
1393
|
loop = asyncio.get_event_loop()
|
1393
|
-
response = loop.run_until_complete(self.
|
1394
|
+
response = loop.run_until_complete(self._async_get_data_structure_by_guid(guid, body, output_format))
|
1394
1395
|
return response
|
1395
1396
|
|
1396
1397
|
#
|
@@ -94,7 +94,6 @@ commands/tech/list_valid_metadata_values.py,sha256=_zgOdq2N6s7GjLd8iEc5xVfplKfOn
|
|
94
94
|
commands/tech/table_tech_templates.py,sha256=jI1c9YKa3KirArMNXeCRKeaiVdwQSN-ztPqkag6jdZs,9500
|
95
95
|
commands/tech/x_list_related_elements.py,sha256=ynaw792VnbMZ9IXBi5mmG7xBfC0kn0esKiFTsjvLGzc,5900
|
96
96
|
md_processing/__init__.py,sha256=f1L8o0ewh3YdTm4tinuUyMBQ0PNnCe7kPRPLeVznD6o,4611
|
97
|
-
md_processing/commands.json,sha256=sRqtASsOSoQBuiscVjbsG_-TOYtDFBgGzeCElB0QHvc,109916
|
98
97
|
md_processing/dr_egeria_inbox/archive/dr_egeria_intro.md,sha256=25iXGRIkGUiDbfop8Rpd-QRdsjmI3Jo-S4yzfzAmeDE,8549
|
99
98
|
md_processing/dr_egeria_inbox/archive/dr_egeria_intro_more_terms.md,sha256=WY33hougDWyrDRtk8-4Sm2z4CNHG6u1jKNUZX_QbpG8,27000
|
100
99
|
md_processing/dr_egeria_inbox/archive/dr_egeria_intro_part1.md,sha256=gI1DmLfqUI9FtVVynYJe0NqSr4PJ0Ej--BXetyA49js,9871
|
@@ -105,6 +104,7 @@ md_processing/dr_egeria_inbox/archive/freddie_intro.md,sha256=7srXdwdVO4phWSp0nh
|
|
105
104
|
md_processing/dr_egeria_inbox/archive/freddie_intro_orig.md,sha256=JRfOtByc57-En5rp5z-g1l93FIbem3ST7plItWr6IKY,7067
|
106
105
|
md_processing/dr_egeria_inbox/archive/test-term.md,sha256=9XKBBrpgMBbXB-DRVgyhR4lwy4Z3zX1Tp9H601y06qs,1529
|
107
106
|
md_processing/dr_egeria_inbox/cat_test.md,sha256=Xcz8Qwak-TEj-JnXoqZTpX3sy501tRqvFVllB14QX6w,1068
|
107
|
+
md_processing/dr_egeria_inbox/commands.json,sha256=sRqtASsOSoQBuiscVjbsG_-TOYtDFBgGzeCElB0QHvc,109916
|
108
108
|
md_processing/dr_egeria_inbox/data_field.md,sha256=jbjihghaBRAd_14n3LO1-vGCPzS3aNpNrntv1eCLKXY,702
|
109
109
|
md_processing/dr_egeria_inbox/data_spec.md,sha256=3VrV2pf0czFzYcWonn5L5W1NZG1CgSBViI0m1y0NBFA,1119
|
110
110
|
md_processing/dr_egeria_inbox/data_spec_test.md,sha256=pSRtK0l0vygBv63rsy1Jq7FfyFqa1WQxolhIor0uWCc,16838
|
@@ -132,16 +132,18 @@ md_processing/dr_egeria_outbox/processed-2025-05-18 16:47-data_test.md,sha256=bh
|
|
132
132
|
md_processing/dr_egeria_outbox/processed-2025-05-19 07:14-data_test.md,sha256=UdNYXbkNchtqZuQ8rRTtN22DFVietuSdyzB9KKvV7bY,1529
|
133
133
|
md_processing/dr_egeria_outbox/processed-2025-05-19 07:20-data_test.md,sha256=JjUEgVlRW1NmHIjg3uCKTf1a8OIUXEtHEJhGn7kyb58,1525
|
134
134
|
md_processing/dr_egeria_outbox/processed-2025-05-19 07:22-data_test.md,sha256=nNKDdZimvmi3QrktkeJdhhfxnU_MNLhnUnzwTnXZ_4M,1284
|
135
|
+
md_processing/dr_egeria_outbox/processed-2025-05-19 09:26-data_test.md,sha256=OiBMX1IE0b7FBVE1lmcCo93Nn0kTrgcGj8Gql9jtoPw,1286
|
136
|
+
md_processing/dr_egeria_outbox/processed-2025-05-19 10:27-data_test.md,sha256=V-4zCLm4JvfptxZyUEzArwgStWeRvSpB5qmcTItOcIA,1286
|
135
137
|
md_processing/md_commands/__init__.py,sha256=ssEojzFlSYtY2bHqqOoKo8PFaANZ_kq_gIbtlXnuc2s,93
|
136
138
|
md_processing/md_commands/blueprint_commands.py,sha256=ZiZYK3FqOBTmnVr-mMiD-sj3N4ZMkMPzcJS4q-zoTUk,14889
|
137
|
-
md_processing/md_commands/data_designer_commands.py,sha256=
|
139
|
+
md_processing/md_commands/data_designer_commands.py,sha256=8zFTRkr01qDrRLL4KGrToI-MxsOwRa-kWuBmaAZiBZs,60925
|
138
140
|
md_processing/md_commands/glossary_commands.py,sha256=c4o0MTsdtTTMkPk5LNBgDnCI8PqQn_y_wkcuEYL59yg,54852
|
139
141
|
md_processing/md_commands/project_commands.py,sha256=d4kF-ldz6vqZy50ajxWLoupZs4wJvBShJScDqfH8O4U,8050
|
140
142
|
md_processing/md_processing_utils/__init__.py,sha256=LxAmxlcji26ziKV4gGar01d95gL9vgToRIeJW8N-Ifs,80
|
141
143
|
md_processing/md_processing_utils/common_md_proc_utils.py,sha256=vIjifi4vvdKRuM3zCwq8SPyoN84GO4RC0ucWQA5OkUc,33712
|
142
144
|
md_processing/md_processing_utils/common_md_utils.py,sha256=3caJTJL8wxlFOIKPgL-BMxT9ap60EAYKw6cpBziRYYA,5450
|
143
145
|
md_processing/md_processing_utils/extraction_utils.py,sha256=780oJsXvW50kX2d64FQIwJQTigQuNiLVRitAEzComQM,20066
|
144
|
-
md_processing/md_processing_utils/md_processing_constants.py,sha256=
|
146
|
+
md_processing/md_processing_utils/md_processing_constants.py,sha256=IivXaFrzEzAt3st9QKvJGOXaGPvUTfeyG3RG92RuJzM,5989
|
145
147
|
md_processing/md_processing_utils/message_constants.py,sha256=UBf18obM83umM6zplR7ychre4xLRbBnTzidHDZ2gNvM,548
|
146
148
|
pyegeria/.DS_Store,sha256=aExDotxdVFK-8C6Es8SJjvtOsGrm-SknQULFzsFDZCQ,6148
|
147
149
|
pyegeria/README.md,sha256=PwX5OC7-YSZUCIsoyHh1O-WBM2hE84sm3Bd4O353NOk,1464
|
@@ -157,7 +159,7 @@ pyegeria/classification_manager_omvs.py,sha256=n55-62Mby-_5pxPGaz3nkjM9NWlY4PzSl
|
|
157
159
|
pyegeria/collection_manager_omvs.py,sha256=Z5Eu_s7l0k5ESzMxUUuasxgT-h1HtZV1b38jZ6BTE_I,120281
|
158
160
|
pyegeria/core_omag_server_config.py,sha256=pNQpocICkZx8sRsTw5DPUe-TFyxlIo1U88qqgci_f7I,97764
|
159
161
|
pyegeria/create_tech_guid_lists.py,sha256=hf5q8Xrdsz-bqeIW3yTORZ1XB6_BrKzLDWWwC_bNG2g,4811
|
160
|
-
pyegeria/data_designer_omvs.py,sha256=
|
162
|
+
pyegeria/data_designer_omvs.py,sha256=pCiD5KPuvIktuS3Sm_lfMhW1PI7UT29bqDFNmTUMe5Q,186076
|
161
163
|
pyegeria/dr.egeria spec.md,sha256=QC_z3EqJ0WW18NYQFW_AtqO4SMWH5MJNVmM--54VzX4,959
|
162
164
|
pyegeria/egeria_cat_client.py,sha256=d8dQNPLzL4efi99OJfH1T-Rt1N0k9Rf9LX8LpuhiFls,2179
|
163
165
|
pyegeria/egeria_client.py,sha256=egGv41eb94P_lWIQ54I_90WT_IukJ_J6ZLOYCHpx2js,4676
|
@@ -186,8 +188,8 @@ pyegeria/template_manager_omvs.py,sha256=chBljs1vy5wr9DRAtbvIt4Cob_7HxGfxLkCNlDT
|
|
186
188
|
pyegeria/utils.py,sha256=GCt1C0bp0Xng1ahzbZhzV9qQwH7Dj93IaCt2dvWb-sg,5417
|
187
189
|
pyegeria/valid_metadata_omvs.py,sha256=Xq9DqBQvBFFJzaFIRKcVZ2k4gJvSh9yeXs_j-O3vn1w,65050
|
188
190
|
pyegeria/x_action_author_omvs.py,sha256=RcqSzahUKCtvb_3u_wyintAlc9WFkC_2v0E12TZs8lQ,6433
|
189
|
-
pyegeria-5.3.9.9.
|
190
|
-
pyegeria-5.3.9.9.
|
191
|
-
pyegeria-5.3.9.9.
|
192
|
-
pyegeria-5.3.9.9.
|
193
|
-
pyegeria-5.3.9.9.
|
191
|
+
pyegeria-5.3.9.9.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
192
|
+
pyegeria-5.3.9.9.5.dist-info/METADATA,sha256=iRyBCg5jAj0GGOQ5Sykps5EOYulFw_i0DZOahwNhFiY,2759
|
193
|
+
pyegeria-5.3.9.9.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
194
|
+
pyegeria-5.3.9.9.5.dist-info/entry_points.txt,sha256=t-jdafZ1zTF11pehQeRmmXrnzbaH2zKSiQPu2GfD-Eo,5987
|
195
|
+
pyegeria-5.3.9.9.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|