together 2.0.0a12__py3-none-any.whl → 2.0.0a14__py3-none-any.whl

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 (36) hide show
  1. together/_client.py +38 -0
  2. together/_version.py +1 -1
  3. together/lib/cli/api/beta/beta.py +12 -0
  4. together/lib/cli/api/beta/clusters.py +357 -0
  5. together/lib/cli/api/beta/clusters_storage.py +152 -0
  6. together/lib/cli/api/utils.py +37 -1
  7. together/lib/cli/cli.py +2 -0
  8. together/resources/__init__.py +14 -0
  9. together/resources/beta/__init__.py +33 -0
  10. together/resources/beta/beta.py +102 -0
  11. together/resources/beta/clusters/__init__.py +33 -0
  12. together/resources/beta/clusters/clusters.py +628 -0
  13. together/resources/beta/clusters/storage.py +490 -0
  14. together/resources/chat/completions.py +20 -0
  15. together/types/beta/__init__.py +12 -0
  16. together/types/beta/cluster.py +93 -0
  17. together/types/beta/cluster_create_params.py +51 -0
  18. together/types/beta/cluster_create_response.py +9 -0
  19. together/types/beta/cluster_delete_response.py +9 -0
  20. together/types/beta/cluster_list_regions_response.py +21 -0
  21. together/types/beta/cluster_list_response.py +12 -0
  22. together/types/beta/cluster_update_params.py +13 -0
  23. together/types/beta/cluster_update_response.py +9 -0
  24. together/types/beta/clusters/__init__.py +10 -0
  25. together/types/beta/clusters/cluster_storage.py +13 -0
  26. together/types/beta/clusters/storage_create_params.py +17 -0
  27. together/types/beta/clusters/storage_create_response.py +9 -0
  28. together/types/beta/clusters/storage_delete_response.py +9 -0
  29. together/types/beta/clusters/storage_list_response.py +12 -0
  30. together/types/beta/clusters/storage_update_params.py +13 -0
  31. together/types/chat/completion_create_params.py +4 -0
  32. {together-2.0.0a12.dist-info → together-2.0.0a14.dist-info}/METADATA +14 -8
  33. {together-2.0.0a12.dist-info → together-2.0.0a14.dist-info}/RECORD +36 -12
  34. {together-2.0.0a12.dist-info → together-2.0.0a14.dist-info}/WHEEL +0 -0
  35. {together-2.0.0a12.dist-info → together-2.0.0a14.dist-info}/entry_points.txt +0 -0
  36. {together-2.0.0a12.dist-info → together-2.0.0a14.dist-info}/licenses/LICENSE +0 -0
