Kameleoon-client-python

Latest version: v3.1.0

Safety actively analyzes 623760 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

3.1.0

Features
* Added support for additional Data API servers across the world for even faster network requests.
* Increased limit for requests to Data API: [rate limits](https://developers.kameleoon.com/apis/data-api-rest/overview/#rate-limits)
* Added [`get_visitor_warehouse_audience`](https://developers.kameleoon.com/python-sdk.html#get_visitor_warehouse_audience) method to retrieve all data associated with a visitor's warehouse audiences and adds it to the visitor.

3.0.0

Breaking changes
* You should no longer create a new `KameleoonClient` instance explicitly. To get an instance of `KameleoonClient`, call [`KameleoonClientFactory.create`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#create) instead.
* A new `KameleoonClient` instance does not await full initialization anymore. Instead, new `wait_init` and `wait_init_async` methods allow you to check whether the client has been successfully initialized before executing other operations.
* Renamed `get_feature_all_variables` method to [`get_feature_variation_variables`](https://developers.kameleoon.com/python-sdk.html#get_feature_variation_variables)
* Removed all deprecated methods and errors related to **experiments**:
* Methods:
- `trigger_experiment`
- `get_variation_associated_data`
- `get_experiment_list`
- `get_experiment_list_for_visitor`
* Error types:
- `ExperimentConfigurationNotFound`
- `NotTargeted`
- `NotAllocated`
- `SiteCodeDisabled`
* Removed additional deprecated methods:
- `obtain_visitor_code`
- `obtain_variation_associated_data`
- `obtain_experiment_list`
- `obtain_feature_variable`
- `obtain_feature_list`
- `obtain_feature_all_variables`
- `retrieve_data_from_remote_source`
* Changed `KameleoonClientConfig` (previously named `KameleoonClientConfiguration`):
- Renamed `KameleoonClientConfiguration` to `KameleoonClientConfig`
- Added required parameters `client_id` and `client_secret` (`ConfigCredentialsInvalid` is raised unless `client_id` and `client_secret` are specified and non-empty)
- Removed `visitor_data_maximum_size` parameter
- Added `session_duration_minute` parameter
- Added `top_level_domain` parameter
- Renamed `actions_configuration_refresh_interval` parameter to `refresh_interval_minute`
- Renamed `default_timeout` parameter to `default_timeout_millisecond`
* Changed data:
* `Browser`:
- Changed `browser_type`, `version` fields to read-only
* `Conversion`:
- Changed `goal_id`, `revenue`, `negative` fields to read-only
* `CustomData`:
- Changed `id` field to read-only
- Changed the data type of the `id` field to `int`
- Removed the deprecated `value` constructor parameter
* `Device`:
- Changed `device_type` field to read-only
* `PageView`:
- Changed `url`, `title`, `referrers` fields to read-only
* `UserAgent`:
- Changed `value` field to read-only
- Removed `get_value` method
* Changed the `cookies` parameter type in [`get_visitor_code`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#get_visitor_code) to `Dict[str, Morsel[str]]`.
* Changed errors:
* Added new exception `FeatureEnvironmentDisabled` indicating that the feature flag is disabled for certain environments. The following methods can throw the new exception:
- [`get_feature_variation_key`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#get_feature_variation_key)
- [`get_feature_variable`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#get_feature_variable)
- [`get_feature_variation_variables`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#get_feature_variation_variables)
* Added `SiteCodeIsEmpty` exception, which the [`KameleoonClientFactory.create`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#create) method raises if the specified site code parameter is empty.
* Renamed error types:
- `ConfigurationNotFoundException` to `ConfigFileNotFound`
- `CredentialsNotFoundException` to `ConfigCredentialsInvalid`
- `VisitorCodeNotValid` to `VisitorCodeInvalid`
- `FeatureConfigurationNotFound` to `FeatureNotFound`
- `VariationConfigurationNotFound` to `FeatureVariationNotFound`
- `KameleoonException` to `KameleoonError`
Features
* Implemented [`KameleoonClientFactory`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#kameleoonclientfactory) to manage `KameleoonClient` instances:
- [`create`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/create)
- [`forget`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#forget)
* Added [`set_legal_consent`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/python-sdk/#set_legal_consent) method to determine the types of data Kameleoon includes in tracking requests. This helps you adhere to legal and regulatory requirements while responsibly managing visitor data. You can find more information in the [Consent management policy](https://help.kameleoon.com/consent-management-policy/).

2.4.0

Features
* Added [`get_remote_visitor_data`](https://developers.kameleoon.com/python-sdk.html#get_remote_visitor_data) method to fetch a visitor's remote data (with an optional capability to add the fetched data to the visitor)
* Added [`get_remote_visitor_data_async`](https://developers.kameleoon.com/python-sdk.html#get_remote_data_async) method as an asynchronous variant of [`get_remote_visitor_data`](https://developers.kameleoon.com/python-sdk.html#get_remote_visitor_data) method
Bug fixes
* Fixed an issue where the SDK wouldn't send tracking data if multi-threading was enabled.

2.3.0

Features
* Added [`get_remote_data_async`](https://developers.kameleoon.com/python-sdk.html#get_remote_data_async) method as an asynchronous variant of [`get_remote_data`](https://developers.kameleoon.com/python-sdk.html#get_remote_data) method
* Added new conditions for targeting:
- `Visitor Code`
- `SDK Language`
- `Explicit Trigger`
- [`Page Title & Page Url`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/java-sdk/#pageview)
- [`Browser`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/java-sdk/#browser)
- [`Device`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/java-sdk/#device)
- [`Conversion`](https://developers.kameleoon.com/feature-management-and-experimentation/web-sdks/java-sdk/#trackconversion)

2.2.0

Features

* Added a new method:
- [`get_engine_tracking_code`](https://developers.kameleoon.com/python-sdk.html#get_engine_tracking_code) which can be used to simplify utilization of hybrid mode
* Renaming of methods:
- `obtain_feature_variable` -> [`get_feature_variable`](https://developers.kameleoon.com/python-sdk.html#get_feature_variable)
- `retrieve_data_from_remote_source` -> [`get_remote_date`](https://developers.kameleoon.com/python-sdk.html#get_feature_variable)
* The method `obtain_feature_variable` has been updated to only accept a `str` type for the `feature_key` argument. Previously, it accepted both `str` and `int` types as a `Union[str, int]` argument, but this functionality is now deprecated.
* Added possibility for [`CustomData`](https://developers.kameleoon.com/python-sdk.html#customdata) to use variable argument list of values

2.1.0

* Added support of new feature flag rules:
- [`get_feature_variation_key`](https://developers.kameleoon.com/python-sdk.html#get_feature_variation_key)
- [`get_feature_variable`](https://developers.kameleoon.com/python-sdk.html#get_feature_variable)
- [`get_feature_all_variables`](https://developers.kameleoon.com/python-sdk.html#get_feature_all_variables)
- `activate_feature` -> [`is_feature_active`](https://developers.kameleoon.com/python-sdk.html#is_feature_active)
* Renaming of methods (old methods warn you on using and will be removed later)
- `obtain_visitor_code` -> [`get_visitor_code`](https://developers.kameleoon.com/python-sdk.html#get_visitor_code)
- `obtain_variation_associated_data` -> [`get_variation_associated_data`](https://developers.kameleoon.com/python-sdk.html#get_variation_associated_data),
- `obtain_feature_all_variables` -> [`get_feature_all_variables`](https://developers.kameleoon.com/python-sdk.html#get_feature_all_variables),
- `obtain_experiment_list` -> [`get_experiment_list`](https://developers.kameleoon.com/python-sdk.html#get_experiment_list) & [`get_experiment_list_for_visitor`](https://developers.kameleoon.com/python-sdk.html#get_experiment_list_for_visitor),
- `obtain_feature_list` -> [`get_feature_list`](https://developers.kameleoon.com/python-sdk.html#get_feature_list) & [`get_active_feature_list_for_visitor`](https://developers.kameleoon.com/python-sdk.html#get_active_feature_list_for_visitor),
* Renaming of exceptions:
- `NotActivated` -> `NotAllocated`
* Added possibility to set [`UserAgent`](https://developers.kameleoon.com/python-sdk.html#useragent).
* Removed `blocking` parameter (blocking mode) [`KameleoonClient`](https://developers.kameleoon.com/python-sdk.html#initializing-the-kameleoon-client) init method

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.