Toloka-kit

Latest version: v1.2.3

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

Scan your dependencies

Page 2 of 7

1.1.3

-------------------
Bugfixes:
* Removed upper bound on `cattrs` version.
* While structuring objects with unknown `spec_value` corresponding classes are generated in runtime now. Thus objects like filters, rule actions and others that are not fully documented in api/experimental/removed in past from toloka-kit could be safely structured now.

1.1.2

-------------------
Bugfixes:
* Methods for the batch creation of tasks, task suites or user bonuses could create duplicate items in case of unstable connection:
* `TolokaClient.create_tasks_async`, `TolokaClient.create_task_suites_async` and `TolokaClient.create_user_bonuses_async` as well as `TolokaClient.create_tasks`, `TolokaClient.create_task_suites` with `async_mode=True` now guaranteed to create not more than one batch of items for a single function call.
* `TolokaClient.create_user_bonuses` and `TolokaClient.create_user_bonus` are guaranteed to create not more than one batch of items for a single function call but may raise an exception if there was an attempt to create the same batch of items for the second time due to the unstable connection.

1.1.1

-------------------
Features:
* Introduced `batch_size` parameter to `TolokaClient.get_*` methods family. This parameter can be used to control the items limit for every underlying request that is made while iterating.

Deprecated:
* CAPTCHA frequency and CAPTCHA-based quality control settings are deprecated and will be removed in the future. CAPTCHAs are now included automatically for better quality control.

Bugfixes:
* `AsyncTolokaClient` can be serialized and deserialized with pickle now.

1.1.0

-------------------
Features:
* `AsyncTolokaClient` rework. Previously `AsyncTolokaClient` was a simple wrapper over `TolokaClient` that provided asynchrony via threading. This lead to poor performance and instability in the case of many concurrent connections. With the current release, `AsyncTolokaClient` is implemented with native python async code and `httpx` async networking provider internally, fixing all the above problems.

Deprecated:
* All `AsyncTolokaClient` methods returning generators now return async generators. Currently, the old (synchronous) iteration syntax is still supported via an adapter, but we encourage you to switch to the new (asynchronous) one.
Example:
python
async_toloka_client = AsyncTolokaClient(...)

deprecated syntax, support will be dropped in the feature
for assignment in await async_toloka_client.get_assignments(...):
...

recommended syntax
async for assignment in async_toloka_client.get_assignments(...):
...



Changes:
* Toloka-Kit now internally uses `httpx` library instead of `requests`.

Bug fixes:
* `TolokaClient.create_task_suites` now returns response of the correct type.

1.0.2

-------------------
Features:
* `Pipeline` class can be manually iterated now using `Pipeline.run_manually` method.
* `Pipeline` now supports `iteration_mode` parameter, which controls whether the new iteration will start only after the completion of all tasks.

1.0.1

-------------------
Features:
* Some filters now support inversion using "~" operator.
* Improved error messages.
* Added new `Verified` filter.

Bug fixes:
* Filters created using Toloka-Kit now should be rendered correctly in the Toloka UI.
* `Languages.include` now works correctly in case of multiple languages being passed.

Page 2 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.