77
88"""
99
10- import time
1110import argparse
1211
13- from rich . box import Box
14- from rich .markdown import Markdown
12+ from rich import print
13+ from rich .panel import Panel
1514from rich .prompt import Prompt
16-
17- from pyegeria ._exceptions import (
18- InvalidParameterException ,
19- PropertyServerException ,
20- UserNotAuthorizedException ,
21- print_exception_response ,
22- )
23- from rich .table import Table
24- from rich .live import Live
2515from rich .text import Text
2616from rich .tree import Tree
27- from rich .markdown import Markdown
2817
29- from rich import print
30- from rich .console import Group
31- from rich .panel import Panel
32- from rich import box , align
33- from rich .layout import Layout
34- import rich
35- from pyegeria import (CollectionManager , UserNotAuthorizedException , PropertyServerException ,
18+ from pyegeria import (UserNotAuthorizedException , PropertyServerException ,
3619 InvalidParameterException , AutomatedCuration )
20+ from pyegeria ._exceptions import (
21+ print_exception_response ,
22+ )
3723
3824disable_ssl_warnings = True
3925
@@ -95,7 +81,7 @@ def view_tech_details(a_client: AutomatedCuration, root_collection_name: str, tr
9581 print_exception_response (e )
9682
9783
98- if __name__ == "__main__" :
84+ def main () :
9985 parser = argparse .ArgumentParser ()
10086
10187 parser .add_argument ("--server" , help = "Name of the server to display status for" )
@@ -109,3 +95,6 @@ def view_tech_details(a_client: AutomatedCuration, root_collection_name: str, tr
10995
11096 tech = Prompt .ask ("Enter the Technology to start from:" , default = "PostgreSQL Server" )
11197 tech_viewer (tech ,server , url , userid )
98+
99+ if __name__ == "__main__" :
100+ main ()
0 commit comments