infisicalsdk 0.1.4__py3-none-any.whl → 1.0.2__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.

Potentially problematic release.


This version of infisicalsdk might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- from dataclasses import dataclass, field, fields
1
+ from dataclasses import dataclass, field
2
2
  from typing import Optional, List, Any, Dict
3
3
  from enum import Enum
4
4
  import json
@@ -34,10 +34,7 @@ class BaseModel:
34
34
  @classmethod
35
35
  def from_dict(cls, data: Dict) -> 'BaseModel':
36
36
  """Create model from dictionary"""
37
- # Get only the fields that exist in the dataclass
38
- valid_fields = {f.name for f in fields(cls)}
39
- filtered_data = {k: v for k, v in data.items() if k in valid_fields}
40
- return cls(**filtered_data)
37
+ return cls(**data)
41
38
 
42
39
  def to_json(self) -> str:
43
40
  """Convert model to JSON string"""
@@ -73,7 +70,6 @@ class BaseSecret(BaseModel):
73
70
  secretComment: str
74
71
  createdAt: str
75
72
  updatedAt: str
76
- secretMetadata: Optional[Dict[str, Any]] = None
77
73
  secretReminderNote: Optional[str] = None
78
74
  secretReminderRepeatDays: Optional[int] = None
79
75
  skipMultilineEncoding: Optional[bool] = False
infisical_sdk/client.py CHANGED
@@ -219,7 +219,7 @@ class V3RawSecrets:
219
219
  }
220
220
 
221
221
  if tag_filters:
222
- params["tagSlugs"] = ",".join(tag_filters)
222
+ params["tag_slugs"] = ",".join(tag_filters)
223
223
 
224
224
  result = self.client.api.get(
225
225
  path="/api/v3/secrets/raw",
@@ -1,4 +1,4 @@
1
- from typing import Any, Dict, Generic, Optional, TypeVar, Type
1
+ from typing import Any, Dict, Generic, Optional, TypeVar
2
2
  from urllib.parse import urljoin
3
3
  import requests
4
4
  from dataclasses import dataclass
@@ -90,7 +90,7 @@ class InfisicalRequests:
90
90
  def get(
91
91
  self,
92
92
  path: str,
93
- model: Type[T],
93
+ model: type[T],
94
94
  params: Optional[Dict[str, Any]] = None
95
95
  ) -> APIResponse[T]:
96
96
 
@@ -116,7 +116,7 @@ class InfisicalRequests:
116
116
  def post(
117
117
  self,
118
118
  path: str,
119
- model: Type[T],
119
+ model: type[T],
120
120
  json: Optional[Dict[str, Any]] = None
121
121
  ) -> APIResponse[T]:
122
122
 
@@ -140,7 +140,7 @@ class InfisicalRequests:
140
140
  def patch(
141
141
  self,
142
142
  path: str,
143
- model: Type[T],
143
+ model: type[T],
144
144
  json: Optional[Dict[str, Any]] = None
145
145
  ) -> APIResponse[T]:
146
146
 
@@ -164,7 +164,7 @@ class InfisicalRequests:
164
164
  def delete(
165
165
  self,
166
166
  path: str,
167
- model: Type[T],
167
+ model: type[T],
168
168
  json: Optional[Dict[str, Any]] = None
169
169
  ) -> APIResponse[T]:
170
170
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: infisicalsdk
3
- Version: 0.1.4
3
+ Version: 1.0.2
4
4
  Summary: Infisical API Client
5
5
  Home-page: https://github.com/Infisical/python-sdk-official
6
6
  Author: Infisical
@@ -0,0 +1,8 @@
1
+ infisical_sdk/__init__.py,sha256=UzssDXpMhK79mFBW4fpSea1bOVjoD_UILjvizFkLNz4,183
2
+ infisical_sdk/api_types.py,sha256=2JNC9RA3JYPDwq92BXwBrxTkXi-XuD3G3jBST4-H9qg,3394
3
+ infisical_sdk/client.py,sha256=i1poZEz2tiGJLYZuRePfWONs7hQyP_A5QJJt1UeW8WQ,10936
4
+ infisical_sdk/infisical_requests.py,sha256=mROtB1fuF3E39fU9J6MiH0gQ-LhsK10W-zzEH0knePU,5655
5
+ infisicalsdk-1.0.2.dist-info/METADATA,sha256=pMW354MJanz1LBMM_EiYafLtSzTlfE8lOc0dWP73bKQ,763
6
+ infisicalsdk-1.0.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
7
+ infisicalsdk-1.0.2.dist-info/top_level.txt,sha256=FvJjMGD1FvxwipO_qFajdH20yNV8n3lJ7G3DkQoPJNU,14
8
+ infisicalsdk-1.0.2.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- infisical_sdk/__init__.py,sha256=UzssDXpMhK79mFBW4fpSea1bOVjoD_UILjvizFkLNz4,183
2
- infisical_sdk/api_types.py,sha256=FjyDQ71pOYiyYA9oGAPsW5jW7LGe5L7yDuOvCr4UxwQ,3651
3
- infisical_sdk/client.py,sha256=07IgDFDOnXrkTRoEeQ7idvCDBvZy72ELCzsgv9irpkg,10935
4
- infisical_sdk/infisical_requests.py,sha256=7y-0FS2BnlDRjfgZ4eRMXwPhA9-A7hLO3lCSOC63qt4,5661
5
- infisicalsdk-0.1.4.dist-info/METADATA,sha256=LEpbLrH3Ci6xoLS2FVyfN7PDriY9mMZAK7VP1e-hn3k,763
6
- infisicalsdk-0.1.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
7
- infisicalsdk-0.1.4.dist-info/top_level.txt,sha256=FvJjMGD1FvxwipO_qFajdH20yNV8n3lJ7G3DkQoPJNU,14
8
- infisicalsdk-0.1.4.dist-info/RECORD,,