pyegeria 0.7.24__py3-none-any.whl → 0.7.25__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.
@@ -57,11 +57,12 @@ def list_user_ids(server: str,
57
57
  expand=True,
58
58
  # width=500
59
59
  )
60
-
61
- table.add_column("Qualified Name")
60
+ table.add_column("Name")
61
+ table.add_column("Job Title")
62
+ table.add_column("UserId")
62
63
  table.add_column("Created")
63
64
  table.add_column("GUID", width = 38,no_wrap=True)
64
- table.add_column("UserId")
65
+ table.add_column("Qualified Name")
65
66
 
66
67
 
67
68
  if type(elements) is list:
@@ -71,8 +72,16 @@ def list_user_ids(server: str,
71
72
  el_create_time = header['versions']['createTime'][:-10]
72
73
  el_guid = header['guid']
73
74
  el_user_id = element['properties'].get('userId',"---")
75
+ full_name = ''
76
+ job = ''
77
+
78
+ profile = c_client.get_related_elements(el_guid, 'ProfileIdentity')
79
+ if type(profile) is list:
80
+ for rel in profile:
81
+ full_name = rel['relatedElement']['properties'].get('fullName','---')
82
+ job = rel['relatedElement']['properties'].get('jobTitle','---')
74
83
 
75
- table.add_row(el_q_name, el_create_time, el_guid, el_user_id)
84
+ table.add_row(full_name, job, el_user_id, el_create_time, el_guid, el_q_name,)
76
85
 
77
86
  return table
78
87
  else:
@@ -9,6 +9,7 @@ Execute ToDo actions.
9
9
  """
10
10
  import os
11
11
  import time
12
+ from datetime import datetime
12
13
 
13
14
  import click
14
15
 
@@ -47,7 +48,8 @@ EGERIA_USER_PASSWORD = os.environ.get('EGERIA_USER_PASSWORD', 'secret')
47
48
  @click.option('--description', prompt='Description', help='Brief description of To Do item', required=True)
48
49
  @click.option('--type', prompt='Todo Type', help='Type of Todo', required=True, default='forMe')
49
50
  @click.option('--priority', prompt='Todo Priority', type=int, help='Priority of Todo', required=True, default=0)
50
- @click.option('--due', prompt='Due Date', help='Due date of Todo (yyyy-mm-dd)', required=True)
51
+ @click.option('--due', prompt='Due Date', help='Due date of Todo (yyyy-mm-dd)',
52
+ default = datetime.now().strftime("%Y-%m-%d"), required=True)
51
53
  @click.option('--assigned-to', prompt='Assigned to', help='Party the Todo is assigned to', required=True,
52
54
  default=peter_guid)
53
55
  def create_todo(server, url, userid, password, timeout, name, description, type, priority, due, assigned_to):
@@ -317,7 +317,8 @@ class AutomatedCuration(Client):
317
317
  """
318
318
  body = {"templateGUID": TEMPLATE_GUIDS['FileFolder'], "isOwnAnchor": 'true',
319
319
  "placeholderPropertyValues": {"directoryPathName": path_name, "directoryName": folder_name,
320
- "versionIdentifier": version, "fileSystemName": file_system, "description": description, }}
320
+ "versionIdentifier": version, "fileSystemName": file_system,
321
+ "description": description, }}
321
322
  body_s = body_slimmer(body)
322
323
  response = await self._async_create_element_from_template(body_s, server)
323
324
  return str(response)
@@ -390,7 +391,8 @@ class AutomatedCuration(Client):
390
391
  """
391
392
  body = {"templateGUID": TEMPLATE_GUIDS['Unity Catalog Server'], "isOwnAnchor": 'true',
392
393
  "placeholderPropertyValues": {"serverName": server_name, "hostURL": host_url,
393
- "versionIdentifier": version, "portNumber": port, "description": description, }}
394
+ "versionIdentifier": version, "portNumber": port,
395
+ "description": description, }}
394
396
  body_s = body_slimmer(body)
395
397
  response = await self._async_create_element_from_template(body_s, server)
396
398
  return str(response)
@@ -459,7 +461,7 @@ class AutomatedCuration(Client):
459
461
  """
