vantage6 5.0.0a9__tar.gz → 5.0.0a15__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.

Potentially problematic release.


This version of vantage6 might be problematic. Click here for more details.

Files changed (75) hide show
  1. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/PKG-INFO +1 -1
  2. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/setup.py +1 -1
  3. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/tests_cli/test_server_cli.py +1 -1
  4. vantage6-5.0.0a15/vantage6/cli/__build__ +1 -0
  5. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algostore/list.py +1 -1
  6. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algostore/start.py +2 -2
  7. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algostore/stop.py +1 -1
  8. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/common/utils.py +10 -3
  9. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/configuration_manager.py +1 -0
  10. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/context/algorithm_store.py +1 -1
  11. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/context/node.py +1 -1
  12. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/common/__init__.py +1 -1
  13. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/start.py +2 -2
  14. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/import_.py +4 -1
  15. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/list.py +2 -1
  16. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/shell.py +1 -1
  17. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/start.py +5 -2
  18. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/stop.py +2 -2
  19. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/version.py +2 -2
  20. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/template/algo_store_config.j2 +1 -1
  21. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/template/node_config.j2 +1 -0
  22. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/template/server_config.j2 +1 -1
  23. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6.egg-info/PKG-INFO +1 -1
  24. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6.egg-info/requires.txt +3 -3
  25. vantage6-5.0.0a9/vantage6/cli/__build__ +0 -1
  26. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/setup.cfg +0 -0
  27. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/tests_cli/__init__.py +0 -0
  28. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/tests_cli/test_example.py +0 -0
  29. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/tests_cli/test_node_cli.py +0 -0
  30. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/tests_cli/test_wizard.py +0 -0
  31. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/__init__.py +0 -0
  32. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/_version.py +0 -0
  33. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algorithm/create.py +0 -0
  34. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algorithm/update.py +0 -0
  35. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algostore/attach.py +0 -0
  36. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algostore/files.py +0 -0
  37. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algostore/new.py +0 -0
  38. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/algostore/remove.py +0 -0
  39. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/cli.py +0 -0
  40. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/common/decorator.py +0 -0
  41. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/common/start.py +0 -0
  42. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/configuration_wizard.py +0 -0
  43. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/context/__init__.py +0 -0
  44. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/context/base_server.py +0 -0
  45. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/context/server.py +0 -0
  46. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/globals.py +0 -0
  47. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/attach.py +0 -0
  48. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/clean.py +0 -0
  49. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/create_private_key.py +0 -0
  50. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/files.py +0 -0
  51. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/list.py +0 -0
  52. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/new.py +0 -0
  53. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/remove.py +0 -0
  54. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/restart.py +0 -0
  55. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/set_api_key.py +0 -0
  56. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/stop.py +0 -0
  57. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/node/version.py +0 -0
  58. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/rabbitmq/__init__.py +0 -0
  59. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/rabbitmq/definitions.py +0 -0
  60. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/rabbitmq/queue_manager.py +0 -0
  61. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/rabbitmq/rabbitmq.config +0 -0
  62. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/attach.py +0 -0
  63. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/common/__init__.py +0 -0
  64. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/files.py +0 -0
  65. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/new.py +0 -0
  66. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/server/remove.py +0 -0
  67. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/template/server_import_config.j2 +0 -0
  68. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/test/common/diagnostic_runner.py +0 -0
  69. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/test/feature_tester.py +0 -0
  70. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/test/integration_test.py +0 -0
  71. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6/cli/utils.py +0 -0
  72. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6.egg-info/SOURCES.txt +0 -0
  73. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6.egg-info/dependency_links.txt +0 -0
  74. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6.egg-info/entry_points.txt +0 -0
  75. {vantage6-5.0.0a9 → vantage6-5.0.0a15}/vantage6.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vantage6
3
- Version: 5.0.0a9
3
+ Version: 5.0.0a15
4
4
  Summary: vantage6 command line interface
5
5
  Home-page: https://github.com/vantage6/vantage6
6
6
  Requires-Python: >=3.10
