vantage6 5.0.0a22__tar.gz → 5.0.0a29__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 (92) hide show
  1. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/PKG-INFO +28 -8
  2. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/setup.py +10 -7
  3. vantage6-5.0.0a29/tests_cli/test_client_script.py +23 -0
  4. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/tests_cli/test_server_cli.py +7 -6
  5. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/tests_cli/test_wizard.py +7 -7
  6. vantage6-5.0.0a29/vantage6/cli/__build__ +1 -0
  7. vantage6-5.0.0a29/vantage6/cli/algorithm/generate_algorithm_json.py +531 -0
  8. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algostore/list.py +2 -1
  9. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algostore/start.py +6 -6
  10. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algostore/stop.py +3 -2
  11. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/cli.py +25 -0
  12. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/common/decorator.py +3 -1
  13. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/common/start.py +221 -12
  14. vantage6-5.0.0a29/vantage6/cli/common/stop.py +90 -0
  15. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/common/utils.py +15 -20
  16. vantage6-5.0.0a29/vantage6/cli/config.py +260 -0
  17. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/configuration_manager.py +8 -14
  18. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/configuration_wizard.py +66 -111
  19. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/context/__init__.py +2 -1
  20. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/context/algorithm_store.py +10 -7
  21. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/context/node.py +38 -54
  22. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/context/server.py +36 -5
  23. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/dev/create.py +88 -29
  24. vantage6-5.0.0a29/vantage6/cli/dev/data/km_dataset.csv +2401 -0
  25. vantage6-5.0.0a29/vantage6/cli/dev/remove.py +112 -0
  26. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/globals.py +24 -4
  27. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/common/__init__.py +6 -5
  28. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/new.py +4 -3
  29. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/remove.py +4 -2
  30. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/start.py +33 -42
  31. vantage6-5.0.0a29/vantage6/cli/prometheus/monitoring_manager.py +146 -0
  32. vantage6-5.0.0a29/vantage6/cli/prometheus/prometheus.yml +5 -0
  33. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/files.py +4 -2
  34. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/import_.py +7 -7
  35. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/list.py +2 -1
  36. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/new.py +25 -6
  37. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/shell.py +5 -4
  38. vantage6-5.0.0a29/vantage6/cli/server/start.py +87 -0
  39. vantage6-5.0.0a29/vantage6/cli/server/stop.py +50 -0
  40. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/version.py +5 -4
  41. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/template/algo_store_config.j2 +0 -1
  42. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/template/node_config.j2 +3 -1
  43. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/template/server_import_config.j2 +0 -2
  44. vantage6-5.0.0a29/vantage6/cli/test/algo_test_scripts/algo_test_arguments.py +29 -0
  45. vantage6-5.0.0a29/vantage6/cli/test/algo_test_scripts/algo_test_script.py +92 -0
  46. vantage6-5.0.0a29/vantage6/cli/test/client_script.py +151 -0
  47. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/test/common/diagnostic_runner.py +2 -2
  48. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/test/feature_tester.py +5 -2
  49. vantage6-5.0.0a29/vantage6/cli/use/context.py +46 -0
  50. vantage6-5.0.0a29/vantage6/cli/use/namespace.py +55 -0
  51. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/utils.py +70 -4
  52. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6.egg-info/PKG-INFO +28 -8
  53. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6.egg-info/SOURCES.txt +13 -1
  54. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6.egg-info/requires.txt +4 -3
  55. vantage6-5.0.0a22/vantage6/cli/__build__ +0 -1
  56. vantage6-5.0.0a22/vantage6/cli/dev/remove.py +0 -111
  57. vantage6-5.0.0a22/vantage6/cli/server/start.py +0 -256
  58. vantage6-5.0.0a22/vantage6/cli/server/stop.py +0 -119
  59. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/setup.cfg +0 -0
  60. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/tests_cli/__init__.py +0 -0
  61. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/tests_cli/test_example.py +0 -0
  62. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/tests_cli/test_node_cli.py +0 -0
  63. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/__init__.py +0 -0
  64. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/_version.py +0 -0
  65. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algorithm/create.py +0 -0
  66. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algorithm/update.py +0 -0
  67. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algostore/attach.py +0 -0
  68. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algostore/files.py +0 -0
  69. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algostore/new.py +0 -0
  70. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/algostore/remove.py +0 -0
  71. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/context/base_server.py +0 -0
  72. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/attach.py +0 -0
  73. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/clean.py +0 -0
  74. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/create_private_key.py +0 -0
  75. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/files.py +0 -0
  76. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/list.py +0 -0
  77. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/restart.py +0 -0
  78. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/set_api_key.py +0 -0
  79. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/stop.py +0 -0
  80. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/node/version.py +0 -0
  81. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/rabbitmq/__init__.py +0 -0
  82. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/rabbitmq/definitions.py +0 -0
  83. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/rabbitmq/queue_manager.py +0 -0
  84. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/rabbitmq/rabbitmq.config +0 -0
  85. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/attach.py +0 -0
  86. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/common/__init__.py +0 -0
  87. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/server/remove.py +0 -0
  88. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/template/server_config.j2 +0 -0
  89. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6/cli/test/integration_test.py +0 -0
  90. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6.egg-info/dependency_links.txt +0 -0
  91. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6.egg-info/entry_points.txt +0 -0
  92. {vantage6-5.0.0a22 → vantage6-5.0.0a29}/vantage6.egg-info/top_level.txt +0 -0
