infisicalsdk 1.0.4__py3-none-any.whl → 1.0.6__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.
- infisical_sdk/api_types.py +1 -0
- infisical_sdk/client.py +4 -0
- infisical_sdk/infisical_requests.py +8 -2
- {infisicalsdk-1.0.4.dist-info → infisicalsdk-1.0.6.dist-info}/METADATA +1 -2
- infisicalsdk-1.0.6.dist-info/RECORD +8 -0
- {infisicalsdk-1.0.4.dist-info → infisicalsdk-1.0.6.dist-info}/WHEEL +1 -1
- infisicalsdk-1.0.4.dist-info/RECORD +0 -8
- {infisicalsdk-1.0.4.dist-info → infisicalsdk-1.0.6.dist-info}/top_level.txt +0 -0
infisical_sdk/api_types.py
CHANGED
|
@@ -74,6 +74,7 @@ class BaseSecret(BaseModel):
|
|
|
74
74
|
createdAt: str
|
|
75
75
|
updatedAt: str
|
|
76
76
|
secretMetadata: Optional[Dict[str, Any]] = None
|
|
77
|
+
secretValueHidden: Optional[bool] = False
|
|
77
78
|
secretReminderNote: Optional[str] = None
|
|
78
79
|
secretReminderRepeatDays: Optional[int] = None
|
|
79
80
|
skipMultilineEncoding: Optional[bool] = False
|
infisical_sdk/client.py
CHANGED
|
@@ -209,6 +209,7 @@ class V3RawSecrets:
|
|
|
209
209
|
environment_slug: str,
|
|
210
210
|
secret_path: str,
|
|
211
211
|
expand_secret_references: bool = True,
|
|
212
|
+
view_secret_value: bool = True,
|
|
212
213
|
recursive: bool = False,
|
|
213
214
|
include_imports: bool = True,
|
|
214
215
|
tag_filters: List[str] = []) -> ListSecretsResponse:
|
|
@@ -217,6 +218,7 @@ class V3RawSecrets:
|
|
|
217
218
|
"workspaceId": project_id,
|
|
218
219
|
"environment": environment_slug,
|
|
219
220
|
"secretPath": secret_path,
|
|
221
|
+
"viewSecretValue": str(view_secret_value).lower(),
|
|
220
222
|
"expandSecretReferences": str(expand_secret_references).lower(),
|
|
221
223
|
"recursive": str(recursive).lower(),
|
|
222
224
|
"include_imports": str(include_imports).lower(),
|
|
@@ -241,10 +243,12 @@ class V3RawSecrets:
|
|
|
241
243
|
secret_path: str,
|
|
242
244
|
expand_secret_references: bool = True,
|
|
243
245
|
include_imports: bool = True,
|
|
246
|
+
view_secret_value: bool = True,
|
|
244
247
|
version: str = None) -> BaseSecret:
|
|
245
248
|
|
|
246
249
|
params = {
|
|
247
250
|
"workspaceId": project_id,
|
|
251
|
+
"viewSecretValue": str(view_secret_value).lower(),
|
|
248
252
|
"environment": environment_slug,
|
|
249
253
|
"secretPath": secret_path,
|
|
250
254
|
"expandSecretReferences": str(expand_secret_references).lower(),
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
from typing import Any, Dict, Generic, Optional, TypeVar, Type
|
|
2
|
-
from urllib.parse import urljoin
|
|
3
2
|
import requests
|
|
4
3
|
from dataclasses import dataclass
|
|
5
4
|
|
|
6
5
|
T = TypeVar("T")
|
|
7
6
|
|
|
7
|
+
def join_url(base: str, path: str) -> str:
|
|
8
|
+
"""
|
|
9
|
+
Join base URL and path properly, handling slashes appropriately.
|
|
10
|
+
"""
|
|
11
|
+
if not base.endswith('/'):
|
|
12
|
+
base += '/'
|
|
13
|
+
return base + path.lstrip('/')
|
|
8
14
|
|
|
9
15
|
class InfisicalError(Exception):
|
|
10
16
|
"""Base exception for Infisical client errors"""
|
|
@@ -60,7 +66,7 @@ class InfisicalRequests:
|
|
|
60
66
|
|
|
61
67
|
def _build_url(self, path: str) -> str:
|
|
62
68
|
"""Construct full URL from path"""
|
|
63
|
-
return
|
|
69
|
+
return join_url(self.host, path.lstrip("/"))
|
|
64
70
|
|
|
65
71
|
def set_token(self, token: str):
|
|
66
72
|
"""Set authorization token"""
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: infisicalsdk
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.6
|
|
4
4
|
Summary: Infisical API Client
|
|
5
5
|
Home-page: https://github.com/Infisical/python-sdk-official
|
|
6
6
|
Author: Infisical
|
|
7
7
|
Author-email: support@infisical.com
|
|
8
8
|
Keywords: Infisical,Infisical API,Infisical SDK
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: urllib3<2.1.0,>=1.25.3
|
|
11
10
|
Requires-Dist: python-dateutil
|
|
12
11
|
Requires-Dist: aenum
|
|
13
12
|
Requires-Dist: requests~=2.32
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
infisical_sdk/__init__.py,sha256=UzssDXpMhK79mFBW4fpSea1bOVjoD_UILjvizFkLNz4,183
|
|
2
|
+
infisical_sdk/api_types.py,sha256=-SFKKhDx0GZGlzZ0kysvEMmBRtbQQXl5vwaH1a4m1Ac,5170
|
|
3
|
+
infisical_sdk/client.py,sha256=wZB-9ukEFIoOtNhgRJUZYQyfZ3-Rgq4CKslelMe3oWA,15773
|
|
4
|
+
infisical_sdk/infisical_requests.py,sha256=LnWmuKiVzYvrqiSkMBTAaTBy5vNmyxhIXrBSVSTTbMA,5843
|
|
5
|
+
infisicalsdk-1.0.6.dist-info/METADATA,sha256=375EyyXiwP4STlUmizBtGsr-lkUwEqKMftnr4jTB2_g,725
|
|
6
|
+
infisicalsdk-1.0.6.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
7
|
+
infisicalsdk-1.0.6.dist-info/top_level.txt,sha256=FvJjMGD1FvxwipO_qFajdH20yNV8n3lJ7G3DkQoPJNU,14
|
|
8
|
+
infisicalsdk-1.0.6.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
infisical_sdk/__init__.py,sha256=UzssDXpMhK79mFBW4fpSea1bOVjoD_UILjvizFkLNz4,183
|
|
2
|
-
infisical_sdk/api_types.py,sha256=F8Ifv9WUPLd1ivQuUPw9UfLZh3GJoINyoZL6VlUuo1Q,5124
|
|
3
|
-
infisical_sdk/client.py,sha256=AgQu6LQs1I6QuiDDKMfJOnF1iatdhEcs9PVmJ3e-Zug,15561
|
|
4
|
-
infisical_sdk/infisical_requests.py,sha256=7y-0FS2BnlDRjfgZ4eRMXwPhA9-A7hLO3lCSOC63qt4,5661
|
|
5
|
-
infisicalsdk-1.0.4.dist-info/METADATA,sha256=IRt8JUnpG6KQHTU9pcnPjII6BB0ak78nRQInGiENSic,763
|
|
6
|
-
infisicalsdk-1.0.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
7
|
-
infisicalsdk-1.0.4.dist-info/top_level.txt,sha256=FvJjMGD1FvxwipO_qFajdH20yNV8n3lJ7G3DkQoPJNU,14
|
|
8
|
-
infisicalsdk-1.0.4.dist-info/RECORD,,
|
|
File without changes
|