Skip to content

Commit 5fcb1e7

Browse files
committed
refactor: add SDK name and version in settings call [skip-ci]
1 parent 6c5abe5 commit 5fcb1e7

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.10.1] - 2025-07-24
8+
9+
### Added
10+
11+
- Send the SDK name and version in the settings call to VWO as query parameters.
12+
13+
714
## [1.10.0] - 2025-07-02
815

916
### Added

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def run(self):
121121

122122
setup(
123123
name="vwo-fme-python-sdk",
124-
version="1.10.0",
124+
version="1.10.1",
125125
description="VWO Feature Management and Experimentation SDK for Python",
126126
long_description=long_description,
127127
long_description_content_type="text/markdown",

vwo/constants/Constants.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515

1616
class Constants:
1717
# TODO: read from setup.py
18-
package_file = {
18+
sdk_meta = {
1919
"name": "vwo-fme-python-sdk",
20-
"version": "1.10.0"
20+
"version": "1.10.1"
2121
}
2222

2323
# Constants
24-
SDK_NAME = package_file["name"]
25-
SDK_VERSION = package_file["version"]
24+
SDK_NAME = sdk_meta["name"]
25+
SDK_VERSION = sdk_meta["version"]
2626

2727
PLATFORM = "server"
2828

@@ -61,4 +61,4 @@ class Constants:
6161
SHOULD_USE_THREADING = True
6262

6363
MAX_RETRIES = 3
64-
INITIAL_WAIT_TIME = 2
64+
INITIAL_WAIT_TIME = 2

vwo/services/settings_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ def fetch_settings(self, is_via_webhook=False):
104104
options = get_settings_path(self.sdk_key, self.account_id)
105105
options["platform"] = "server"
106106
options["api-version"] = 1
107+
options["sn"] = Constants.SDK_NAME
108+
options["sv"] = Constants.SDK_VERSION
109+
107110
if not network_instance.get_config().get_development_mode():
108111
options["s"] = "prod"
109112

0 commit comments

Comments
 (0)