|
15 | 15 | import httpx |
16 | 16 |
|
17 | 17 | from replicate.__about__ import __version__ |
18 | | -from replicate.deployment import DeploymentCollection |
| 18 | +from replicate.deployment import Deployments |
19 | 19 | from replicate.exceptions import ModelError, ReplicateError |
20 | | -from replicate.hardware import HardwareCollection |
21 | | -from replicate.model import ModelCollection |
22 | | -from replicate.prediction import PredictionCollection |
| 20 | +from replicate.hardware import Hardwares |
| 21 | +from replicate.model import Models |
| 22 | +from replicate.prediction import Predictions |
23 | 23 | from replicate.schema import make_schema_backwards_compatible |
24 | | -from replicate.training import TrainingCollection |
| 24 | +from replicate.training import Trainings |
25 | 25 | from replicate.version import Version |
26 | 26 |
|
27 | 27 |
|
@@ -85,39 +85,39 @@ def _request(self, method: str, path: str, **kwargs) -> httpx.Response: |
85 | 85 | return resp |
86 | 86 |
|
87 | 87 | @property |
88 | | - def deployments(self) -> DeploymentCollection: |
| 88 | + def deployments(self) -> Deployments: |
89 | 89 | """ |
90 | 90 | Namespace for operations related to deployments. |
91 | 91 | """ |
92 | | - return DeploymentCollection(client=self) |
| 92 | + return Deployments(client=self) |
93 | 93 |
|
94 | 94 | @property |
95 | | - def hardware(self) -> HardwareCollection: |
| 95 | + def hardware(self) -> Hardwares: |
96 | 96 | """ |
97 | 97 | Namespace for operations related to hardware. |
98 | 98 | """ |
99 | | - return HardwareCollection(client=self) |
| 99 | + return Hardwares(client=self) |
100 | 100 |
|
101 | 101 | @property |
102 | | - def models(self) -> ModelCollection: |
| 102 | + def models(self) -> Models: |
103 | 103 | """ |
104 | 104 | Namespace for operations related to models. |
105 | 105 | """ |
106 | | - return ModelCollection(client=self) |
| 106 | + return Models(client=self) |
107 | 107 |
|
108 | 108 | @property |
109 | | - def predictions(self) -> PredictionCollection: |
| 109 | + def predictions(self) -> Predictions: |
110 | 110 | """ |
111 | 111 | Namespace for operations related to predictions. |
112 | 112 | """ |
113 | | - return PredictionCollection(client=self) |
| 113 | + return Predictions(client=self) |
114 | 114 |
|
115 | 115 | @property |
116 | | - def trainings(self) -> TrainingCollection: |
| 116 | + def trainings(self) -> Trainings: |
117 | 117 | """ |
118 | 118 | Namespace for operations related to trainings. |
119 | 119 | """ |
120 | | - return TrainingCollection(client=self) |
| 120 | + return Trainings(client=self) |
121 | 121 |
|
122 | 122 | def run(self, model_version: str, **kwargs) -> Union[Any, Iterator[Any]]: # noqa: ANN401 |
123 | 123 | """ |
|
0 commit comments