@@ -1,5 +1,13 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ from .beta import (
4
+ BetaResource,
5
+ AsyncBetaResource,
6
+ BetaResourceWithRawResponse,
7
+ AsyncBetaResourceWithRawResponse,
8
+ BetaResourceWithStreamingResponse,
9
+ AsyncBetaResourceWithStreamingResponse,
10
+ )
3
11
  from .chat import (
4
12
  ChatResource,
5
13
  AsyncChatResource,
@@ -130,6 +138,12 @@ from .code_interpreter import (
130
138
  )
131
139
 
132
140
  __all__ = [
141
+ "BetaResource",
142
+ "AsyncBetaResource",
143
+ "BetaResourceWithRawResponse",
144
+ "AsyncBetaResourceWithRawResponse",
145
+ "BetaResourceWithStreamingResponse",
146
+ "AsyncBetaResourceWithStreamingResponse",
133
147
  "ChatResource",
134
148
  "AsyncChatResource",
135
149
  "ChatResourceWithRawResponse",
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .beta import (
4
+ BetaResource,
5
+ AsyncBetaResource,
6
+ BetaResourceWithRawResponse,
7
+ AsyncBetaResourceWithRawResponse,
8
+ BetaResourceWithStreamingResponse,
9
+ AsyncBetaResourceWithStreamingResponse,
10
+ )
11
+ from .clusters import (
12
+ ClustersResource,
13
+ AsyncClustersResource,
14
+ ClustersResourceWithRawResponse,
15
+ AsyncClustersResourceWithRawResponse,
16
+ ClustersResourceWithStreamingResponse,
17
+ AsyncClustersResourceWithStreamingResponse,
18
+ )
19
+
20
+ __all__ = [
21
+ "ClustersResource",
22
+ "AsyncClustersResource",
23
+ "ClustersResourceWithRawResponse",
24
+ "AsyncClustersResourceWithRawResponse",
25
+ "ClustersResourceWithStreamingResponse",
26
+ "AsyncClustersResourceWithStreamingResponse",
27
+ "BetaResource",
28
+ "AsyncBetaResource",
29
+ "BetaResourceWithRawResponse",
30
+ "AsyncBetaResourceWithRawResponse",
31
+ "BetaResourceWithStreamingResponse",
32
+ "AsyncBetaResourceWithStreamingResponse",
33
+ ]
@@ -0,0 +1,102 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from ..._compat import cached_property
6
+ from ..._resource import SyncAPIResource, AsyncAPIResource
7
+ from .clusters.clusters import (
8
+ ClustersResource,
9
+ AsyncClustersResource,
10
+ ClustersResourceWithRawResponse,
11
+ AsyncClustersResourceWithRawResponse,
12
+ ClustersResourceWithStreamingResponse,
13
+ AsyncClustersResourceWithStreamingResponse,
14
+ )
15
+
16
+ __all__ = ["BetaResource", "AsyncBetaResource"]
17
+
18
+
19
+ class BetaResource(SyncAPIResource):
20
+ @cached_property
21
+ def clusters(self) -> ClustersResource:
22
+ return ClustersResource(self._client)
23
+
24
+ @cached_property
25
+ def with_raw_response(self) -> BetaResourceWithRawResponse:
26
+ """
27
+ This property can be used as a prefix for any HTTP method call to return
28
+ the raw response object instead of the parsed content.
29
+
30
+ For more information, see https://www.github.com/togethercomputer/together-py#accessing-raw-response-data-eg-headers
31
+ """
32
+ return BetaResourceWithRawResponse(self)
33
+
34
+ @cached_property
35
+ def with_streaming_response(self) -> BetaResourceWithStreamingResponse:
36
+ """
37
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
38
+
39
+ For more information, see https://www.github.com/togethercomputer/together-py#with_streaming_response
40
+ """
41
+ return BetaResourceWithStreamingResponse(self)
42
+
43
+
44
+ class AsyncBetaResource(AsyncAPIResource):
45
+ @cached_property
46
+ def clusters(self) -> AsyncClustersResource:
47
+ return AsyncClustersResource(self._client)
48
+
49
+ @cached_property
50
+ def with_raw_response(self) -> AsyncBetaResourceWithRawResponse:
51
+ """
52
+ This property can be used as a prefix for any HTTP method call to return
53
+ the raw response object instead of the parsed content.
54
+
55
+ For more information, see https://www.github.com/togethercomputer/together-py#accessing-raw-response-data-eg-headers
56
+ """
57
+ return AsyncBetaResourceWithRawResponse(self)
58
+
59
+ @cached_property
60
+ def with_streaming_response(self) -> AsyncBetaResourceWithStreamingResponse:
61
+ """
62
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
63
+
64
+ For more information, see https://www.github.com/togethercomputer/together-py#with_streaming_response
65
+ """
66
+ return AsyncBetaResourceWithStreamingResponse(self)
67
+
68
+
69
+ class BetaResourceWithRawResponse:
70
+ def __init__(self, beta: BetaResource) -> None:
71
+ self._beta = beta
72
+
73
+ @cached_property
74
+ def clusters(self) -> ClustersResourceWithRawResponse:
75
+ return ClustersResourceWithRawResponse(self._beta.clusters)
76
+
77
+
78
+ class AsyncBetaResourceWithRawResponse:
79
+ def __init__(self, beta: AsyncBetaResource) -> None:
80
+ self._beta = beta
81
+
82
+ @cached_property
83
+ def clusters(self) -> AsyncClustersResourceWithRawResponse:
84
+ return AsyncClustersResourceWithRawResponse(self._beta.clusters)
85
+
86
+
87
+ class BetaResourceWithStreamingResponse:
88
+ def __init__(self, beta: BetaResource) -> None:
89
+ self._beta = beta
90
+
91
+ @cached_property
92
+ def clusters(self) -> ClustersResourceWithStreamingResponse:
93
+ return ClustersResourceWithStreamingResponse(self._beta.clusters)
94
+
95
+
96
+ class AsyncBetaResourceWithStreamingResponse:
97
+ def __init__(self, beta: AsyncBetaResource) -> None:
98
+ self._beta = beta
99
+
100
+ @cached_property
101
+ def clusters(self) -> AsyncClustersResourceWithStreamingResponse:
102
+ return AsyncClustersResourceWithStreamingResponse(self._beta.clusters)
@@ -0,0 +1,33 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .storage import (
4
+ StorageResource,
5
+ AsyncStorageResource,
6
+ StorageResourceWithRawResponse,
7
+ AsyncStorageResourceWithRawResponse,
8
+ StorageResourceWithStreamingResponse,
9
+ AsyncStorageResourceWithStreamingResponse,
10
+ )
11
+ from .clusters import (
12
+ ClustersResource,
13
+ AsyncClustersResource,
14
+ ClustersResourceWithRawResponse,
15
+ AsyncClustersResourceWithRawResponse,
16
+ ClustersResourceWithStreamingResponse,
17
+ AsyncClustersResourceWithStreamingResponse,
18
+ )
19
+
20
+ __all__ = [
21
+ "StorageResource",
22
+ "AsyncStorageResource",
23
+ "StorageResourceWithRawResponse",
24
+ "AsyncStorageResourceWithRawResponse",
25
+ "StorageResourceWithStreamingResponse",
26
+ "AsyncStorageResourceWithStreamingResponse",
27
+ "ClustersResource",
28
+ "AsyncClustersResource",
29
+ "ClustersResourceWithRawResponse",
30
+ "AsyncClustersResourceWithRawResponse",
31
+ "ClustersResourceWithStreamingResponse",
32
+ "AsyncClustersResourceWithStreamingResponse",
33
+ ]