@@ -1,11 +1,35 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: vantage6
3
- Version: 5.0.0a22
3
+ Version: 5.0.0a29
4
4
  Summary: vantage6 command line interface
5
5
  Home-page: https://github.com/vantage6/vantage6
6
- Requires-Python: >=3.10
6
+ Requires-Python: >=3.13
7
7
  Description-Content-Type: text/markdown
8
+ Requires-Dist: click==8.1.3
9
+ Requires-Dist: colorama==0.4.6
10
+ Requires-Dist: copier==9.2.0
11
+ Requires-Dist: docker==7.1.0
12
+ Requires-Dist: ipython==8.10.0
13
+ Requires-Dist: jinja2==3.1.6
14
+ Requires-Dist: kubernetes==28.1.0
15
+ Requires-Dist: pandas>=2.2.3
16
+ Requires-Dist: questionary==1.10.0
17
+ Requires-Dist: rich==13.5.2
18
+ Requires-Dist: schema==0.7.5
19
+ Requires-Dist: sqlalchemy==2.0.37
20
+ Requires-Dist: vantage6-common==5.0.0a29
21
+ Requires-Dist: vantage6-client==5.0.0a29
8
22
  Provides-Extra: dev
23
+ Requires-Dist: coverage==6.4.4; extra == "dev"
24
+ Requires-Dist: black; extra == "dev"
25
+ Requires-Dist: pre-commit; extra == "dev"
26
+ Dynamic: description
27
+ Dynamic: description-content-type
28
+ Dynamic: home-page
29
+ Dynamic: provides-extra
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
9
33
 
10
34
  <h1 align="center">
11
35
  <br>
@@ -54,7 +78,7 @@ collaborations. The server contains users, organizations, collaborations, tasks
54
78
  their results. It provides a central access point for both the clients and nodes. The
55
79
  nodes have access to privacy sensitive data and handle computation requests retrieved
56
80
  from the server. Computation request are executed as separate containers on the node.
57
- These containers are connected to containers at other nodes by a VPN network._
81
+ These containers are connected to containers at other nodes by a internal network._
58
82
 
59
83
  ## :books: Quickstart
60
84
 
@@ -169,11 +193,7 @@ with `VERSION` being the full semantic version of the vantage6 infrastructure, e
169
193
  Several other images are used to support the infrastructure:
170
194
 
171
195
  - `harbor2.vantage6.ai/infrastructure/infrastructure-base:VERSION` -> _Base image for the infrastructure_
172
- - `harbor2.vantage6.ai/infrastructure/squid:VERSION` -> _Squid proxy image used for the whitelisting service_
173
196
  - `harbor2.vantage6.ai/infrastructure/alpine` -> _Alpine image used for vpn traffic forwarding_
174
- - `harbor2.vantage6.ai/infrastructure/vpn-client` -> _VPN image used to connect to the VPN_
175
- - `harbor2.vantage6.ai/infrastructure/vpn-configurator` -> _VPN image used for initialization_
176
- - `harbor2.vantage6.ai/infrastructure/ssh-tunnel` -> _SSH tunnel image used for connecting algorithms to external services_
177
197
 
178
198
  And finally there are some images released for algorithm development:
179
199
 
@@ -1,11 +1,11 @@
1
1
  import codecs
2
2
  import os
3
-
4
- from os import path
5
3
  from codecs import open
6
- from setuptools import setup, find_namespace_packages
4
+ from os import path
7
5
  from pathlib import Path
8
6
 
7
+ from setuptools import find_namespace_packages, setup
8
+
9
9
  # get current directory
10
10
  here = Path(path.abspath(path.dirname(__file__)))
11
11
  parent_dir = here.parent.absolute()