460
462
  body = {"templateGUID": TEMPLATE_GUIDS['Unity Catalog Catalog'], "isOwnAnchor": 'true',
461
463
  "placeholderPropertyValues": {"ucCatalogName": uc_catalog, "serverNetworkAddress": network_address,
462
- "versionIdentifier": version, "description": description, }}
464
+ "versionIdentifier": version, "description": description, }}
463
465
  body_s = body_slimmer(body)
464
466
  response = await self._async_create_element_from_template(body_s, server)
465
467
  return str(response)
@@ -528,8 +530,8 @@ class AutomatedCuration(Client):
528
530
  """
529
531
  body = {"templateGUID": TEMPLATE_GUIDS['Unity Catalog Schema'], "isOwnAnchor": 'true',
530
532
  "placeholderPropertyValues": {"ucCatalogName": uc_catalog, "ucSchemaName": uc_schema,
531
- "serverNetworkAddress": network_address, "versionIdentifier": version,
532
- "description": description, }}
533
+ "serverNetworkAddress": network_address, "versionIdentifier": version,
534
+ "description": description, }}
533
535
  body_s = body_slimmer(body)
534
536
  response = await self._async_create_element_from_template(body_s, server)
535
537
  return str(response)
@@ -612,9 +614,11 @@ class AutomatedCuration(Client):
612
614
  """
613
615
  body = {"templateGUID": TEMPLATE_GUIDS['Unity Catalog Table'], "isOwnAnchor": 'true',
614
616
  "placeholderPropertyValues": {"ucCatalogName": uc_catalog, "ucSchemaName": uc_schema,
615
- "ucTableName": uc_table, "ucTableType": uc_table_type, "ucStorageLocation": uc_storage_loc,
616
- "ucDataSourceFormat": uc_data_source_format, "serverNetworkAddress": network_address,
617
- "versionIdentifier": version, "description": description, }}
617
+ "ucTableName": uc_table, "ucTableType": uc_table_type,
618
+ "ucStorageLocation": uc_storage_loc,
619
+ "ucDataSourceFormat": uc_data_source_format,
620
+ "serverNetworkAddress": network_address,
621
+ "versionIdentifier": version, "description": description, }}
618
622
  body_s = body_slimmer(body)
619
623
  response = await self._async_create_element_from_template(body_s, server)
620
624
  return str(response)
@@ -700,8 +704,8 @@ class AutomatedCuration(Client):
700
704
  """
701
705
  body = {"templateGUID": TEMPLATE_GUIDS['Unity Catalog Function'], "isOwnAnchor": 'true',
702
706
  "placeholderPropertyValues": {"ucCatalogName": uc_catalog, "ucSchemaName": uc_schema,
703
- "ucFunctionName": uc_function, "serverNetworkAddress": network_address,
704
- "versionIdentifier": version, "description": description, }}
707
+ "ucFunctionName": uc_function, "serverNetworkAddress": network_address,
708
+ "versionIdentifier": version, "description": description, }}
705
709
  body_s = body_slimmer(body)
706
710
  response = await self._async_create_element_from_template(body_s, server)
707
711
  return str(response)
@@ -786,9 +790,10 @@ class AutomatedCuration(Client):
786
790
  """
