kubetorch 0.2.0__tar.gz → 0.2.1__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 kubetorch might be problematic. Click here for more details.

Files changed (92) hide show
  1. {kubetorch-0.2.0 → kubetorch-0.2.1}/PKG-INFO +4 -4
  2. {kubetorch-0.2.0 → kubetorch-0.2.1}/README.md +2 -2
  3. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/__init__.py +1 -1
  4. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/templates/kt_setup_template.sh.j2 +2 -2
  5. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/utils.py +4 -25
  6. {kubetorch-0.2.0 → kubetorch-0.2.1}/pyproject.toml +2 -2
  7. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/cli.py +0 -0
  8. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/cli_utils.py +0 -0
  9. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/config.py +0 -0
  10. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/constants.py +0 -0
  11. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/Makefile +0 -0
  12. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/__init__.py +0 -0
  13. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/_ext/json_globaltoc.py +0 -0
  14. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/cli.rst +0 -0
  15. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python/app.rst +0 -0
  16. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python/cls.rst +0 -0
  17. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python/compute.rst +0 -0
  18. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python/config.rst +0 -0
  19. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python/fn.rst +0 -0
  20. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python/image.rst +0 -0
  21. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python/secret.rst +0 -0
  22. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python/volumes.rst +0 -0
  23. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/api/python.rst +0 -0
  24. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/conf.py +0 -0
  25. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/index.rst +0 -0
  26. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/docs/requirements.txt +0 -0
  27. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/globals.py +0 -0
  28. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/logger.py +0 -0
  29. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/__init__.py +0 -0
  30. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/callables/__init__.py +0 -0
  31. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/callables/cls/__init__.py +0 -0
  32. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/callables/cls/cls.py +0 -0
  33. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/callables/fn/__init__.py +0 -0
  34. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/callables/fn/fn.py +0 -0
  35. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/callables/module.py +0 -0
  36. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/callables/utils.py +0 -0
  37. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/compute/__init__.py +0 -0
  38. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/compute/app.py +0 -0
  39. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/compute/compute.py +0 -0
  40. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/compute/decorators.py +0 -0
  41. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/compute/rbac.py +0 -0
  42. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/compute/utils.py +0 -0
  43. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/compute/websocket.py +0 -0
  44. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/images/__init__.py +0 -0
  45. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/images/image.py +0 -0
  46. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/images/images.py +0 -0
  47. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/__init__.py +0 -0
  48. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/kubernetes_secrets_client.py +0 -0
  49. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/__init__.py +0 -0
  50. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/anthropic_secret.py +0 -0
  51. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/aws_secret.py +0 -0
  52. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/azure_secret.py +0 -0
  53. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/cohere_secret.py +0 -0
  54. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/gcp_secret.py +0 -0
  55. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/github_secret.py +0 -0
  56. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/huggingface_secret.py +0 -0
  57. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/kubeconfig_secret.py +0 -0
  58. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/lambda_secret.py +0 -0
  59. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/langchain_secret.py +0 -0
  60. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/openai_secret.py +0 -0
  61. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/pinecone_secret.py +0 -0
  62. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/providers.py +0 -0
  63. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/ssh_secret.py +0 -0
  64. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/provider_secrets/wandb_secret.py +0 -0
  65. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/secret.py +0 -0
  66. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/secret_factory.py +0 -0
  67. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/secrets/utils.py +0 -0
  68. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/volumes/__init__.py +0 -0
  69. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/resources/volumes/volume.py +0 -0
  70. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/servers/__init__.py +0 -0
  71. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/servers/http/__init__.py +0 -0
  72. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/servers/http/distributed_utils.py +0 -0
  73. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/servers/http/http_client.py +0 -0
  74. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/servers/http/http_server.py +0 -0
  75. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/servers/http/server_metrics.py +0 -0
  76. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/servers/http/utils.py +0 -0
  77. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/__init__.py +0 -0
  78. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/autoscaling.py +0 -0
  79. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/base_service_manager.py +0 -0
  80. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/constants.py +0 -0
  81. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/deployment_service_manager.py +0 -0
  82. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/knative_service_manager.py +0 -0
  83. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/raycluster_service_manager.py +0 -0
  84. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/service_manager.py +0 -0
  85. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/templates/deployment_template.yaml +0 -0
  86. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/templates/knative_service_template.yaml +0 -0
  87. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/templates/pod_template.yaml +0 -0
  88. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/templates/raycluster_service_template.yaml +0 -0
  89. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/templates/raycluster_template.yaml +0 -0
  90. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/templates/service_template.yaml +0 -0
  91. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/templates/workerset_template.yaml +0 -0
  92. {kubetorch-0.2.0 → kubetorch-0.2.1}/kubetorch/serving/utils.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kubetorch
3
- Version: 0.2.0
4
- Summary: Kubetorch: A Kubernetes-native framework for distributed PyTorch workloads
3
+ Version: 0.2.1
4
+ Summary: A Python interface for running ML workloads on Kubernetes
5
5
  License: Apache 2.0
