nextmv 0.23.0__tar.gz → 0.25.0__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.
- {nextmv-0.23.0 → nextmv-0.25.0}/PKG-INFO +1 -1
- nextmv-0.25.0/nextmv/__about__.py +1 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/__entrypoint__.py +7 -10
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/__init__.py +3 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/__init__.py +7 -1
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/application.py +555 -50
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/batch_experiment.py +58 -22
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/client.py +2 -0
- nextmv-0.25.0/nextmv/cloud/input_set.py +50 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/manifest.py +157 -8
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/run.py +8 -7
- nextmv-0.25.0/nextmv/cloud/safe.py +83 -0
- nextmv-0.25.0/nextmv/cloud/scenario.py +229 -0
- nextmv-0.25.0/nextmv/deprecated.py +13 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/input.py +74 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/options.py +293 -78
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/output.py +64 -7
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/cloud/app.yaml +21 -0
- nextmv-0.25.0/tests/cloud/test_manifest.py +274 -0
- nextmv-0.25.0/tests/cloud/test_safe_name_id.py +10 -0
- nextmv-0.25.0/tests/cloud/test_scenario.py +136 -0
- nextmv-0.25.0/tests/scripts/options1.py +8 -0
- nextmv-0.25.0/tests/scripts/options2.py +8 -0
- nextmv-0.25.0/tests/scripts/options3.py +8 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/scripts/options4.py +1 -1
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/scripts/options5.py +1 -1
- nextmv-0.25.0/tests/scripts/options6.py +9 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/scripts/options7.py +1 -1
- nextmv-0.23.0/tests/scripts/options2.py → nextmv-0.25.0/tests/scripts/options_deprecated.py +1 -1
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_entrypoint/test_entrypoint.py +1 -1
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_input.py +1 -1
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_options.py +193 -5
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_output.py +1 -1
- nextmv-0.23.0/nextmv/__about__.py +0 -1
- nextmv-0.23.0/nextmv/cloud/input_set.py +0 -24
- nextmv-0.23.0/tests/cloud/test_manifest.py +0 -102
- nextmv-0.23.0/tests/scripts/options1.py +0 -8
- nextmv-0.23.0/tests/scripts/options3.py +0 -8
- nextmv-0.23.0/tests/scripts/options6.py +0 -9
- {nextmv-0.23.0 → nextmv-0.25.0}/.gitignore +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/LICENSE +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/README.md +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/base_model.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/acceptance_test.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/account.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/instance.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/package.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/secrets.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/status.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/cloud/version.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/logger.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/nextmv/model.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/pyproject.toml +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/requirements.txt +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/__init__.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/cloud/__init__.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/cloud/test_application.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/cloud/test_client.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/cloud/test_package.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/scripts/__init__.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_base_model.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_entrypoint/__init__.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_logger.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_model.py +0 -0
- {nextmv-0.23.0 → nextmv-0.25.0}/tests/test_version.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "v0.25.0"
|
|
@@ -9,22 +9,19 @@ human to use it during local development. It is the standard way in which a
|
|
|
9
9
|
|
|
10
10
|
from mlflow.pyfunc import load_model
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
from nextmv
|
|
14
|
-
from nextmv.options import Options
|
|
15
|
-
from nextmv.output import write_local
|
|
12
|
+
import nextmv
|
|
13
|
+
from nextmv import cloud
|
|
16
14
|
|
|
17
15
|
|
|
18
16
|
def main() -> None:
|
|
19
17
|
"""Entry point for the program."""
|
|
20
18
|
|
|
21
|
-
manifest = Manifest.from_yaml(".")
|
|
19
|
+
manifest = cloud.Manifest.from_yaml(".")
|
|
22
20
|
|
|
23
21
|
# Load the options from the manifest.
|
|
24
22
|
options = None
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
options = Options.from_parameters_dict(parameters_dict)
|
|
23
|
+
if manifest.options is not None:
|
|
24
|
+
options = manifest.extract_options()
|
|
28
25
|
|
|
29
26
|
# Load the model.
|
|
30
27
|
loaded_model = load_model(
|
|
@@ -33,11 +30,11 @@ def main() -> None:
|
|
|
33
30
|
)
|
|
34
31
|
|
|
35
32
|
# Load the input and solve the model by using mlflow’s inference API.
|
|
36
|
-
input =
|
|
33
|
+
input = nextmv.load(options=options)
|
|
37
34
|
output = loaded_model.predict(input)
|
|
38
35
|
|
|
39
36
|
# Write the output.
|
|
40
|
-
|
|
37
|
+
nextmv.write(output)
|
|
41
38
|
|
|
42
39
|
|
|
43
40
|
if __name__ == "__main__":
|
|
@@ -6,12 +6,14 @@ from .input import Input as Input
|
|
|
6
6
|
from .input import InputFormat as InputFormat
|
|
7
7
|
from .input import InputLoader as InputLoader
|
|
8
8
|
from .input import LocalInputLoader as LocalInputLoader
|
|
9
|
+
from .input import load as load
|
|
9
10
|
from .input import load_local as load_local
|
|
10
11
|
from .logger import log as log
|
|
11
12
|
from .logger import redirect_stdout as redirect_stdout
|
|
12
13
|
from .logger import reset_stdout as reset_stdout
|
|
13
14
|
from .model import Model as Model
|
|
14
15
|
from .model import ModelConfiguration as ModelConfiguration
|
|
16
|
+
from .options import Option as Option
|
|
15
17
|
from .options import Options as Options
|
|
16
18
|
from .options import Parameter as Parameter
|
|
17
19
|
from .output import Asset as Asset
|
|
@@ -27,6 +29,7 @@ from .output import SeriesData as SeriesData
|
|
|
27
29
|
from .output import Statistics as Statistics
|
|
28
30
|
from .output import Visual as Visual
|
|
29
31
|
from .output import VisualSchema as VisualSchema
|
|
32
|
+
from .output import write as write
|
|
30
33
|
from .output import write_local as write_local
|
|
31
34
|
|
|
32
35
|
VERSION = __version__
|
|
@@ -29,10 +29,12 @@ from .batch_experiment import BatchExperimentMetadata as BatchExperimentMetadata
|
|
|
29
29
|
from .batch_experiment import BatchExperimentRun as BatchExperimentRun
|
|
30
30
|
from .client import Client as Client
|
|
31
31
|
from .input_set import InputSet as InputSet
|
|
32
|
+
from .input_set import ManagedInput as ManagedInput
|
|
32
33
|
from .instance import Instance as Instance
|
|
33
34
|
from .instance import InstanceConfiguration as InstanceConfiguration
|
|
34
35
|
from .manifest import Manifest as Manifest
|
|
35
36
|
from .manifest import ManifestBuild as ManifestBuild
|
|
37
|
+
from .manifest import ManifestOption as ManifestOption
|
|
36
38
|
from .manifest import ManifestPython as ManifestPython
|
|
37
39
|
from .manifest import ManifestPythonModel as ManifestPythonModel
|
|
38
40
|
from .manifest import ManifestRuntime as ManifestRuntime
|
|
@@ -45,12 +47,16 @@ from .run import Metadata as Metadata
|
|
|
45
47
|
from .run import RunConfiguration as RunConfiguration
|
|
46
48
|
from .run import RunInformation as RunInformation
|
|
47
49
|
from .run import RunLog as RunLog
|
|
48
|
-
from .run import
|
|
50
|
+
from .run import RunQueuing as RunQueuing
|
|
49
51
|
from .run import RunResult as RunResult
|
|
50
52
|
from .run import RunType as RunType
|
|
51
53
|
from .run import RunTypeConfiguration as RunTypeConfiguration
|
|
52
54
|
from .run import TrackedRun as TrackedRun
|
|
53
55
|
from .run import TrackedRunStatus as TrackedRunStatus
|
|
56
|
+
from .scenario import Scenario as Scenario
|
|
57
|
+
from .scenario import ScenarioConfiguration as ScenarioConfiguration
|
|
58
|
+
from .scenario import ScenarioInput as ScenarioInput
|
|
59
|
+
from .scenario import ScenarioInputType as ScenarioInputType
|
|
54
60
|
from .secrets import Secret as Secret
|
|
55
61
|
from .secrets import SecretsCollection as SecretsCollection
|
|
56
62
|
from .secrets import SecretsCollectionSummary as SecretsCollectionSummary
|