infisicalsdk 1.0.5__tar.gz → 1.0.6__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 infisicalsdk might be problematic. Click here for more details.

@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: infisicalsdk
3
- Version: 1.0.5
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
@@ -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 urljoin(self.host, path.lstrip("/"))
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.5
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
@@ -1,4 +1,3 @@
1
- urllib3<2.1.0,>=1.25.3
2
1
  python-dateutil
3
2
  aenum
4
3
  requests~=2.32
@@ -12,7 +12,6 @@ include = ["infisicalapi_client/py.typed"]
12
12
  [tool.poetry.dependencies]
13
13
  python = "^3.7"
14
14
 
15
- urllib3 = ">= 1.25.3"
16
15
  python-dateutil = ">=2.8.2"
17
16
  aenum = ">=3.1.11"
18
17
 
@@ -15,10 +15,9 @@ from setuptools import setup, find_packages # noqa: H301
15
15
  # prerequisite: setuptools
16
16
  # http://pypi.python.org/pypi/setuptools
17
17
  NAME = "infisicalsdk"
18
- VERSION = "1.0.5"
18
+ VERSION = "1.0.6"
19
19
  PYTHON_REQUIRES = ">=3.8"
20
20
  REQUIRES = [
21
- "urllib3 >= 1.25.3, < 2.1.0",
22
21
  "python-dateutil",
23
22
  "aenum",
24
23
  "requests~=2.32",
File without changes
File without changes