mimiry 0.3.0__tar.gz → 0.3.2__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 (32) hide show
  1. {mimiry-0.3.0 → mimiry-0.3.2}/PKG-INFO +24 -3
  2. {mimiry-0.3.0 → mimiry-0.3.2}/README.md +23 -2
  3. {mimiry-0.3.0 → mimiry-0.3.2}/pyproject.toml +1 -1
  4. {mimiry-0.3.0 → mimiry-0.3.2}/src/Mimiry.egg-info/PKG-INFO +24 -3
  5. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/__init__.py +1 -1
  6. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_cli.py +13 -1
  7. {mimiry-0.3.0 → mimiry-0.3.2}/tests/test_cli.py +11 -0
  8. {mimiry-0.3.0 → mimiry-0.3.2}/setup.cfg +0 -0
  9. {mimiry-0.3.0 → mimiry-0.3.2}/src/Mimiry.egg-info/SOURCES.txt +0 -0
  10. {mimiry-0.3.0 → mimiry-0.3.2}/src/Mimiry.egg-info/dependency_links.txt +0 -0
  11. {mimiry-0.3.0 → mimiry-0.3.2}/src/Mimiry.egg-info/entry_points.txt +0 -0
  12. {mimiry-0.3.0 → mimiry-0.3.2}/src/Mimiry.egg-info/requires.txt +0 -0
  13. {mimiry-0.3.0 → mimiry-0.3.2}/src/Mimiry.egg-info/top_level.txt +0 -0
  14. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/__main__.py +0 -0
  15. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_auth.py +0 -0
  16. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_availability.py +0 -0
  17. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_client.py +0 -0
  18. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_config.py +0 -0
  19. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_serialization.py +0 -0
  20. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_session.py +0 -0
  21. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_setup.py +0 -0
  22. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/_ssh.py +0 -0
  23. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/exceptions.py +0 -0
  24. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/function.py +0 -0
  25. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/image.py +0 -0
  26. {mimiry-0.3.0 → mimiry-0.3.2}/src/mimiry/run.py +0 -0
  27. {mimiry-0.3.0 → mimiry-0.3.2}/tests/test_availability.py +0 -0
  28. {mimiry-0.3.0 → mimiry-0.3.2}/tests/test_bootstrap.py +0 -0
  29. {mimiry-0.3.0 → mimiry-0.3.2}/tests/test_client_volumes.py +0 -0
  30. {mimiry-0.3.0 → mimiry-0.3.2}/tests/test_config.py +0 -0
  31. {mimiry-0.3.0 → mimiry-0.3.2}/tests/test_session.py +0 -0
  32. {mimiry-0.3.0 → mimiry-0.3.2}/tests/test_setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Mimiry
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: Python SDK for serverless compute
5
5
  Author-email: Oliver <oliversorensen39@gmail.com>
6
6
  License: Proprietary
@@ -24,7 +24,7 @@ Requires-Dist: ruff>=0.5; extra == "dev"
24
24
  **Status:** alpha — early access
25
25
  **Backend:** softlaunch.mimiry.com (beta)
26
26
 
27
- Python-native interface for running serverless cloud GPU jobs on Mimiry, with full control over locality and providers.
27
+ Python-native interface for running serverless cloud GPU jobs on Mimiry, with full control over locality and providers — a decorator-based SDK plus a full-featured CLI for managing sessions and volumes.
28
28
 
29
29
  ## Install
30
30
 
@@ -56,6 +56,18 @@ export MIMIRY_SSH_KEY=~/.ssh/mimiry
56
56
 
57
57
  Or pass `ssh_key_path=` explicitly to `mimiry.configure()`.
58
58
 
59
+ ## CLI
60
+
61
+ Installing the package adds the `mimiry` command. To see every command and its
62
+ options:
63
+
64
+ ```bash
65
+ mimiry --help # list all commands (also: mimiry help)
66
+ mimiry <command> --help # options for one command, e.g. `mimiry session create --help`
67
+ ```
68
+
69
+ The sections below cover the common ones; everything is discoverable via `--help`.
70
+
59
71
  ## GPU types and providers
60
72
 
61
73
  Mimiry sources GPUs from both local datacenters and cloud providers across Europe and the US, spanning entry-level cards up to the latest high-end accelerators. You control locality and hardware requirements, as well as which providers to use.
@@ -71,7 +83,7 @@ Filter with `--gpu-family T4`, `--provider gcp`, `--location europe-west4-a`,
71
83
 
72
84
  ## Managing sessions
73
85
 
74
- Run and manage GPU sessions entirely from the CLI — no Python required:
86
+ Run and manage GPU sessions entirely from the CLI:
75
87
 
