inferencesh 0.1.14__tar.gz → 0.1.15__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 inferencesh might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: inferencesh
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary: inference.sh Python SDK
5
5
  Author: Inference Shell Inc.
6
6
  Author-email: "Inference Shell Inc." <hello@inference.sh>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "inferencesh"
7
- version = "0.1.14"
7
+ version = "0.1.15"
8
8
  description = "inference.sh Python SDK"
9
9
  authors = [
10
10
  {name = "Inference Shell Inc.", email = "hello@inference.sh"},
@@ -108,8 +108,12 @@ class File(BaseModel):
108
108
  filename: Optional[str] = None # Original filename if available
109
109
  _tmp_path: Optional[str] = PrivateAttr(default=None) # Internal storage for temporary file path
110
110
 
111
- def __init__(self, **data):
112
- super().__init__(**data)
111
+ model_config = ConfigDict(
112
+ arbitrary_types_allowed=True,
113
+ populate_by_name=True
114
+ )
115
+
116
+ def model_post_init(self, _: Any) -> None:
113
117
  if self._is_url(self.uri):
114
118
  self._download_url()
115
119
  elif not os.path.isabs(self.uri):
@@ -203,8 +207,4 @@ class File(BaseModel):
203
207
 
204
208
  def refresh_metadata(self) -> None:
205
209
  """Refresh all metadata from the file."""
206
- self._populate_metadata()
207
-
208
- class Config:
209
- """Pydantic config"""
210
- arbitrary_types_allowed = True
210
+ self._populate_metadata()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: inferencesh
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary: inference.sh Python SDK
5
5
  Author: Inference Shell Inc.
6
6
  Author-email: "Inference Shell Inc." <hello@inference.sh>
File without changes
File without changes
File without changes
File without changes