flagsmith 6.2.2__tar.gz → 6.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flagsmith
3
- Version: 6.2.2
3
+ Version: 6.2.3
4
4
  Summary: Flagsmith Python SDK
5
5
  License: BSD3
6
6
  License-File: LICENSE
@@ -8,7 +8,7 @@ from datetime import datetime
8
8
 
9
9
  from requests_futures.sessions import FuturesSession # type: ignore
10
10
 
11
- from flagsmith.version import __version__
11
+ from flagsmith.version import DEFAULT_USER_AGENT, __version__
12
12
 
13
13
  logger = logging.getLogger(__name__)
14
14
 
@@ -218,7 +218,7 @@ class EventProcessor:
218
218
  headers={
219
219
  "Content-Type": "application/json; charset=utf-8",
220
220
  "X-Environment-Key": self._environment_key,
221
- "Flagsmith-SDK-User-Agent": f"flagsmith-python-client/{__version__}",
221
+ "Flagsmith-SDK-User-Agent": DEFAULT_USER_AGENT,
222
222
  },
223
223
  )
224
224
  except RuntimeError:
@@ -41,13 +41,12 @@ from flagsmith.types import (
41
41
  TraitMapping,
42
42
  )
43
43
  from flagsmith.utils.identities import generate_identity_data
44
- from flagsmith.version import __version__
44
+ from flagsmith.version import DEFAULT_USER_AGENT
45
45
 
46
46
  logger = logging.getLogger(__name__)
47
47
 
48
48
  DEFAULT_API_URL = "https://edge.api.flagsmith.com/api/v1/"
49
49
  DEFAULT_REALTIME_API_URL = "https://realtime.flagsmith.com/"
50
- DEFAULT_USER_AGENT = f"flagsmith-python-sdk/{__version__}"
51
50
 
52
51
 
53
52
  class Flagsmith:
@@ -1,3 +1,5 @@
1
1
  from importlib.metadata import version
2
2
 
3
3
  __version__ = version("flagsmith")
4
+
5
+ DEFAULT_USER_AGENT = f"flagsmith-python-sdk/{__version__}"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "flagsmith"
3
- version = "6.2.2"
3
+ version = "6.2.3"
4
4
  description = "Flagsmith Python SDK"
5
5
  authors = ["Flagsmith <support@flagsmith.com>"]
6
6
  license = "BSD3"
File without changes
File without changes
File without changes
File without changes
File without changes