76
88
  ```bash
77
89
  # Launch a job (omit --command for an interactive box; --wait blocks until it starts)
@@ -161,6 +173,8 @@ print(result.logs)
161
173
 
162
174
  ## What works in this version
163
175
 
176
+ **Python SDK**
177
+
164
178
  - `@mimiry.function(gpu=..., image=...)` decorator
165
179
  - `.remote(*args, **kwargs)` — sync call, returns the function's return value
166
180
  - `.map(iterable)` — runs the function over an iterable, sequentially
@@ -168,6 +182,13 @@ print(result.logs)
168
182
  - `mimiry.run(image, gpu, command)` — raw bash entrypoint
169
183
  - SSH-JWT auth via existing key
170
184
 
185
+ **CLI** (`mimiry --help`)
186
+
187
+ - Sessions: `session create` / `list` / `status` / `logs [--follow]` / `ssh` / `terminate`
188
+ - Volumes: `volume create` / `list` / `status` / `extend` / `delete`
189
+ - Account: `balance`, `quota`, `transactions`, `whoami`, `config`
190
+ - `availability` with `--gpu-family` / `--provider` / `--location` / `--min-vram` / `--available-only`
191
+
171
192
  ## Examples
172
193
 
173
194
  See `examples/`:
@@ -3,7 +3,7 @@
3
3
  **Status:** alpha — early access
4
4
  **Backend:** softlaunch.mimiry.com (beta)
5
5
 
6
- Python-native interface for running serverless cloud GPU jobs on Mimiry, with full control over locality and providers.
6
+ Python-native interface for running serverless cloud GPU jobs on Mimiry, with full control over locality and providers — a decorator-based SDK plus a full-featured CLI for managing sessions and volumes.
7
7
 
8
8
  ## Install
9
9
 
@@ -35,6 +35,18 @@ export MIMIRY_SSH_KEY=~/.ssh/mimiry
35
35
 
36
36
  Or pass `ssh_key_path=` explicitly to `mimiry.configure()`.
37
37
 
38
+ ## CLI
39
+
40
+ Installing the package adds the `mimiry` command. To see every command and its
41
+ options:
42
+
43
+ ```bash
44
+ mimiry --help # list all commands (also: mimiry help)
45
+ mimiry <command> --help # options for one command, e.g. `mimiry session create --help`
46
+ ```
47
+
48
+ The sections below cover the common ones; everything is discoverable via `--help`.
49
+
38
50
  ## GPU types and providers
39
51
 
40
52
  Mimiry sources GPUs from both local datacenters and cloud providers across Europe and the US, spanning entry-level cards up to the latest high-end accelerators. You control locality and hardware requirements, as well as which providers to use.
@@ -50,7 +62,7 @@ Filter with `--gpu-family T4`, `--provider gcp`, `--location europe-west4-a`,
50
62
 
51
63
  ## Managing sessions
52
64
 
53
- Run and manage GPU sessions entirely from the CLI — no Python required:
65
+ Run and manage GPU sessions entirely from the CLI:
54
66
 
55
67
  ```bash
56
68
  # Launch a job (omit --command for an interactive box; --wait blocks until it starts)
@@ -140,6 +152,8 @@ print(result.logs)
140
152
 
141
153
  ## What works in this version
142
154
 
155
+ **Python SDK**
156
+
143
157
  - `@mimiry.function(gpu=..., image=...)` decorator
144
158
  - `.remote(*args, **kwargs)` — sync call, returns the function's return value
145
159
  - `.map(iterable)` — runs the function over an iterable, sequentially
@@ -147,6 +161,13 @@ print(result.logs)
147
161
  - `mimiry.run(image, gpu, command)` — raw bash entrypoint
148
162
  - SSH-JWT auth via existing key
149
163
 
164
+ **CLI** (`mimiry --help`)
165
+
166
+ - Sessions: `session create` / `list` / `status` / `logs [--follow]` / `ssh` / `terminate`
167
+ - Volumes: `volume create` / `list` / `status` / `extend` / `delete`
168
+ - Account: `balance`, `quota`, `transactions`, `whoami`, `config`
169
+ - `availability` with `--gpu-family` / `--provider` / `--location` / `--min-vram` / `--available-only`
170
+
150
171
  ## Examples
151
172
 
152
173
  See `examples/`:
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "Mimiry"
7
- version = "0.3.0"
7
+ version = "0.3.2"
8
8
  description = "Python SDK for serverless compute"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Mimiry
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Summary: Python SDK for serverless compute
5
5
  Author-email: Oliver <oliversorensen39@gmail.com>
6
6
  License: Proprietary
@@ -24,7 +24,7 @@ Requires-Dist: ruff>=0.5; extra == "dev"
24
24
  **Status:** alpha — early access
25
25
  **Backend:** softlaunch.mimiry.com (beta)
26
26
 
27
- Python-native interface for running serverless cloud GPU jobs on Mimiry, with full control over locality and providers.
27
+ Python-native interface for running serverless cloud GPU jobs on Mimiry, with full control over locality and providers — a decorator-based SDK plus a full-featured CLI for managing sessions and volumes.
28
28
 
29
29
  ## Install
30
30
 
@@ -56,6 +56,18 @@ export MIMIRY_SSH_KEY=~/.ssh/mimiry
56
56
 
57
57
  Or pass `ssh_key_path=` explicitly to `mimiry.configure()`.
58
58
 
