Toloka-kit

Latest version: v1.2.3

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

Scan your dependencies

Page 1 of 7

1.2.3

-------------------
Changes:
* Introduced upper bound on `tenacity` version to avoid breaking retrying mechanism.

1.2.2

-------------------
Changes:
* Updated Apps API-related `TolokaClient` and `AsyncTolokaClient` methods to support new features.

1.2.1

-------------------
Python versions support:
* Python 3.7 support dropped

Changes:
* Updated `TolokaClient.create_app_items` and `AsyncTolokaClient.create_app_items` to return the list of created app
items ids.
* Added `tier` parameter to `TolokaClient.create_pool` and `AsyncTolokaClient.create_pool` methods.

1.2.0.post1

-------------------
Bugfixes:
* Fixed OAuth authorization header generation.

1.2.0

-------------------
Changes:
* Changed streaming cursors behavior: now events are processed not sooner than `time_lag` seconds after they were
created. This parameter is configurable, but it is not recommended to decrease the default value of 1 minute as this
can lead to some events being skipped. This change affects streaming cursors, cursor-based streaming observers, and
some cursor-based metric collectors.

Features:
* Supported SSO authorization tokens.
* Added Python 3.11 support
* `TolokaClient.create_task`, `TolokaClient.create_task_suite` and `TolokaClient.create_user_bonus` now support
`operation_id` parameter.

Fixes:
* `TolokaClient.create_task`, `TolokaClient.create_task_suite`, `TolokaClient.create_user_bonus` and
`TolokaClient.create_user_bonus` can be safely retried now (previously they could create duplicate items in case of
an unstable connection).
* Previously `AsyncTolokaClient` could not outlive the asyncio event loop which was used during the first API call,
which lead to an inability to pickle `AsyncTolokaClient`. Now `AsyncTolokaClient` survives asyncio event loop change.
* `TolokaClient` and `AsyncTolokaClient` follows `urllib3` retrying behavior more closely in case of the `Retry` object
being passed to the `retry` or `retryer_factory` parameters.
* Previously streaming cursors could skip some Toloka events when fetching them from the API concurrently with them
being created. Now streaming cursors utilize time lag to prevent such concurrent reads.

1.1.4

-------------------
Features:
* Added `verify` parameter to `TolokaClient` and `AsyncTolokaClient`. This parameter controls SSL certificate verification settings.

Bugfixes:
* Fixed deserialization of legacy Toloka projects bug which was caused by an attempt to parse view spec with empty `lock` field.

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.