787
791
  body = {"templateGUID": TEMPLATE_GUIDS['Unity Catalog Volume'], "isOwnAnchor": 'true',
788
792
  "placeholderPropertyValues": {"ucCatalogName": uc_catalog, "ucSchemaName": uc_schema,
789
- "ucVolumeName": uc_volume, "ucVolumeType": uc_vol_type, "ucStorageLocation": uc_storage_loc,
790
- "serverNetworkAddress": network_address, "versionIdentifier": version,
791
- "description": description, }}
793
+ "ucVolumeName": uc_volume, "ucVolumeType": uc_vol_type,
794
+ "ucStorageLocation": uc_storage_loc,
795
+ "serverNetworkAddress": network_address, "versionIdentifier": version,
796
+ "description": description, }}
792
797
  body_s = body_slimmer(body)
793
798
  response = await self._async_create_element_from_template(body_s, server)
794
799
  return str(response)
@@ -2398,9 +2403,6 @@ class AutomatedCuration(Client):
2398
2403
  # response = loop.run_until_complete(self._async_initiate_uc_server_survey(uc_server_guid, server))
2399
2404
  # return response
2400
2405
 
2401
-
2402
-
2403
-
2404
2406
  #
2405
2407
  # Initiate general engine action
2406
2408
  #
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyegeria
3
- Version: 0.7.24
3
+ Version: 0.7.25
4
4
  Summary: A python client for Egeria
5
5
  Home-page: https://github.com/odpi/egeria-python
6
6
  License: Apache 2.0
@@ -15,7 +15,7 @@ examples/widgets/cat/list_projects.py,sha256=jP6HoVqGi-w4R1itgdAW1zamPLsgkvjvh8r
15
15
  examples/widgets/cat/list_relationships.py,sha256=lRfnsMUc0KN6Gb3qJoHjAwYGrcvTk3oqQRxln1as9u8,5623
16
16
  examples/widgets/cat/list_tech_types.py,sha256=20T4v6L5qeebSsaL1nGkFMDAIsy2W3A3SMm1RcgFoh0,4609
17
17
  examples/widgets/cat/list_todos.py,sha256=_Pe3h74doX_cOoe0Z5_FvZtETBk3tkw2evfRpRgai5E,6283
18
- examples/widgets/cat/list_user_ids.py,sha256=Nci_3KpLWj3Hcq8mbVcIe-cirV_T5C8A4blMb2iwbss,4232
18
+ examples/widgets/cat/list_user_ids.py,sha256=2FcP6mrZHgbmuU2-QWVGVD5nY6BE-2rMu2UN5_VtLfM,4723
19
19
  examples/widgets/cli/__init__.py,sha256=6d_R0KZBNnJy9EBz9J2xvGFlx-3j_ZPqPCxKgdvYeDQ,291
20
20
  examples/widgets/cli/egeria.py,sha256=Jo1PlADWrjqFVo_ZduEECF-9-wSlJrBYsdM5_MNI0rc,26011
21
21
  examples/widgets/cli/egeria_cat.py,sha256=h029HG863NFocEYiy6hCmIBGdOiLEJQx6WACNXNLUBE,11964
@@ -30,7 +30,7 @@ examples/widgets/my/list_my_roles.py,sha256=DCiNdnoHXQueUE5g73D3oRXfJ6LaUQGbibNt
30
30
  examples/widgets/my/monitor_my_todos.py,sha256=1580SOyq2RPsAyAkRxIpRHRxDvtI1xWfUrxylF6qKH4,6409
31
31
  examples/widgets/my/monitor_open_todos.py,sha256=oYmy5eRA_5BLhtkP8iI6pxci-8y6d13Vcw2F2yLawxY,5407
32
32
  examples/widgets/my/my_profile_actions.py,sha256=SrlC0PSix0b78MCWJdGJAVgai8gbJmYyz1ou2ZVOkIs,3949
33
- examples/widgets/my/todo_actions.py,sha256=WvxoKJZktormxQjV4ShkJPio6YoixeZBA-zl2vDEMP4,8157
33
+ examples/widgets/my/todo_actions.py,sha256=TnQuo6JhofCBi1kmsyjTeUyT2Hs3U6IE10cfKBe0xzY,8248
34
34
  examples/widgets/ops/README.md,sha256=PJsSDcvMv6E6og6y-cwvxFX5lhCII0UCwgKiM1T17MQ,1595
