pyegeria 5.3.6.2.1__py3-none-any.whl → 5.3.6.2.2__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/commands/cat/freddie_jupyter.py +4 -4
- pyegeria/commands/cat/freddie_md.py +4 -4
- pyegeria/commands/cat/list_glossaries.py +2 -2
- pyegeria/commands/cat/list_terms.py +3 -3
- pyegeria/commands/cli/egeria.py +1 -2
- pyegeria/commands/cli/egeria_cat.py +17 -0
- {pyegeria-5.3.6.2.1.dist-info → pyegeria-5.3.6.2.2.dist-info}/METADATA +1 -1
- {pyegeria-5.3.6.2.1.dist-info → pyegeria-5.3.6.2.2.dist-info}/RECORD +11 -11
- {pyegeria-5.3.6.2.1.dist-info → pyegeria-5.3.6.2.2.dist-info}/LICENSE +0 -0
- {pyegeria-5.3.6.2.1.dist-info → pyegeria-5.3.6.2.2.dist-info}/WHEEL +0 -0
- {pyegeria-5.3.6.2.1.dist-info → pyegeria-5.3.6.2.2.dist-info}/entry_points.txt +0 -0
@@ -44,8 +44,8 @@ EGERIA_JUPYTER = os.environ.get("EGERIA_JUPYTER", False)
|
|
44
44
|
EGERIA_HOME_GLOSSARY_GUID = os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None)
|
45
45
|
EGERIA_GLOSSARY_PATH = os.environ.get("EGERIA_GLOSSARY_PATH", None)
|
46
46
|
EGERIA_ROOT_PATH = os.environ.get("EGERIA_ROOT_PATH", "/Users/dwolfson/localGit/egeria-v5-3/egeria-python")
|
47
|
-
|
48
|
-
|
47
|
+
EGERIA_INBOX_PATH = os.environ.get("EGERIA_INBOX_PATH", "pyegeria/commands/cat/freddies-inbox")
|
48
|
+
EGERIA_OUTBOX_PATH = os.environ.get("EGERIA_OUTBOX_PATH", "pyegeria/commands/cat/freddies-outbox")
|
49
49
|
|
50
50
|
console = Console(width=int(EGERIA_WIDTH))
|
51
51
|
|
@@ -76,7 +76,7 @@ def process_jupyter_notebook(
|
|
76
76
|
|
77
77
|
try:
|
78
78
|
updated = False
|
79
|
-
full_file_path = os.path.join(EGERIA_ROOT_PATH,
|
79
|
+
full_file_path = os.path.join(EGERIA_ROOT_PATH, EGERIA_INBOX_PATH, file_path)
|
80
80
|
click.echo(f"Processing notebook: {full_file_path}")
|
81
81
|
with open(full_file_path, 'r') as f:
|
82
82
|
nb = nbformat.read(f, as_version=4)
|
@@ -112,7 +112,7 @@ def process_jupyter_notebook(
|
|
112
112
|
if updated:
|
113
113
|
path, filename = os.path.split(file_path) # Get both parts
|
114
114
|
new_filename = f"processed-{get_current_datetime_string()}-{filename}" # Create the new filename
|
115
|
-
new_file_path = os.path.join(EGERIA_ROOT_PATH,
|
115
|
+
new_file_path = os.path.join(EGERIA_ROOT_PATH, EGERIA_OUTBOX_PATH, new_filename) # Construct the new path
|
116
116
|
os.makedirs(os.path.dirname(new_file_path), exist_ok=True)
|
117
117
|
|
118
118
|
|
@@ -45,8 +45,8 @@ EGERIA_JUPYTER = os.environ.get("EGERIA_JUPYTER", False)
|
|
45
45
|
EGERIA_HOME_GLOSSARY_GUID = os.environ.get("EGERIA_HOME_GLOSSARY_GUID", None)
|
46
46
|
EGERIA_GLOSSARY_PATH = os.environ.get("EGERIA_GLOSSARY_PATH", None)
|
47
47
|
EGERIA_ROOT_PATH = os.environ.get("EGERIA_ROOT_PATH", "/Users/dwolfson/localGit/egeria-v5-3/egeria-python")
|
48
|
-
|
49
|
-
|
48
|
+
EGERIA_INBOX_PATH = os.environ.get("EGERIA_INBOX_PATH", "pyegeria/commands/cat/freddies-inbox")
|
49
|
+
EGERIA_OUTBOX_PATH = os.environ.get("EGERIA_OUTBOX_PATH", "pyegeria/commands/cat/freddies-outbox")
|
50
50
|
|
51
51
|
console = Console(width=int(EGERIA_WIDTH))
|
52
52
|
|
@@ -75,7 +75,7 @@ def process_markdown_file(
|
|
75
75
|
token = client.create_egeria_bearer_token(userid, user_pass)
|
76
76
|
|
77
77
|
updated = False
|
78
|
-
full_file_path = os.path.join(EGERIA_ROOT_PATH,
|
78
|
+
full_file_path = os.path.join(EGERIA_ROOT_PATH, EGERIA_INBOX_PATH, file_path)
|
79
79
|
print(f"Processing Markdown File: {full_file_path}")
|
80
80
|
try:
|
81
81
|
with open(full_file_path, 'r') as f:
|
@@ -146,7 +146,7 @@ def process_markdown_file(
|
|
146
146
|
if updated:
|
147
147
|
path, filename = os.path.split(file_path) # Get both parts
|
148
148
|
new_filename = f"processed-{get_current_datetime_string()}-{filename}" # Create the new filename
|
149
|
-
new_file_path = os.path.join(EGERIA_ROOT_PATH,
|
149
|
+
new_file_path = os.path.join(EGERIA_ROOT_PATH, EGERIA_OUTBOX_PATH, new_filename) # Construct the new path
|
150
150
|
os.makedirs(os.path.dirname(new_file_path), exist_ok=True)
|
151
151
|
|
152
152
|
with open(new_file_path, 'w') as f2:
|
@@ -45,8 +45,8 @@ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
|
|
45
45
|
EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
|
46
46
|
EGERIA_GLOSSARY_PATH = os.environ.get("EGERIA_GLOSSARY_PATH", None)
|
47
47
|
EGERIA_ROOT_PATH = os.environ.get("EGERIA_ROOT_PATH", "/Users/dwolfson/localGit/egeria-v5-3/egeria-python")
|
48
|
-
|
49
|
-
|
48
|
+
EGERIA_INBOX_PATH = os.environ.get("EGERIA_INBOX_PATH", "pyegeria/commands/cat/freddies-inbox")
|
49
|
+
EGERIA_OUTBOX_PATH = os.environ.get("EGERIA_OUTBOX_PATH", "pyegeria/commands/cat/freddies-outbox")
|
50
50
|
|
51
51
|
|
52
52
|
|
@@ -45,8 +45,8 @@ EGERIA_JUPYTER = bool(os.environ.get("EGERIA_JUPYTER", "False"))
|
|
45
45
|
EGERIA_WIDTH = int(os.environ.get("EGERIA_WIDTH", "200"))
|
46
46
|
EGERIA_GLOSSARY_PATH = os.environ.get("EGERIA_GLOSSARY_PATH", None)
|
47
47
|
EGERIA_ROOT_PATH = os.environ.get("EGERIA_ROOT_PATH", "/Users/dwolfson/localGit/egeria-v5-3/egeria-python")
|
48
|
-
|
49
|
-
|
48
|
+
EGERIA_INBOX_PATH = os.environ.get("EGERIA_INBOX_PATH", "pyegeria/commands/cat/freddies-inbox")
|
49
|
+
EGERIA_OUTBOX_PATH = os.environ.get("EGERIA_OUTBOX_PATH", "pyegeria/commands/cat/freddies-outbox")
|
50
50
|
|
51
51
|
|
52
52
|
def display_glossary_terms(
|
@@ -118,7 +118,7 @@ def display_glossary_terms(
|
|
118
118
|
else:
|
119
119
|
action = "Report"
|
120
120
|
try:
|
121
|
-
file_path = os.path.join(EGERIA_ROOT_PATH,
|
121
|
+
file_path = os.path.join(EGERIA_ROOT_PATH, EGERIA_OUTBOX_PATH)
|
122
122
|
file_name = f"Terms-{time.strftime('%Y-%m-%d-%H-%M-%S')}-{action}.md"
|
123
123
|
full_file_path = os.path.join(file_path, file_name)
|
124
124
|
os.makedirs(os.path.dirname(full_file_path), exist_ok=True)
|
pyegeria/commands/cli/egeria.py
CHANGED
@@ -220,7 +220,7 @@ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_v
|
|
220
220
|
|
221
221
|
@click.option(
|
222
222
|
"--outbox_path",
|
223
|
-
default=os.environ.get("
|
223
|
+
default=os.environ.get("EGERIA_OUTBOX_PATH", "distribution-hub/freddies-outbox"),
|
224
224
|
help="Path to outbox files",
|
225
225
|
)
|
226
226
|
|
@@ -246,7 +246,6 @@ def cli(
|
|
246
246
|
glossary_path,
|
247
247
|
inbox_path,
|
248
248
|
outbox_path,
|
249
|
-
|
250
249
|
):
|
251
250
|
"""An Egeria Command Line interface for Operations"""
|
252
251
|
ctx.obj = Config(
|
@@ -141,6 +141,19 @@ from pyegeria.commands.tech.list_asset_types import display_asset_types
|
|
141
141
|
default=os.environ.get("EGERIA_GLOSSARY_PATH", "/home/jovyan/loading-bay/glossary"),
|
142
142
|
help="Path to glossary import/export files",
|
143
143
|
)
|
144
|
+
|
145
|
+
@click.option(
|
146
|
+
"--inbox_path",
|
147
|
+
default=os.environ.get("EGERIA_ROOT_PATH", "/home/jovyan"),
|
148
|
+
help="Path to inbox files",
|
149
|
+
)
|
150
|
+
|
151
|
+
@click.option(
|
152
|
+
"--outbox_path",
|
153
|
+
default=os.environ.get("EGERIA_OUTBOX_PATH", "distribution-hub/freddies-outbox"),
|
154
|
+
help="Path to outbox files",
|
155
|
+
)
|
156
|
+
|
144
157
|
@click.pass_context
|
145
158
|
def cli(
|
146
159
|
ctx,
|
@@ -161,6 +174,8 @@ def cli(
|
|
161
174
|
width,
|
162
175
|
home_glossary_guid,
|
163
176
|
glossary_path,
|
177
|
+
inbox_path,
|
178
|
+
outbox_path,
|
164
179
|
):
|
165
180
|
"""An Egeria Command Line interface for Operations"""
|
166
181
|
ctx.obj = Config(
|
@@ -181,6 +196,8 @@ def cli(
|
|
181
196
|
width,
|
182
197
|
home_glossary_guid,
|
183
198
|
glossary_path,
|
199
|
+
inbox_path,
|
200
|
+
outbox_path
|
184
201
|
)
|
185
202
|
ctx.max_content_width = 250
|
186
203
|
ctx.ensure_object(Config)
|
@@ -15,8 +15,8 @@ pyegeria/commands/cat/README.md,sha256=-aaAnIT2fcfU63vajgB-RzQk4l4yFdhkyVfSaTPiq
|
|
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
17
|
pyegeria/commands/cat/freddie_jup.py,sha256=zSuV8kiAGvOVBPnaln-dIY2T03hWQN2HeoLhkodayAo,5686
|
18
|
-
pyegeria/commands/cat/freddie_jupyter.py,sha256=
|
19
|
-
pyegeria/commands/cat/freddie_md.py,sha256=
|
18
|
+
pyegeria/commands/cat/freddie_jupyter.py,sha256=3-Z_pzOQUiBIBHtpQTrQhKyM3DmKHmyvsTpEcoju-y0,6195
|
19
|
+
pyegeria/commands/cat/freddie_md.py,sha256=vueJ7OahPt5t4OW8eT9JbE7n5kEoU1bLHlnvEStmo8o,7087
|
20
20
|
pyegeria/commands/cat/freddie_utils.py,sha256=r7e1EaUouwAY4sc4VjIr6xtknkhq4wz-UncyWW04IBk,26742
|
21
21
|
pyegeria/commands/cat/freddies-inbox/freddie_intro.md,sha256=2HGuA2xsRpwqxDtG59iD4hDdCkyHcqE-OhXCT1KgeW8,6512
|
22
22
|
pyegeria/commands/cat/freddies-inbox/glossary_creation_experiment.ipynb,sha256=dbzNu90fCKNohOWVSRBOB1GLyd95x8Qw51I5AkaPtso,11552
|
@@ -37,16 +37,16 @@ pyegeria/commands/cat/list_deployed_catalogs.py,sha256=VdN6R9kRVWX-fGIgubOigvMVP
|
|
37
37
|
pyegeria/commands/cat/list_deployed_database_schemas.py,sha256=1Qicke1R2_7Xi3Qf5sp8KJ3_reAIt0z1iaz2sG8Z0Qs,9458
|
38
38
|
pyegeria/commands/cat/list_deployed_databases.py,sha256=ryrBW1CxJRfOeLP978qQwxb5oImqhIsHghtcpWeBIrw,7587
|
39
39
|
pyegeria/commands/cat/list_deployed_servers.py,sha256=_xR7EaaCsxIjTphxmoCZlARoja_vQqZ881pFiEuhw-8,5719
|
40
|
-
pyegeria/commands/cat/list_glossaries.py,sha256=
|
40
|
+
pyegeria/commands/cat/list_glossaries.py,sha256=WZBWEUxWr06ERmuXOIopgsatxXIOpv-VTWY3x5VqPKw,7752
|
41
41
|
pyegeria/commands/cat/list_projects.py,sha256=NzWTuepTGUEyxK-eWvuUxtBgCtNWubVwmz2eqm2UN1c,7997
|
42
42
|
pyegeria/commands/cat/list_tech_type_elements.py,sha256=-9omj5en9dSP1xMSljYVHyfXsuhuE1bO2IFj_bZPhAs,6873
|
43
43
|
pyegeria/commands/cat/list_tech_types.py,sha256=uqZcXHCzAznhEG6WWeM5j-spwUh8ycygFqpVDeXOG-0,4653
|
44
|
-
pyegeria/commands/cat/list_terms.py,sha256=
|
44
|
+
pyegeria/commands/cat/list_terms.py,sha256=TgqHLy73553RUDZPtwN8FUpzO8Dg7hdd2QaHd9-q5Vo,11950
|
45
45
|
pyegeria/commands/cat/list_todos.py,sha256=NitCw0uyVVjmN1hxb1W-I4FbOsa8wQxW2ICyOElHyc8,6556
|
46
46
|
pyegeria/commands/cat/list_user_ids.py,sha256=X5Q-YNEp38saPYDuy9VwdQC5Qpa4HyC3WvAdbyp_P6M,5108
|
47
47
|
pyegeria/commands/cli/__init__.py,sha256=hpTVSMP2gnPRhcAZPdeUEsQ-eaDySlXlk239dNWYmng,292
|
48
|
-
pyegeria/commands/cli/egeria.py,sha256=
|
49
|
-
pyegeria/commands/cli/egeria_cat.py,sha256=
|
48
|
+
pyegeria/commands/cli/egeria.py,sha256=9WaKxD150nwUaiHDt3lIclrJZhDW0XJ9e_Y2C5C_lBk,52668
|
49
|
+
pyegeria/commands/cli/egeria_cat.py,sha256=Z4v0UT8EMavEBJ08VtjfwG5zP5sdlv8Mb7o-lBP2JtY,17043
|
50
50
|
pyegeria/commands/cli/egeria_login_tui.py,sha256=W5ouG3nlN7z2Waa-wzYFS7yyoGfOrK-lNB0FMt2JdOk,9492
|
51
51
|
pyegeria/commands/cli/egeria_my.py,sha256=0KTH7OIeKyp16ZeN7zK5uhadbPfAQsq38GMzJNWYG8g,6386
|
52
52
|
pyegeria/commands/cli/egeria_ops.py,sha256=8W4t2jFGn22OOOtyUAapQH8yyOl1wo09CVNTojRQKvo,12817
|
@@ -250,8 +250,8 @@ pyegeria/test_w.html,sha256=q9HCstV2Ar-QiAqswte6hQ8EJuKqr5s99MUuXSxs7a8,11461
|
|
250
250
|
pyegeria/utils.py,sha256=GCt1C0bp0Xng1ahzbZhzV9qQwH7Dj93IaCt2dvWb-sg,5417
|
251
251
|
pyegeria/valid_metadata_omvs.py,sha256=Xq9DqBQvBFFJzaFIRKcVZ2k4gJvSh9yeXs_j-O3vn1w,65050
|
252
252
|
pyegeria/x_action_author_omvs.py,sha256=RcqSzahUKCtvb_3u_wyintAlc9WFkC_2v0E12TZs8lQ,6433
|
253
|
-
pyegeria-5.3.6.2.
|
254
|
-
pyegeria-5.3.6.2.
|
255
|
-
pyegeria-5.3.6.2.
|
256
|
-
pyegeria-5.3.6.2.
|
257
|
-
pyegeria-5.3.6.2.
|
253
|
+
pyegeria-5.3.6.2.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
254
|
+
pyegeria-5.3.6.2.2.dist-info/METADATA,sha256=1QEKjmLmMedj7Oz6buI3HtF8TPR6xHfBhDozOBhqNOE,2745
|
255
|
+
pyegeria-5.3.6.2.2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
256
|
+
pyegeria-5.3.6.2.2.dist-info/entry_points.txt,sha256=9LIuEBIFodyDPNWxZFCJNSzK7-ZS85Kes3eTTYTGWHo,6407
|
257
|
+
pyegeria-5.3.6.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|