pyegeria 5.3.5.2__py3-none-any.whl → 5.3.6.1__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.
- pyegeria/asset_catalog_omvs.py +8 -8
- pyegeria/commands/cat/freddie_jup.py +124 -0
- pyegeria/commands/cat/freddie_jupyter.py +34 -27
- pyegeria/commands/cat/freddie_md.py +45 -42
- pyegeria/commands/cat/freddie_utils.py +112 -52
- pyegeria/commands/cat/freddies-inbox/freddie_intro.md +221 -0
- pyegeria/commands/cat/freddies-inbox/glossary_creation_experiment.ipynb +341 -0
- pyegeria/commands/cat/freddies-inbox/glossary_exp.md +158 -0
- pyegeria/commands/cat/glossary_creation_experiment.ipynb +235 -0
- {pyegeria-5.3.5.2.dist-info → pyegeria-5.3.6.1.dist-info}/METADATA +1 -1
- {pyegeria-5.3.5.2.dist-info → pyegeria-5.3.6.1.dist-info}/RECORD +14 -9
- {pyegeria-5.3.5.2.dist-info → pyegeria-5.3.6.1.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.5.2.dist-info → pyegeria-5.3.6.1.dist-info}/WHEEL +0 -0
- {pyegeria-5.3.5.2.dist-info → pyegeria-5.3.6.1.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,235 @@
|
|
1
|
+
{
|
2
|
+
"cells": [
|
3
|
+
{
|
4
|
+
"cell_type": "markdown",
|
5
|
+
"id": "f211c1736f87555",
|
6
|
+
"metadata": {},
|
7
|
+
"source": [
|
8
|
+
"# This notebook contains experimental Freddie commands\n",
|
9
|
+
"## Lets see if this is parsed\n",
|
10
|
+
"meow"
|
11
|
+
]
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"cell_type": "markdown",
|
15
|
+
"id": "3b321563-4977-496a-963b-9b9dd75de968",
|
16
|
+
"metadata": {},
|
17
|
+
"source": [
|
18
|
+
"# Create Glossary\n",
|
19
|
+
"## Glossary Name\n",
|
20
|
+
"\n",
|
21
|
+
"Egeria-Markdown\n",
|
22
|
+
"\n",
|
23
|
+
"## Language\n",
|
24
|
+
"English\n",
|
25
|
+
"\n",
|
26
|
+
"## Description\n",
|
27
|
+
"\n",
|
28
|
+
"Glossary to describe the vocabulary of Freddie - an Egeria Markdown language to support the exchange of metadata in a Markdown form.\n",
|
29
|
+
"Freddie allows users to input metadata using any text entry system that supports the entry of standard Markdown characters and through post-processing\n",
|
30
|
+
"commands, validates the Egeria content and allows the requests to be sent to Egeria.\n",
|
31
|
+
"\n",
|
32
|
+
"\n",
|
33
|
+
"## Usage\n",
|
34
|
+
"1) (optional) load an example or template for the type of object from Egeria.\n",
|
35
|
+
"2) Create a new document (perhaps from the template) and edit it, adding in the content with the Freddie controlled Markdown language.\n",
|
36
|
+
"3) Process the document to validate and display it before you submit it, Validation may annotate your document with recommendations and potential issues.\n",
|
37
|
+
"4) Submit the document to Egeria using the Freddie_sings command.\n",
|
38
|
+
"\n",
|
39
|
+
"## <Qualified Name>\n",
|
40
|
+
"\n",
|
41
|
+
"## <GUID>\n",
|
42
|
+
"\n"
|
43
|
+
]
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"cell_type": "code",
|
47
|
+
"execution_count": null,
|
48
|
+
"id": "a7295df2-5afb-46ba-889a-94881d883678",
|
49
|
+
"metadata": {
|
50
|
+
"execution": {
|
51
|
+
"iopub.execute_input": "2025-02-27T15:23:58.820592Z",
|
52
|
+
"iopub.status.busy": "2025-02-27T15:23:58.820416Z",
|
53
|
+
"iopub.status.idle": "2025-02-27T15:24:00.802861Z",
|
54
|
+
"shell.execute_reply": "2025-02-27T15:24:00.802425Z",
|
55
|
+
"shell.execute_reply.started": "2025-02-27T15:23:58.820583Z"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
"outputs": [],
|
59
|
+
"source": [
|
60
|
+
"%pip install jupyter-notebook-parser\n",
|
61
|
+
"%pip install marko"
|
62
|
+
]
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"cell_type": "code",
|
66
|
+
"execution_count": null,
|
67
|
+
"id": "d02383df-f617-48f7-be54-e930b6275a7e",
|
68
|
+
"metadata": {
|
69
|
+
"execution": {
|
70
|
+
"iopub.execute_input": "2025-02-27T15:25:33.155175Z",
|
71
|
+
"iopub.status.busy": "2025-02-27T15:25:33.154695Z",
|
72
|
+
"iopub.status.idle": "2025-02-27T15:25:33.162801Z",
|
73
|
+
"shell.execute_reply": "2025-02-27T15:25:33.162362Z",
|
74
|
+
"shell.execute_reply.started": "2025-02-27T15:25:33.155158Z"
|
75
|
+
}
|
76
|
+
},
|
77
|
+
"outputs": [],
|
78
|
+
"source": [
|
79
|
+
"import json\n",
|
80
|
+
"import marko\n",
|
81
|
+
"from jupyter_notebook_parser import JupyterNotebookParser"
|
82
|
+
]
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"cell_type": "code",
|
86
|
+
"execution_count": null,
|
87
|
+
"id": "b5560fcd-afe4-4133-8204-8f2535feb9b6",
|
88
|
+
"metadata": {
|
89
|
+
"execution": {
|
90
|
+
"iopub.execute_input": "2025-02-27T15:25:34.354443Z",
|
91
|
+
"iopub.status.busy": "2025-02-27T15:25:34.354300Z",
|
92
|
+
"iopub.status.idle": "2025-02-27T15:25:34.358702Z",
|
93
|
+
"shell.execute_reply": "2025-02-27T15:25:34.358236Z",
|
94
|
+
"shell.execute_reply.started": "2025-02-27T15:25:34.354435Z"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"outputs": [],
|
98
|
+
"source": [
|
99
|
+
"parsed = JupyterNotebookParser('glossary_creation_experiment.ipynb')\n",
|
100
|
+
"\n",
|
101
|
+
"parsed.get_all_cells() # returns List[Dict], each Dict is a notebook cell\n",
|
102
|
+
"\n",
|
103
|
+
"cells = parsed.get_markdown_cells() # returns List[Dict], each Dict is a markdown cel\n",
|
104
|
+
"indices = parsed.get_markdown_cell_indices() # returns List[int], each is a markdown cell's index\n",
|
105
|
+
"cell_sources = parsed.get_markdown_cell_sources() # returns List[str], each is a markdown cell's text\n",
|
106
|
+
"print(json.dumps(cell_sources, indent = 4))"
|
107
|
+
]
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"cell_type": "code",
|
111
|
+
"execution_count": null,
|
112
|
+
"id": "79dffa96-7e2a-40e3-a0d7-ba363d87b70c",
|
113
|
+
"metadata": {
|
114
|
+
"execution": {
|
115
|
+
"iopub.execute_input": "2025-02-27T15:42:47.354237Z",
|
116
|
+
"iopub.status.busy": "2025-02-27T15:42:47.353238Z",
|
117
|
+
"iopub.status.idle": "2025-02-27T15:42:47.360634Z",
|
118
|
+
"shell.execute_reply": "2025-02-27T15:42:47.360090Z",
|
119
|
+
"shell.execute_reply.started": "2025-02-27T15:42:47.354193Z"
|
120
|
+
}
|
121
|
+
},
|
122
|
+
"outputs": [],
|
123
|
+
"source": [
|
124
|
+
"parsed_markdown = marko.parse(cell_sources[0])\n",
|
125
|
+
"print(type(parsed_markdown))"
|
126
|
+
]
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"cell_type": "code",
|
130
|
+
"execution_count": null,
|
131
|
+
"id": "f3d66578-cf02-4e95-a102-f84fbe3aae95",
|
132
|
+
"metadata": {
|
133
|
+
"execution": {
|
134
|
+
"iopub.execute_input": "2025-02-27T15:44:51.000320Z",
|
135
|
+
"iopub.status.busy": "2025-02-27T15:44:51.000168Z",
|
136
|
+
"iopub.status.idle": "2025-02-27T15:44:51.007790Z",
|
137
|
+
"shell.execute_reply": "2025-02-27T15:44:51.007211Z",
|
138
|
+
"shell.execute_reply.started": "2025-02-27T15:44:51.000309Z"
|
139
|
+
}
|
140
|
+
},
|
141
|
+
"outputs": [],
|
142
|
+
"source": [
|
143
|
+
"parsed_source = marko.parse_source(cell_sources[0])"
|
144
|
+
]
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"cell_type": "code",
|
148
|
+
"execution_count": null,
|
149
|
+
"id": "7cc1a99c-46b3-42c9-8b38-77fb721586a7",
|
150
|
+
"metadata": {
|
151
|
+
"execution": {
|
152
|
+
"iopub.execute_input": "2025-02-27T15:45:28.853162Z",
|
153
|
+
"iopub.status.busy": "2025-02-27T15:45:28.852948Z",
|
154
|
+
"iopub.status.idle": "2025-02-27T15:45:28.856556Z",
|
155
|
+
"shell.execute_reply": "2025-02-27T15:45:28.856159Z",
|
156
|
+
"shell.execute_reply.started": "2025-02-27T15:45:28.853153Z"
|
157
|
+
}
|
158
|
+
},
|
159
|
+
"outputs": [],
|
160
|
+
"source": [
|
161
|
+
"? marko"
|
162
|
+
]
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"cell_type": "code",
|
166
|
+
"execution_count": null,
|
167
|
+
"id": "ca5f9660-1f56-4de9-8127-5e7e4a922b5f",
|
168
|
+
"metadata": {},
|
169
|
+
"outputs": [],
|
170
|
+
"source": []
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"cell_type": "code",
|
174
|
+
"execution_count": null,
|
175
|
+
"id": "e967897d83588f86",
|
176
|
+
"metadata": {},
|
177
|
+
"outputs": [],
|
178
|
+
"source": []
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"cell_type": "markdown",
|
182
|
+
"id": "ed29f0e5d46a7c20",
|
183
|
+
"metadata": {},
|
184
|
+
"source": [
|
185
|
+
"# Create Glossary\n",
|
186
|
+
"## Glossary Name\n",
|
187
|
+
"\n",
|
188
|
+
"Another Test\n",
|
189
|
+
"\n",
|
190
|
+
"## Language\n",
|
191
|
+
"English\n",
|
192
|
+
"\n",
|
193
|
+
"## Description\n",
|
194
|
+
"\n",
|
195
|
+
"Another quick test\n",
|
196
|
+
"\n",
|
197
|
+
"## Usage\n",
|
198
|
+
"Alternate sundays\n",
|
199
|
+
"\n",
|
200
|
+
"## <Qualified Name>\n",
|
201
|
+
"\n",
|
202
|
+
"## <GUID>"
|
203
|
+
]
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"cell_type": "code",
|
207
|
+
"execution_count": null,
|
208
|
+
"id": "e36a5074b9a94c1a",
|
209
|
+
"metadata": {},
|
210
|
+
"outputs": [],
|
211
|
+
"source": []
|
212
|
+
}
|
213
|
+
],
|
214
|
+
"metadata": {
|
215
|
+
"kernelspec": {
|
216
|
+
"display_name": "Python 3 (ipykernel)",
|
217
|
+
"language": "python",
|
218
|
+
"name": "python3"
|
219
|
+
},
|
220
|
+
"language_info": {
|
221
|
+
"codemirror_mode": {
|
222
|
+
"name": "ipython",
|
223
|
+
"version": 3
|
224
|
+
},
|
225
|
+
"file_extension": ".py",
|
226
|
+
"mimetype": "text/x-python",
|
227
|
+
"name": "python",
|
228
|
+
"nbconvert_exporter": "python",
|
229
|
+
"pygments_lexer": "ipython3",
|
230
|
+
"version": "3.12.9"
|
231
|
+
}
|
232
|
+
},
|
233
|
+
"nbformat": 4,
|
234
|
+
"nbformat_minor": 5
|
235
|
+
}
|
@@ -5,7 +5,7 @@ pyegeria/_deprecated_gov_engine.py,sha256=dWNcwVsE5__dF2u4QiIyQrssozzzOjBbLld8Md
|
|
5
5
|
pyegeria/_exceptions.py,sha256=1SrnV194V4_YJNnNAU0myTHQ3dhLn4GF2B2gZcj1u90,18153
|
6
6
|
pyegeria/_globals.py,sha256=a_irI6oGuBLks2LzQHkSdK6xWbPdJCPRjqxK7PKxwgw,991
|
7
7
|
pyegeria/_validators.py,sha256=vP9nuZwucnCo_LrPU7hkitpWzaych5bTZEKE58TaTnQ,12726
|
8
|
-
pyegeria/asset_catalog_omvs.py,sha256=
|
8
|
+
pyegeria/asset_catalog_omvs.py,sha256=P6FceMP0FgakGSOt3ePxpEbsF7nnypzo1aQahjdL_94,29021
|
9
9
|
pyegeria/automated_curation_omvs.py,sha256=tzwCyXL0Hx8UjryBBWcPoEuBRajXZpLuwPQ1vuOg2yc,130349
|
10
10
|
pyegeria/classification_manager_omvs.py,sha256=n55-62Mby-_5pxPGaz3nkjM9NWlY4PzSl3tP0WSnGJU,187212
|
11
11
|
pyegeria/collection_manager_omvs.py,sha256=xNuF3Ki6Rg-TehdbFGS8exSOUXpkQ3X63__OdXuCkc8,101746
|
@@ -14,15 +14,20 @@ pyegeria/commands/__init__.py,sha256=R2o66ctVicTZ8B5VSPtc7EDRKNiNclzFbYX0o2Zg2dQ
|
|
14
14
|
pyegeria/commands/cat/README.md,sha256=-aaAnIT2fcfU63vajgB-RzQk4l4yFdhkyVfSaTPiqRY,967
|
15
15
|
pyegeria/commands/cat/__init__.py,sha256=5OCy4m_yZsnSxdy_gvkCyP_OkjvuWKimqUGHYCJc_qA,450
|
16
16
|
pyegeria/commands/cat/exp_list_glossaries.py,sha256=dC6Bnfm3YSMTKPP146qeslIFRiZnGu5b7iDYE07p4iU,5817
|
17
|
-
pyegeria/commands/cat/
|
18
|
-
pyegeria/commands/cat/
|
19
|
-
pyegeria/commands/cat/
|
17
|
+
pyegeria/commands/cat/freddie_jup.py,sha256=zSuV8kiAGvOVBPnaln-dIY2T03hWQN2HeoLhkodayAo,5686
|
18
|
+
pyegeria/commands/cat/freddie_jupyter.py,sha256=w4qS9Lfzl5v7EwwsPdNnHICFrYX9qoPLsh9zs0wV7vw,6243
|
19
|
+
pyegeria/commands/cat/freddie_md.py,sha256=qEdjnu1vAYe2MhQBcNU5k80j6G6HfoJRcWLd_CcHQDg,7135
|
20
|
+
pyegeria/commands/cat/freddie_utils.py,sha256=Ea59CRvUPsTu7ZRHDIsgAGcE9yopwpdhB3jqpkuvAPo,26743
|
21
|
+
pyegeria/commands/cat/freddies-inbox/freddie_intro.md,sha256=2HGuA2xsRpwqxDtG59iD4hDdCkyHcqE-OhXCT1KgeW8,6512
|
22
|
+
pyegeria/commands/cat/freddies-inbox/glossary_creation_experiment.ipynb,sha256=dbzNu90fCKNohOWVSRBOB1GLyd95x8Qw51I5AkaPtso,11552
|
23
|
+
pyegeria/commands/cat/freddies-inbox/glossary_exp.md,sha256=KsUeTzDe5QkrTmIfIAXR74qZ29oSfRW-NAEn0RYIRqM,2534
|
20
24
|
pyegeria/commands/cat/get_asset_graph.py,sha256=xnXJfpDTVH1TJ2TwE3dtjaXU36Di6-N6JAyhothzz2o,12461
|
21
25
|
pyegeria/commands/cat/get_collection.py,sha256=KbSFoGZeK30_bMCa0BpIuCwBF5ywCX0g4hgDPnI0lEo,5356
|
22
26
|
pyegeria/commands/cat/get_project_dependencies.py,sha256=wDK_lAfR6p4VxYRV6MZE9XgU3OfIRcWKKYn0Xf64w6o,5986
|
23
27
|
pyegeria/commands/cat/get_project_structure.py,sha256=4Jo3F9f7auTnTt_xElsrQ4eA8k8xMge0C5xE-Rjkjcw,5974
|
24
28
|
pyegeria/commands/cat/get_tech_type_elements.py,sha256=IznytHXwDOFriGM6mypV9wuEeM-vT2s66cUzf-IROog,6147
|
25
29
|
pyegeria/commands/cat/glossary_actions.py,sha256=P530QqaYsv3HVVqjJYfwjuTqYOTqWtkcRb8ySFw8hI4,16755
|
30
|
+
pyegeria/commands/cat/glossary_creation_experiment.ipynb,sha256=iyXV1dlabCAoUViMVFzOPGBpgs2DA-2d5QWWCfubXWk,6689
|
26
31
|
pyegeria/commands/cat/list_assets.py,sha256=CdJ2coKvvQv2VwJO0Sp9Eg9Fu_uvpC21tgjrdtT9Yz4,6315
|
27
32
|
pyegeria/commands/cat/list_cert_types.py,sha256=HmrTks0SSYgSMsYz3LqfX5kwDQ6D9KMcynoR_xlWtnE,7137
|
28
33
|
pyegeria/commands/cat/list_collections.py,sha256=kCxl5OuBAGtctHNVmttOe4aJ6r37cGdCFnK1i7A90ls,5996
|
@@ -243,8 +248,8 @@ pyegeria/test_w.html,sha256=q9HCstV2Ar-QiAqswte6hQ8EJuKqr5s99MUuXSxs7a8,11461
|
|
243
248
|
pyegeria/utils.py,sha256=GCt1C0bp0Xng1ahzbZhzV9qQwH7Dj93IaCt2dvWb-sg,5417
|
244
249
|
pyegeria/valid_metadata_omvs.py,sha256=Xq9DqBQvBFFJzaFIRKcVZ2k4gJvSh9yeXs_j-O3vn1w,65050
|
245
250
|
pyegeria/x_action_author_omvs.py,sha256=RcqSzahUKCtvb_3u_wyintAlc9WFkC_2v0E12TZs8lQ,6433
|
246
|
-
pyegeria-5.3.
|
247
|
-
pyegeria-5.3.
|
248
|
-
pyegeria-5.3.
|
249
|
-
pyegeria-5.3.
|
250
|
-
pyegeria-5.3.
|
251
|
+
pyegeria-5.3.6.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
252
|
+
pyegeria-5.3.6.1.dist-info/METADATA,sha256=k3al1uG8prB0TsLkigZTt9psja0fbBYnfH70cTaIwEE,2743
|
253
|
+
pyegeria-5.3.6.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
254
|
+
pyegeria-5.3.6.1.dist-info/entry_points.txt,sha256=9LIuEBIFodyDPNWxZFCJNSzK7-ZS85Kes3eTTYTGWHo,6407
|
255
|
+
pyegeria-5.3.6.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|