runtime-sdk 0.4.1__tar.gz → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runtime-sdk
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Runtime Python SDK and CLI
5
5
  Project-URL: Repository, https://github.com/The-Money-Company-Limited/runtimevm
6
6
  Project-URL: Issues, https://github.com/The-Money-Company-Limited/runtimevm/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "runtime-sdk"
3
- version = "0.4.1"
3
+ version = "0.4.2"
4
4
  description = "Runtime Python SDK and CLI"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -0,0 +1,18 @@
1
+ from importlib.metadata import PackageNotFoundError, version
2
+
3
+ from runtime_sdk.client import RuntimeAPIError, RuntimeClient
4
+ from runtime_sdk.config import PendingSignup, RuntimeConfig, RuntimeConfigError
5
+
6
+ try:
7
+ __version__ = version("runtime-sdk")
8
+ except PackageNotFoundError: # pragma: no cover - local source tree fallback
9
+ __version__ = "0.0.0"
10
+
11
+ __all__ = [
12
+ "PendingSignup",
13
+ "RuntimeAPIError",
14
+ "RuntimeClient",
15
+ "RuntimeConfig",
16
+ "RuntimeConfigError",
17
+ "__version__",
18
+ ]
@@ -16,6 +16,7 @@ from urllib.parse import urljoin, urlparse
16
16
  from websockets.exceptions import ConnectionClosed
17
17
  from websockets.sync.client import connect as websocket_connect
18
18
 
19
+ from runtime_sdk import __version__
19
20
  from runtime_sdk.client import DEFAULT_WARMUP_TIMEOUT, RuntimeAPIError, RuntimeClient
20
21
  from runtime_sdk.config import (
21
22
  DEFAULT_BASE_URL,
@@ -123,6 +124,7 @@ class _UI:
123
124
  def build_parser() -> argparse.ArgumentParser:
124
125
  parser = argparse.ArgumentParser(prog="runtime")
125
126
  parser.add_argument("--base-url", help="Runtime API base URL")
127
+ parser.add_argument("--version", action="version", version=f"runtime-sdk {__version__}")
126
128
 
127
129
  # Subcommand is optional: bare `runtime` defaults to `create`.
128
130
  subparsers = parser.add_subparsers(dest="command", required=False)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runtime-sdk
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Runtime Python SDK and CLI
5
5
  Project-URL: Repository, https://github.com/The-Money-Company-Limited/runtimevm
6
6
  Project-URL: Issues, https://github.com/The-Money-Company-Limited/runtimevm/issues
@@ -1,4 +0,0 @@
1
- from runtime_sdk.client import RuntimeAPIError, RuntimeClient
2
- from runtime_sdk.config import PendingSignup, RuntimeConfig, RuntimeConfigError
3
-
4
- __all__ = ["PendingSignup", "RuntimeAPIError", "RuntimeClient", "RuntimeConfig", "RuntimeConfigError"]
File without changes
File without changes