integrate-ai 9.15.3__tar.gz → 9.15.4.post290__tar.gz

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.
Files changed (28) hide show
  1. {integrate-ai-9.15.3/integrate_ai.egg-info → integrate_ai-9.15.4.post290}/PKG-INFO +2 -2
  2. integrate_ai-9.15.4.post290/integrate_ai/__init__.py +0 -0
  3. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/cli.py +0 -3
  4. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/client.py +0 -3
  5. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/main.py +0 -3
  6. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/onprem_node.py +8 -11
  7. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/sdk.py +0 -3
  8. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/server.py +0 -3
  9. integrate_ai-9.15.4.post290/integrate_ai/utils/__init__.py +0 -0
  10. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/utils/docker_client.py +0 -3
  11. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/utils/error_handling.py +0 -3
  12. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/utils/logger.py +0 -3
  13. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/utils/path_utils.py +0 -3
  14. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/utils/rest_client.py +0 -3
  15. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai/utils/typer_utils.py +0 -3
  16. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290/integrate_ai.egg-info}/PKG-INFO +1 -1
  17. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/setup.py +2 -2
  18. integrate-ai-9.15.3/integrate_ai/__init__.py +0 -3
  19. integrate-ai-9.15.3/integrate_ai/utils/__init__.py +0 -3
  20. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/MANIFEST.in +0 -0
  21. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/backend_shim.py +0 -0
  22. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/SOURCES.txt +0 -0
  23. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/dependency_links.txt +0 -0
  24. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/entry_points.txt +0 -0
  25. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/namespace_packages.txt +0 -0
  26. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/requires.txt +0 -0
  27. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/integrate_ai.egg-info/top_level.txt +0 -0
  28. {integrate-ai-9.15.3 → integrate_ai-9.15.4.post290}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
- Name: integrate-ai
3
- Version: 9.15.3
2
+ Name: integrate_ai
3
+ Version: 9.15.4.post290
4
4
  Summary: integrate.ai
5
5
  Author: integrate.ai
6
6
  License: Copyright (C) 2022 integrate.ai, Inc. All rights reserved.
File without changes
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  """Module containing main CLI entrypoint. Performs any preprocessing required before handing off to Typer."""
5
2
 
6
3
  import os
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  import typer
5
2
  import os
6
3
  import rich
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  """Module containing top-level Typer app functionality."""
5
2
 
6
3
  import subprocess # noqa: F401 - needed for unittest patch
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  import subprocess
5
2
  import sys
6
3
  from integrate_ai.utils.rest_client import RestClient
@@ -31,7 +28,7 @@ def install(
31
28
  ),
32
29
  ):
33
30
  """
34
- This command register this node and save the regiter information to ecsanywhwere_output.txt
31
+ This command register this node and save the regiter information to ecsanywhere_output.txt
35
32
  """
36
33
  if os.geteuid() != 0:
37
34
  rich.print("This command must be run as root.")
@@ -52,15 +49,15 @@ def install(
52
49
  cmd += f' --cluster "{response["cluster_name"]}"'
53
50
  cmd += f' --activation-id "{response["activation_id"]}"'
54
51
  cmd += f' --activation-code "{response["activation_code"]}"'
55
- cmd += "> ecsanywhwere_output.txt"
52
+ cmd += "> ecsanywhere_output.txt"
56
53
 
57
54
  try:
58
55
  rich.print("Registering...")
59
56
  subprocess.run(cmd, shell=True, check=True)
60
57
  rich.print("Agent registered successfully.")
61
- rich.print("Output is saved in ecsanywhwere_output.txt. The file contains instance id, please do not delete.")
58
+ rich.print("Output is saved in ecsanywhere_output.txt. The file contains instance id, please do not delete.")
62
59
  except subprocess.CalledProcessError as e:
63
- rich.print(f"Command failed with error: {e.stderr}, Logs can be found in ecsanywhwere_output.txt.")
60
+ rich.print(f"Command failed with error: {e.stderr}, Logs can be found in ecsanywhere_output.txt.")
64
61
 
65
62
 
66
63
  @app.command()
@@ -125,9 +122,9 @@ def uninstall(
125
122
  rich.print("Leftover directories removed")
126
123
 
127
124
  # Remove instance id file
128
- remove_output_cmd = "sudo rm ecsanywhwere_output.txt"
125
+ remove_output_cmd = "sudo rm ecsanywhere_output.txt"
129
126
  subprocess.run(remove_output_cmd, shell=True, check=True, text=True)
130
- rich.print("ecsanywhwere_output.txt removed")
127
+ rich.print("ecsanywhere_output.txt removed")
131
128
 
132
129
  except subprocess.CalledProcessError as e:
133
130
  rich.print(f"Command failed with error: {e.stderr}")
@@ -135,12 +132,12 @@ def uninstall(
135
132
 
136
133
  def get_instance_id():
137
134
  result = subprocess.check_output(
138
- "grep 'Container instance arn:' ecsanywhwere_output.txt | sed 's#.*/##'", shell=True
135
+ "grep 'Container instance arn:' ecsanywhere_output.txt | sed 's#.*/##'", shell=True
139
136
  )
140
137
  instance_id = result.decode("utf-8").strip().strip('"')
141
138
  if not instance_id:
142
139
  rich.print(
143
- "[red]Error: Could not parse instance ID from ecsanywhwere_output.txt. Please verify the file's contents."
140
+ "[red]Error: Could not parse instance ID from ecsanywhere_output.txt. Please verify the file's contents."
144
141
  )
145
142
  raise Exception("Instance ID not found.")
146
143
  rich.print("Deregister instance with instance_id ", instance_id)
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  """Module containing Typer sdk submodule functionality."""
5
2
 
6
3
  import typer
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  import typer
5
2
  import os
6
3
  from rich import print as rprint
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  """
5
2
  Module containing docker interface functionality.
6
3
 
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  """Module containing exception-related functionality."""
5
2
 
6
3
  from requests import Response # type: ignore
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  from pathlib import Path
5
2
  import os
6
3
 
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  import os
5
2
 
6
3
 
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  """
5
2
  Module containing REST interface functionality.
6
3
 
@@ -1,6 +1,3 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
4
1
  """
5
2
  Module containing miscellaneous typer utilities.
6
3
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: integrate-ai
3
- Version: 9.15.3
3
+ Version: 9.15.4.post290
4
4
  Summary: integrate.ai
5
5
  Author: integrate.ai
6
6
  License: Copyright (C) 2022 integrate.ai, Inc. All rights reserved.
@@ -60,7 +60,7 @@ iai client train --token <IAI_TOKEN> --session <SESSION_ID> --train_path <PATH_T
60
60
  ```
61
61
  """,
62
62
  'long_description_content_type': 'text/markdown',
63
- 'name': 'integrate-ai',
63
+ 'name': 'integrate_ai',
64
64
  'namespace_packages': (
65
65
  ),
66
66
  'package_data': {
@@ -70,5 +70,5 @@ iai client train --token <IAI_TOKEN> --session <SESSION_ID> --train_path <PATH_T
70
70
  'integrate_ai.utils',
71
71
  ),
72
72
  'python_requires': '>=3.7.5',
73
- 'version': '9.15.3',
73
+ 'version': '9.15.4.post290',
74
74
  })
@@ -1,3 +0,0 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-
@@ -1,3 +0,0 @@
1
-
2
- # Copyright (C) Integrate.ai, Inc. All rights reserved.
3
-