6
6
  Author: Runhouse Team
7
7
  Requires-Python: >=3.9,<=3.13
@@ -97,10 +97,10 @@ pip install "kubetorch[client]"
97
97
  ```bash
98
98
  # Option 1: Install directly from OCI registry
99
99
  helm upgrade --install kubetorch oci://ghcr.io/run-house/charts/kubetorch \
100
- --version 0.2.0 -n kubetorch --create-namespace
100
+ --version 0.2.1 -n kubetorch --create-namespace
101
101
 
102
102
  # Option 2: Download chart locally first
103
- helm pull oci://ghcr.io/run-house/charts/kubetorch --version 0.2.0 --untar
103
+ helm pull oci://ghcr.io/run-house/charts/kubetorch --version 0.2.1 --untar
104
104
  helm upgrade --install kubetorch ./kubetorch -n kubetorch --create-namespace
105
105
  ```
106
106
 
@@ -43,10 +43,10 @@ pip install "kubetorch[client]"
43
43
  ```bash
44
44
  # Option 1: Install directly from OCI registry
45
45
  helm upgrade --install kubetorch oci://ghcr.io/run-house/charts/kubetorch \
46
- --version 0.2.0 -n kubetorch --create-namespace
46
+ --version 0.2.1 -n kubetorch --create-namespace
47
47
 
48
48
  # Option 2: Download chart locally first
49
- helm pull oci://ghcr.io/run-house/charts/kubetorch --version 0.2.0 --untar
49
+ helm pull oci://ghcr.io/run-house/charts/kubetorch --version 0.2.1 --untar
50
50
  helm upgrade --install kubetorch ./kubetorch -n kubetorch --create-namespace
51
51
  ```
52
52
 
@@ -57,4 +57,4 @@ EXCEPTION_REGISTRY = {
57
57
  for exception in EXCEPTION_REGISTRY.values():
58
58
  exception.__module__ = "kubetorch"
59
59
 
60
- __version__ = "0.2.0"
60
+ __version__ = "0.2.1"
@@ -62,9 +62,9 @@ export KT_PIP_INSTALL_CMD="$uv_pip_cmd"
62
62
  echo "$uv_pip_cmd" > .kt/kt_pip_install_cmd
63
63
 
64
64
  {% if install_url %}
65
- $uv_pip_cmd "kubetorch[server] @ {{ install_url }}"
65
+ $uv_pip_cmd "kubetorch[server]=={{ install_url }}"
66
66
  {% if install_otel %}
67
- $uv_pip_cmd "kubetorch[otel] @ {{ install_url }}"
67
+ $uv_pip_cmd "kubetorch[otel]=={{ install_url }}"
68
68
  {% endif %}
69
69
  {% else %}
70
70
  {{ rsync_kt_editable_cmd }}
@@ -1,5 +1,4 @@
1
1
  import enum
2
- import importlib.util
3
2
  import json
4
3
  import os
5
4
  import re
@@ -123,30 +122,10 @@ def get_kt_install_url(freeze: bool = False):
123
122
  if local_kt_path and (Path(local_kt_path) / "pyproject.toml").exists():
124
123
  return local_kt_path, True
125
124
  else:
126
- # If the user is using uv, sometimes the pip freeze command won't return the full "kubetorch @ ..." install
127
- # URL. However, running `uv pip freeze` will return the full URL, even when the user isn't actually in a uv
128
- # venv. So we default to using `uv pip freeze` if uv is installed, otherwise we use the regular `pip freeze`.
129
- uv_installed = importlib.util.find_spec("uv") is not None
130
- # check if installed from presigned url
131
- freeze_cmd = (
132
- "pip freeze | grep kubetorch"
133
- if not uv_installed
134
- else "uv pip freeze | grep kubetorch"
135
- )
136
- output = subprocess.run(
137
- freeze_cmd,
138
- shell=True,
139
- capture_output=True,
140
- text=True,
141
- ).stdout
142
- if not output.startswith("kubetorch @ "):
143
- raise Exception(
144
- "Could not find kubetorch version to install on the pod. You must either set the "
145
- "``install_url`` in the config or ``KT_INSTALL_URL`` env var, have kubetorch installed "
146
- "locally, or set ``compute.freeze`` to ``True``."
147
- )
148
- install_url = output[len("kubetorch @ ") :].strip()
149
- return install_url, False
125
+ import kubetorch as kt
126
+
127
+ version = kt.__version__
128
+ return version, False
150
129
 
151
130
 
152
131
  class LogVerbosity(str, enum.Enum):
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "kubetorch"
3
- version = "0.2.0"
4
- description = "Kubetorch: A Kubernetes-native framework for distributed PyTorch workloads"
3
+ version = "0.2.1"
4
+ description = "A Python interface for running ML workloads on Kubernetes"
5
5
  authors = ["Runhouse Team"]
6
6
  license = "Apache 2.0"
7
7
  readme = "README.md"
File without changes
File without changes
File without changes