@@ -38,7 +38,7 @@ setup(
38
38
  "copier==9.2.0",
39
39
  "docker==7.1.0",
40
40
  "ipython==8.10.0",
41
- "jinja2==3.1.5",
41
+ "jinja2==3.1.6",
42
42
  "pandas>=1.5.3",
43
43
  "questionary==1.10.0",
44
44
  "rich==13.5.2",
@@ -133,7 +133,7 @@ class ServerCLITest(unittest.TestCase):
133
133
  """Stop server without errors."""
134
134
 
135
135
  container1 = MagicMock()
136
- container1.name = f"{APPNAME}-iknl-system-{InstanceType.SERVER}"
136
+ container1.name = f"{APPNAME}-iknl-system-{InstanceType.SERVER.value}"
137
137
  containers.containers.list.return_value = [container1]
138
138
 
139
139
  runner = CliRunner()
@@ -0,0 +1 @@
1
+ 15
@@ -12,4 +12,4 @@ def cli_algo_store_configuration_list() -> None:
12
12
  """
13
13
  check_docker_running()
14
14
 
15
- get_server_configuration_list(InstanceType.ALGORITHM_STORE)
15
+ get_server_configuration_list(InstanceType.ALGORITHM_STORE.value)
@@ -54,7 +54,7 @@ def cli_algo_store_start(
54
54
  Start the algorithm store server.
55
55
  """
56
56
  info("Starting algorithm store...")
57
- docker_client = check_for_start(ctx, InstanceType.ALGORITHM_STORE)
57
+ docker_client = check_for_start(ctx, InstanceType.ALGORITHM_STORE.value)
58
58
 
59
59
  image = get_image(image, ctx, "algorithm-store", DEFAULT_ALGO_STORE_IMAGE)
60
60
 
@@ -91,7 +91,7 @@ def cli_algo_store_start(
91
91
  mounts=mounts,
92
92
  detach=True,
93
93
  labels={
94
- f"{APPNAME}-type": InstanceType.ALGORITHM_STORE,
94
+ f"{APPNAME}-type": InstanceType.ALGORITHM_STORE.value,
95
95
  "name": ctx.config_file_name,
96
96
  },
97
97
  environment=environment_vars,
@@ -23,7 +23,7 @@ def cli_algo_store_stop(ctx: AlgorithmStoreContext, all_stores: bool):
23
23
  client = docker.from_env()
24
24
 
25
25
  running_stores = client.containers.list(
26
- filters={"label": f"{APPNAME}-type={InstanceType.ALGORITHM_STORE}"}
26
+ filters={"label": f"{APPNAME}-type={InstanceType.ALGORITHM_STORE.value}"}
27
27
  )
28
28
 
29
29
  if not running_stores:
@@ -1,3 +1,4 @@
1
+ import enum
1
2
  import questionary as q
2
3
  from colorama import Fore, Style
3
4
  import click
@@ -88,7 +89,11 @@ def get_server_configuration_list(instance_type: InstanceType.SERVER) -> None:
88
89
  client = docker.from_env()
89
90
  ctx_class = select_context_class(instance_type)
90
91
 
91
- running_server_names = get_running_servers(client, instance_type)
92
+ instance_type_value = (
93
+ instance_type.value if isinstance(instance_type, enum.Enum) else instance_type
94
+ )
95
+
96
+ running_server_names = get_running_servers(client, instance_type_value)
92
97
  header = "\nName" + (21 * " ") + "Status" + (10 * " ") + "System/User"
93
98
 
94
99
  click.echo(header)
@@ -102,7 +107,8 @@ def get_server_configuration_list(instance_type: InstanceType.SERVER) -> None:
102
107
  for config in configs:
103
108
  status = (
104
109
  running
105
- if f"{APPNAME}-{config.name}-system-{instance_type}" in running_server_names
110
+ if f"{APPNAME}-{config.name}-system-{instance_type_value}"
111
+ in running_server_names
106
112
  else stopped
107
113
  )
108
114
  click.echo(f"{config.name:25}" f"{status:25} System ")
@@ -112,7 +118,8 @@ def get_server_configuration_list(instance_type: InstanceType.SERVER) -> None:
112
118
  for config in configs:
113
119
  status = (
114
120
  running
115
- if f"{APPNAME}-{config.name}-user-{instance_type}" in running_server_names
121
+ if f"{APPNAME}-{config.name}-user-{instance_type_value}"
122
+ in running_server_names
116
123
  else stopped
117
124
  )
118
125
  click.echo(f"{config.name:25}" f"{status:25} User ")
@@ -29,6 +29,7 @@ class ServerConfiguration(Configuration):
29
29
  "allow_drop_all": Use(bool),
30
30
  "logging": {**LOGGING_VALIDATORS, "file": Use(str)},
31
31
  Optional("server_name"): str,
32
+ Optional("runs_data_cleanup_days"): Use(int),
32
33
  }
33
34
 
34
35
 
@@ -53,7 +53,7 @@ class AlgorithmStoreContext(BaseServerContext):
53
53
  str
54
54
  Server's docker container name
55
55
  """
56
- return f"{APPNAME}-{self.name}-{self.scope}-{ServerType.ALGORITHM_STORE}"
56
+ return f"{APPNAME}-{self.name}-{self.scope}-{ServerType.ALGORITHM_STORE.value}"
57
57
 
58
58
  @classmethod
59
59
  def from_external_config_file(
@@ -136,7 +136,7 @@ class NodeContext(AppContext):
136
136
  Path
137
137
  Path to the data folder
138
138
  """
139
- return AppContext.type_data_folder(InstanceType.NODE, system_folders)
139
+ return AppContext.type_data_folder(InstanceType.NODE.value, system_folders)
140
140
 
141
141
  @property
142
142
  def databases(self) -> dict:
@@ -130,6 +130,6 @@ def find_running_node_names(client: docker.DockerClient) -> list[str]:
130
130
  List of names of running nodes
131
131
  """
132
132
  running_nodes = client.containers.list(
133
- filters={"label": f"{APPNAME}-type={InstanceType.NODE}"}
133
+ filters={"label": f"{APPNAME}-type={InstanceType.NODE.value}"}
134
134
  )
135
135
  return [node.name for node in running_nodes]
@@ -78,7 +78,7 @@ def cli_node_start(
78
78
 
79
79
  # check that this node is not already running
80
80
  running_nodes = docker_client.containers.list(
81
- filters={"label": f"{APPNAME}-type={InstanceType.NODE}"}
81
+ filters={"label": f"{APPNAME}-type={InstanceType.NODE.value}"}
82
82
  )
83
83
 
84
84
  suffix = "system" if system_folders else "user"
@@ -306,7 +306,7 @@ def cli_node_start(
306
306
  volumes=volumes,
307
307
  detach=True,
308
308
  labels={
309
- f"{APPNAME}-type": InstanceType.NODE,
309
+ f"{APPNAME}-type": InstanceType.NODE.value,
310
310
  "system": str(system_folders),
311
311
  "name": ctx.config_file_name,
312
312
  },
@@ -132,7 +132,10 @@ def cli_server_import(
132
132
  command=cmd,
133
133
  mounts=mounts,
134
134
  detach=True,
135
- labels={f"{APPNAME}-type": InstanceType.SERVER, "name": ctx.config_file_name},
135
+ labels={
136
+ f"{APPNAME}-type": InstanceType.SERVER.value,
137
+ "name": ctx.config_file_name,
138
+ },
136
139
  environment=environment_vars,
137
140
  auto_remove=not keep,
138
141
  tty=True,
@@ -11,4 +11,5 @@ def cli_server_configuration_list() -> None:
11
11
  Print the available server configurations.
12
12
  """
13
13
  check_docker_running()
14
- get_server_configuration_list(InstanceType.SERVER)
14
+
15
+ get_server_configuration_list(InstanceType.SERVER.value)
@@ -28,7 +28,7 @@ def cli_server_shell(ctx: ServerContext) -> None:
28
28
  docker_client = docker.from_env()
29
29
 
30
30
  running_servers = docker_client.containers.list(
31
- filters={"label": f"{APPNAME}-type={InstanceType.SERVER}"}
31
+ filters={"label": f"{APPNAME}-type={InstanceType.SERVER.value}"}
32
32
  )
33
33
 
34
34
  if ctx.docker_container_name not in [s.name for s in running_servers]:
@@ -83,7 +83,7 @@ def cli_server_start(
83
83
  Start the server.
84
84
  """
85
85
  info("Starting server...")
86
- docker_client = check_for_start(ctx, InstanceType.SERVER)
86
+ docker_client = check_for_start(ctx, InstanceType.SERVER.value)
87
87
 
88
88
  image = get_image(image, ctx, "server", DEFAULT_SERVER_IMAGE)
89
89
 
@@ -157,7 +157,10 @@ def cli_server_start(
157
157
  command=cmd,
158
158
  mounts=mounts,
159
159
  detach=True,
160
- labels={f"{APPNAME}-type": InstanceType.SERVER, "name": ctx.config_file_name},
160
+ labels={
161
+ f"{APPNAME}-type": InstanceType.SERVER.value,
162
+ "name": ctx.config_file_name,
163
+ },
161
164
  environment=environment_vars,
162
165
  ports={f"{internal_port}/tcp": (ip, port_)},
163
166
  name=ctx.docker_container_name,
@@ -37,7 +37,7 @@ def cli_server_stop(name: str, system_folders: bool, all_servers: bool):
37
37
  client = docker.from_env()
38
38
 
39
39
  running_servers = client.containers.list(
40
- filters={"label": f"{APPNAME}-type={InstanceType.SERVER}"}
40
+ filters={"label": f"{APPNAME}-type={InstanceType.SERVER.value}"}
41
41
  )
42
42
 
43
43
  if not running_servers:
@@ -62,7 +62,7 @@ def cli_server_stop(name: str, system_folders: bool, all_servers: bool):
62
62
  return
63
63
  else:
64
64
  post_fix = "system" if system_folders else "user"
65
- container_name = f"{APPNAME}-{name}-{post_fix}-{InstanceType.SERVER}"
65
+ container_name = f"{APPNAME}-{name}-{post_fix}-{InstanceType.SERVER.value}"
66
66
 
67
67
  if container_name not in running_server_names:
68
68
  error(f"{Fore.RED}{name}{Style.RESET_ALL} is not running!")
@@ -22,10 +22,10 @@ def cli_server_version(name: str, system_folders: bool) -> None:
22
22
  check_docker_running()
23
23
  client = docker.from_env()
24
24
 
25
- running_server_names = get_running_servers(client, InstanceType.SERVER)
25
+ running_server_names = get_running_servers(client, InstanceType.SERVER.value)
26
26
 
27
27
  name = get_server_name(
28
- name, system_folders, running_server_names, InstanceType.SERVER
28
+ name, system_folders, running_server_names, InstanceType.SERVER.value
29
29
  )
30
30
 
31
31
  if name in running_server_names:
@@ -1,4 +1,4 @@
1
- allow_drop_all: 'True'
1
+ allow_drop_all: true
2
2
  description: 'default_algorithm_store'
3
3
  ip: 0.0.0.0
4
4
  logging:
@@ -33,4 +33,5 @@ logging:
33
33
  port: {{ port }}
34
34
  server_url: {{ server_url }}
35
35
  task_dir: {{ task_dir}}
36
+ task_namespace: {{ task_namespace }}
36
37
  {{ user_provided_config }}
@@ -1,4 +1,4 @@
1
- allow_drop_all: 'False'
1
+ allow_drop_all: false
2
2
  api_path: /api
3
3
  description: 'defaultserver'
4
4
  ip: 0.0.0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vantage6
3
- Version: 5.0.0a9
3
+ Version: 5.0.0a15
4
4
  Summary: vantage6 command line interface
5
5
  Home-page: https://github.com/vantage6/vantage6
6
6
  Requires-Python: >=3.10
@@ -3,14 +3,14 @@ colorama==0.4.6
3
3
  copier==9.2.0
4
4
  docker==7.1.0
5
5
  ipython==8.10.0
6
- jinja2==3.1.5
6
+ jinja2==3.1.6
7
7
  pandas>=1.5.3
8
8
  questionary==1.10.0
9
9
  rich==13.5.2
10
10
  schema==0.7.5
11
11
  sqlalchemy==2.0.37
12
- vantage6-common==5.0.0a9
13
- vantage6-client==5.0.0a9
12
+ vantage6-common==5.0.0a15
13
+ vantage6-client==5.0.0a15
14
14
 
15
15
  [dev]
16
16
  coverage==6.4.4
@@ -1 +0,0 @@
1
- 9
File without changes