59
+ ## CLI
60
+
61
+ Installing the package adds the `mimiry` command. To see every command and its
62
+ options:
63
+
64
+ ```bash
65
+ mimiry --help # list all commands (also: mimiry help)
66
+ mimiry <command> --help # options for one command, e.g. `mimiry session create --help`
67
+ ```
68
+
69
+ The sections below cover the common ones; everything is discoverable via `--help`.
70
+
59
71
  ## GPU types and providers
60
72
 
61
73
  Mimiry sources GPUs from both local datacenters and cloud providers across Europe and the US, spanning entry-level cards up to the latest high-end accelerators. You control locality and hardware requirements, as well as which providers to use.
@@ -71,7 +83,7 @@ Filter with `--gpu-family T4`, `--provider gcp`, `--location europe-west4-a`,
71
83
 
72
84
  ## Managing sessions
73
85
 
74
- Run and manage GPU sessions entirely from the CLI — no Python required:
86
+ Run and manage GPU sessions entirely from the CLI:
75
87
 
76
88
  ```bash
77
89
  # Launch a job (omit --command for an interactive box; --wait blocks until it starts)
@@ -161,6 +173,8 @@ print(result.logs)
161
173
 
162
174
  ## What works in this version
163
175
 
176
+ **Python SDK**
177
+
164
178
  - `@mimiry.function(gpu=..., image=...)` decorator
165
179
  - `.remote(*args, **kwargs)` — sync call, returns the function's return value
166
180
  - `.map(iterable)` — runs the function over an iterable, sequentially
@@ -168,6 +182,13 @@ print(result.logs)
168
182
  - `mimiry.run(image, gpu, command)` — raw bash entrypoint
169
183
  - SSH-JWT auth via existing key
170
184
 
185
+ **CLI** (`mimiry --help`)
186
+
187
+ - Sessions: `session create` / `list` / `status` / `logs [--follow]` / `ssh` / `terminate`
188
+ - Volumes: `volume create` / `list` / `status` / `extend` / `delete`
189
+ - Account: `balance`, `quota`, `transactions`, `whoami`, `config`
190
+ - `availability` with `--gpu-family` / `--provider` / `--location` / `--min-vram` / `--available-only`
191
+
171
192
  ## Examples
172
193
 
173
194
  See `examples/`:
@@ -16,7 +16,7 @@ from mimiry.function import function, Function
16
16
  from mimiry.image import Image
17
17
  from mimiry.run import run
18
18
 
19
- __version__ = "0.3.0"
19
+ __version__ = "0.3.2"
20
20
 
21
21
  __all__ = [
22
22
  "__version__",
@@ -409,7 +409,11 @@ def main(argv: list[str] | None = None) -> int:
409
409
  parser.add_argument("--version", action="version", version=f"mimiry {__version__}")
410
410
  parser.add_argument("--ssh-key", help="Path to SSH private key (overrides MIMIRY_SSH_KEY).")
411
411
  parser.add_argument("--api-base", help="API base URL (default: softlaunch.mimiry.com).")
412
- subs = parser.add_subparsers(dest="cmd", required=True)
412
+ subs = parser.add_subparsers(dest="cmd")
413
+
414
+ def _cmd_help(_a: argparse.Namespace) -> int:
415
+ parser.print_help()
416
+ return 0
413
417
 
414
418
  # account
415
419
  subs.add_parser("balance", help="Show account balance.").set_defaults(func=cmd_balance)
@@ -479,6 +483,9 @@ def main(argv: list[str] | None = None) -> int:
479
483
  # sessions alias
480
484
  _add_list_args(subs.add_parser("sessions", help="Alias for `session list`."))
481
485
 
486
+ # `mimiry help` as a friendly alias for `mimiry --help`
487
+ subs.add_parser("help", help="Show this help message.").set_defaults(func=_cmd_help)
488
+
482
489
  # volume group
483
490
  vol = subs.add_parser("volume", help="Manage persistent block volumes.")
484
491
  vol_subs = vol.add_subparsers(dest="volume_cmd", required=True)
@@ -510,6 +517,11 @@ def main(argv: list[str] | None = None) -> int:
510
517
 
511
518
  args = parser.parse_args(argv)
512
519
 
520
+ # Bare `mimiry` (no subcommand) prints full help instead of erroring.
521
+ if not getattr(args, "func", None):
522
+ parser.print_help()
523
+ return 0
524
+
513
525
  if args.ssh_key or args.api_base:
514
526
  configure(ssh_key_path=args.ssh_key, api_base=args.api_base)
515
527
 
@@ -330,3 +330,14 @@ def test_volume_without_subcommand_errors():
330
330
  def test_volume_create_requires_size():
331
331
  with pytest.raises(SystemExit):
332
332
  cli.main(["volume", "create", "--name", "x"]) # missing --size-gb
333
+
334
+
335
+ def test_help_subcommand_prints_full_help(capsys):
336
+ assert cli.main(["help"]) == 0
337
+ out = capsys.readouterr().out
338
+ assert "usage: mimiry" in out and "session" in out and "volume" in out
339
+
340
+
341
+ def test_bare_invocation_prints_help(capsys):
342
+ assert cli.main([]) == 0
343
+ assert "usage: mimiry" in capsys.readouterr().out
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
File without changes
File without changes
File without changes
File without changes
File without changes