@@ -31,7 +31,7 @@ setup(
31
31
  long_description_content_type="text/markdown",
32
32
  url="https://github.com/vantage6/vantage6",
33
33
  packages=find_namespace_packages(),
34
- python_requires=">=3.10",
34
+ python_requires=">=3.13",
35
35
  install_requires=[
36
36
  "click==8.1.3",
37
37
  "colorama==0.4.6",
@@ -39,13 +39,14 @@ setup(
39
39
  "docker==7.1.0",
40
40
  "ipython==8.10.0",
41
41
  "jinja2==3.1.6",
42
- "pandas>=1.5.3",
42
+ "kubernetes==28.1.0",
43
+ "pandas>=2.2.3",
43
44
  "questionary==1.10.0",
44
45
  "rich==13.5.2",
45
46
  "schema==0.7.5",
46
47
  "sqlalchemy==2.0.37",
47
- f'vantage6-common == {version_ns["__version__"]}',
48
- f'vantage6-client == {version_ns["__version__"]}',
48
+ f"vantage6-common == {version_ns['__version__']}",
49
+ f"vantage6-client == {version_ns['__version__']}",
49
50
  ],
50
51
  extras_require={
51
52
  "dev": [
@@ -63,6 +64,8 @@ setup(
63
64
  "template/server_import_config.j2",
64
65
  "template/algo_store_config.j2",
65
66
  "dev/data/olympic_athletes_2016.csv",
67
+ "dev/data/km_dataset.csv",
68
+ "prometheus/prometheus.yml",
66
69
  ],
67
70
  },
68
71
  entry_points={
@@ -0,0 +1,23 @@
1
+ # from click import UsageError
2
+ # from vantage6.cli.test.client_script import cli_test_client_script
3
+
4
+ # import click
5
+ # import unittest
6
+
7
+
8
+ # class TestScriptTest(unittest.TestCase):
9
+ # def test_script_incorrect_usage(self):
10
+ # ctx = click.Context(cli_test_client_script)
11
+
12
+ # with self.assertRaises(UsageError):
13
+ # ctx.invoke(
14
+ # cli_test_client_script,
15
+ # script="path/to/script.py",
16
+ # task_arguments="{'my_arg': 1}",
17
+ # )
18
+
19
+ # with self.assertRaises(UsageError):
20
+ # ctx.invoke(
21
+ # cli_test_client_script,
22
+ # task_arguments="not_a_json",
23
+ # )
@@ -1,18 +1,19 @@
1
1
  import unittest
2
-
3
- from unittest.mock import MagicMock, patch
4
2
  from pathlib import Path
3
+ from unittest.mock import MagicMock, patch
4
+
5
5
  from click.testing import CliRunner
6
6
 
7
7
  from vantage6.common.globals import APPNAME, InstanceType
8
+
8
9
  from vantage6.cli.common.utils import attach_logs
9
- from vantage6.cli.server.start import cli_server_start
10
- from vantage6.cli.server.list import cli_server_configuration_list
10
+ from vantage6.cli.server.attach import cli_server_attach
11
11
  from vantage6.cli.server.files import cli_server_files
12
12
  from vantage6.cli.server.import_ import cli_server_import
13
+ from vantage6.cli.server.list import cli_server_configuration_list
13
14
  from vantage6.cli.server.new import cli_server_new
15
+ from vantage6.cli.server.start import cli_server_start
14
16
  from vantage6.cli.server.stop import cli_server_stop
15
- from vantage6.cli.server.attach import cli_server_attach
16
17
 
17
18
 
18
19
  class ServerCLITest(unittest.TestCase):
@@ -133,7 +134,7 @@ class ServerCLITest(unittest.TestCase):
133
134
  """Stop server without errors."""
134
135
 
135
136
  container1 = MagicMock()
136
- container1.name = f"{APPNAME}-iknl-system-{InstanceType.SERVER.value}"
137
+ container1.name = f"{APPNAME}-iknl-system-{InstanceType.SERVER}"
137
138
  containers.containers.list.return_value = [container1]
138
139
 
139
140
  runner = CliRunner()
@@ -1,15 +1,15 @@
1
1
  import unittest
2
-
3
2
  from pathlib import Path
4
- from unittest.mock import patch, MagicMock
3
+ from unittest.mock import MagicMock, patch
4
+
5
+ from vantage6.common.globals import InstanceType, NodePolicy
5
6
 
6
7
  from vantage6.cli.configuration_wizard import (
7
- node_configuration_questionaire,
8
- server_configuration_questionaire,
9
8
  configuration_wizard,
9
+ node_configuration_questionaire,
10
10
  select_configuration_questionaire,
11
+ server_configuration_questionaire,
11
12
  )
12
- from vantage6.common.globals import InstanceType, NodePolicy
13
13
 
14
14
  module_path = "vantage6.cli.configuration_wizard"
15
15
 
@@ -70,8 +70,8 @@ class WizardTest(unittest.TestCase):
70
70
  for key in keys:
71
71
  self.assertIn(key, config)
72
72
  nested_keys = [
73
- ["policies", NodePolicy.ALLOWED_ALGORITHMS],
74
- ["policies", NodePolicy.ALLOWED_ALGORITHM_STORES],
73
+ ["policies", NodePolicy.ALLOWED_ALGORITHMS.value],
74
+ ["policies", NodePolicy.ALLOWED_ALGORITHM_STORES.value],
75
75
  ]
76
76
  for nesting in nested_keys:
77
77
  current_config = config
@@ -0,0 +1 @@
1
+ 29