35
35
  examples/widgets/ops/__init__.py,sha256=SCfzF3-aMx8EpqLWmH7JQf13gTmMAtHRbg69oseLvi8,480
36
36
  examples/widgets/ops/engine_actions.py,sha256=i0-_wRJqdKARwnEwPQMJvr5bVEGi2WE9Np0_A-o6k3A,2978
@@ -70,7 +70,7 @@ pyegeria/_globals.py,sha256=1Uc8392wjbiVN5L__RzxC1-U97RMXj77_iUsMSgeAjQ,638
70
70
  pyegeria/_validators.py,sha256=DQuMsATRGxGSBtOrVtXlCgWXGhj6Nh-uqPtCsrUGLxk,12703
71
71
  pyegeria/action_author_omvs.py,sha256=m0wsfmyO-VxRDaPpACeIDw8eVAFu3RVbo45RPCUel9M,6340
72
72
  pyegeria/asset_catalog_omvs.py,sha256=Rlr0RxdJlU6MaapPMGxjqlIqdo46TzNShwx66lTJZvo,25631
73
- pyegeria/automated_curation_omvs.py,sha256=mR8vm4ny4dTjANqsMdAH7NYtZqzH4HkapyBk8FFf7_4,150228
73
+ pyegeria/automated_curation_omvs.py,sha256=P7D0Gh1ptvNEg3tdZVx-cEc_qILOkROw9Vp1oBHrJ40,150793
74
74
  pyegeria/classification_manager_omvs.py,sha256=PzdFm5Sp69QsWeiZ4DAtOfe2BvUXLdSNcj700WEMFgk,184475
75
75
  pyegeria/collection_manager_omvs.py,sha256=aGtzC3P8_YgY2KEzhtO19_H9drStE0hW5hUj-dA7bLo,112649
76
76
  pyegeria/core_omag_server_config.py,sha256=16ld7aBTgO3gGhvFs-_yzwqPsatdCAiKYi005_2evZU,93096
@@ -87,8 +87,8 @@ pyegeria/runtime_manager_omvs.py,sha256=oSVFeG_yBGXIvQR0EClLZqTZ6C5z5ReZzwm8cce8
87
87
  pyegeria/server_operations.py,sha256=1z2wZLdrNZG6HlswY_Eh8qI1mlcjsQ59zO-AMy9XbUU,16605
88
88
  pyegeria/utils.py,sha256=pkVmS3RrbjaS9yz7FtOCwaOfV5FMqz-__Rt5koCnd9c,5374
89
89
  pyegeria/valid_metadata_omvs.py,sha256=aisdRodIwJSkyArAzfm_sEnBELh69xE8k4Nea-vHu8M,36745
90
- pyegeria-0.7.24.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
91
- pyegeria-0.7.24.dist-info/METADATA,sha256=-ANU8DPBhVbFoQlF5flPHC-fAqiMGYI306dBIV6t3-E,2775
92
- pyegeria-0.7.24.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
93
- pyegeria-0.7.24.dist-info/entry_points.txt,sha256=22oy5-EM37ldb_-MPtiJygwXU217h8vb2_zT-7vn-yc,3571
94
- pyegeria-0.7.24.dist-info/RECORD,,
90
+ pyegeria-0.7.25.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
91
+ pyegeria-0.7.25.dist-info/METADATA,sha256=chqPgpdQehv6ZysNxRdANXlm1PcMcF_CHhSHaaFYuZM,2775
92
+ pyegeria-0.7.25.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
93
+ pyegeria-0.7.25.dist-info/entry_points.txt,sha256=22oy5-EM37ldb_-MPtiJygwXU217h8vb2_zT-7vn-yc,3571
94
+ pyegeria-0.7.25.dist-info/RECORD,,