trainwave-cli 0.1.7__tar.gz → 0.1.8__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.
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/PKG-INFO +1 -1
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/pyproject.toml +1 -1
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/cli/jobs.py +4 -3
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/cli/setup.py +2 -2
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/README.md +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/__init__.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/api.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/cli/auth.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/cli/offers.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/config/config.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/format_utils.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/io.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/main.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/utils.py +0 -0
- {trainwave_cli-0.1.7 → trainwave_cli-0.1.8}/trainwave_cli/xceptions.py +0 -0
|
@@ -2,6 +2,7 @@ import json
|
|
|
2
2
|
import os
|
|
3
3
|
import sys
|
|
4
4
|
import traceback
|
|
5
|
+
from typing import Optional
|
|
5
6
|
from dataclasses import asdict
|
|
6
7
|
from datetime import datetime, timezone
|
|
7
8
|
from pathlib import Path
|
|
@@ -37,11 +38,11 @@ async def launch( # noqa
|
|
|
37
38
|
setup_command: Annotated[str, typer.Option()],
|
|
38
39
|
run_command: Annotated[str, typer.Option()],
|
|
39
40
|
# Optional params
|
|
40
|
-
organization: Annotated[str, typer.Option()]
|
|
41
|
+
organization: Annotated[Optional[str], typer.Option()] = None,
|
|
41
42
|
expires: Annotated[str, typer.Option()] = "",
|
|
42
43
|
env_vars={}, # dict[str, str] not supported by typer yet
|
|
43
44
|
exclude_gitignore: Annotated[bool, typer.Option()] = True,
|
|
44
|
-
exclude_regex: Annotated[str, typer.Option()]
|
|
45
|
+
exclude_regex: Annotated[Optional[str], typer.Option()] = None,
|
|
45
46
|
# Harware parameters
|
|
46
47
|
image: Annotated[str, typer.Option()] = "",
|
|
47
48
|
hdd_size_mb: Annotated[int, typer.Option()] = 20,
|
|
@@ -49,7 +50,7 @@ async def launch( # noqa
|
|
|
49
50
|
cpus: Annotated[int, typer.Option()] = 0,
|
|
50
51
|
gpus: Annotated[int, typer.Option()] = 0,
|
|
51
52
|
gpu_type: Annotated[str, typer.Option()] = "",
|
|
52
|
-
compliance_soc2: Annotated[bool, typer.Option()]
|
|
53
|
+
compliance_soc2: Annotated[Optional[bool], typer.Option()] = None,
|
|
53
54
|
) -> None:
|
|
54
55
|
api_client = Api(config.api_key, config.endpoint, project)
|
|
55
56
|
# Interpolate environe variables
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import copy
|
|
2
2
|
import time
|
|
3
3
|
import webbrowser
|
|
4
|
-
from typing import Annotated, Any
|
|
4
|
+
from typing import Annotated, Any, Optional
|
|
5
5
|
|
|
6
6
|
import toml
|
|
7
7
|
import typer
|
|
@@ -60,7 +60,7 @@ async def _run_setup_guide(existing_config: dict[str, Any]) -> dict[str, Any]:
|
|
|
60
60
|
@async_command
|
|
61
61
|
@ensure_api_key
|
|
62
62
|
async def default(
|
|
63
|
-
config: Annotated[str
|
|
63
|
+
config: Annotated[Optional[str], typer.Argument()] = None,
|
|
64
64
|
accept: Annotated[bool, "Accept overwrite of config"] = False,
|
|
65
65
|
) -> None:
|
|
66
66
|
config_path = "trainwave.toml"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|