sunholo 0.88.2__py3-none-any.whl → 0.88.3__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.
sunholo/cli/cli_init.py CHANGED
@@ -26,15 +26,18 @@ sunholo init my_genai_project
26
26
 
27
27
  This will create a new directory named `my_genai_project` with the template files, allowing users to start building their GenAI application.
28
28
  """
29
+ from .sun_rich import console
30
+
29
31
  project_name = args.project_name
30
32
  current_dir = os.getcwd() # This captures the current directory where the command is run
31
33
  project_dir = os.path.join(current_dir, project_name)
32
34
 
33
- print(f"Initializing project: {project_name} in directory: {project_dir}")
35
+ console.rule(project_name)
36
+ console.print(f"Initializing in directory: {project_dir}")
34
37
 
35
38
  # Create project directory
36
39
  if os.path.exists(project_dir):
37
- print(f"Directory {project_dir} already exists. Please choose a different project name.")
40
+ console.print(f"[bold red]ERROR: Directory {project_dir} already exists. Please choose a different project name.[/bold red]")
38
41
  return
39
42
 
40
43
  os.makedirs(project_dir)
@@ -97,13 +100,24 @@ This will create a new directory named `my_genai_project` with the template file
97
100
  try:
98
101
  from ..terraform import TerraformVarsEditor
99
102
  editor = TerraformVarsEditor(tfvars_file, terraform_dir)
100
- editor.update_from_dict(cloud_run_config, 'cloud_run')
101
- print(f"{tfvars_file} file initialized and updated successfully.")
103
+ editor.update_from_dict(cloud_run_config, 'cloud_run_autogenerated')
102
104
  except ImportError as e:
103
- print(f"Error initializing TerraformVarsEditor: {e}")
105
+ console.print(f"Error initializing TerraformVarsEditor: {e}")
106
+
107
+ from rich.panel import Panel
108
+
109
+ console.print(
110
+ Panel((
111
+ "Next steps: \n"
112
+ f" - Navigate to [orange]{project_dir}/config[/orange] and customize VAC configuration files.\n"
113
+ f" - Add your own GenAI app logic to [orange]{project_dir}/vac_service.py[/orange]\n"
114
+ f" - Check terraform [orange]{terraform_dir}/generated.tfvars[/orange] for Multivac deployment"
115
+ ),
116
+ title=f"Project [bold orange]{project_name}[/bold orange] initialized successfully.",
117
+ subtitle=project_dir),
118
+ )
119
+ console.rule()
104
120
 
105
- print(f"Project {project_name} initialized successfully.")
106
- print(f"Navigate to {project_dir} and customize the configuration files in the 'config' directory.")
107
121
 
108
122
  def setup_init_subparser(subparsers):
109
123
  """
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sunholo
3
- Version: 0.88.2
3
+ Version: 0.88.3
4
4
  Summary: Large Language Model DevOps - a package to help deploy LLMs to the Cloud.
5
5
  Home-page: https://github.com/sunholo-data/sunholo-py
6
- Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.88.2.tar.gz
6
+ Download-URL: https://github.com/sunholo-data/sunholo-py/archive/refs/tags/v0.88.3.tar.gz
7
7
  Author: Holosun ApS
8
8
  Author-email: multivac@sunholo.com
9
9
  License: Apache License, Version 2.0
@@ -44,7 +44,7 @@ sunholo/chunker/splitter.py,sha256=QLAEsJOpEYFZr9-UGZUuAlNVyjfCWb8jvzCHg0rVShE,6
44
44
  sunholo/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  sunholo/cli/chat_vac.py,sha256=jTmCt62U4uqJjeGp_XfIbxnafAAOhQAJMi8TxSkeKlM,23164
46
46
  sunholo/cli/cli.py,sha256=q-ATmnWnc_PPo2q31xhqpp-m3GtOSBoqh0gvMeSo4XU,4374
47
- sunholo/cli/cli_init.py,sha256=jifczqRd4ATrfUPl-LYCpuhURZiEwqAy1MaAgpSdxQ4,5025
47
+ sunholo/cli/cli_init.py,sha256=UyTM4hmHoaqUmDojvtxObBc1cfdj8rmUZwjc8-JdoXc,5486
48
48
  sunholo/cli/configs.py,sha256=QUM9DvKOdZmEQRM5uI3Nh887T0YDiSMr7O240zTLqws,4546
49
49
  sunholo/cli/deploy.py,sha256=zxdwUsRTRMC8U5vyRv0JiKBLFn84Ug_Tc88-_h9hJSs,1609
50
50
  sunholo/cli/embedder.py,sha256=v-FKiSPHaQzB6ctClclYueIf3bf3CqYtC1oRgPfT4dY,5566
@@ -143,9 +143,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
143
143
  sunholo/vertex/memory_tools.py,sha256=q_phxgGX2TG2j2MXNULF2xGzQnQPENwjPN9nZ_A9Gh0,7526
144
144
  sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
145
145
  sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
146
- sunholo-0.88.2.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
147
- sunholo-0.88.2.dist-info/METADATA,sha256=HUlu0wOukUKSs4pQW1k2F3xwu8x6nQD8WRO4dukQGKk,7706
148
- sunholo-0.88.2.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
149
- sunholo-0.88.2.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
150
- sunholo-0.88.2.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
151
- sunholo-0.88.2.dist-info/RECORD,,
146
+ sunholo-0.88.3.dist-info/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
147
+ sunholo-0.88.3.dist-info/METADATA,sha256=B38eoaQdtjFFMtkaxwW5eEA3v7fC4lqQgEsj0jA0OuI,7706
148
+ sunholo-0.88.3.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
149
+ sunholo-0.88.3.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
150
+ sunholo-0.88.3.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
151
+ sunholo-0.88.3.dist-info/RECORD,,