Releases: Toloka/toloka-kit
Releases · Toloka/toloka-kit
v1.2.3
v1.2.2
Changes:
- Updated Apps API-related
TolokaClient
andAsyncTolokaClient
methods to support new features.
v1.2.1
Python versions support:
- Python 3.7 support dropped
Changes:
- Updated
TolokaClient.create_app_items
andAsyncTolokaClient.create_app_items
to return the list of created app
items ids. - Added
tier
parameter toTolokaClient.create_pool
andAsyncTolokaClient.create_pool
methods.
v1.2.0.post1
Bugfixes:
- Fixed OAuth authorization header generation.
v1.2.0 [YANKED]
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
andTolokaClient.create_user_bonus
now supportoperation_id
parameter.
Fixes:
TolokaClient.create_task
,TolokaClient.create_task_suite
,TolokaClient.create_user_bonus
andTolokaClient.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 pickleAsyncTolokaClient
. NowAsyncTolokaClient
survives asyncio event loop change. TolokaClient
andAsyncTolokaClient
followsurllib3
retrying behavior more closely in case of theRetry
object being passed to theretry
orretryer_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.
v1.1.4
Features:
- Added
verify
parameter toTolokaClient
andAsyncTolokaClient
. 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.
v1.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.
v1.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
andTolokaClient.create_user_bonuses_async
as well asTolokaClient.create_tasks
,TolokaClient.create_task_suites
withasync_mode=True
now guaranteed to create not more than one batch of items for a single function call.TolokaClient.create_user_bonuses
andTolokaClient.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.
v1.1.1
v1.1.0.post1
Patch for the 1.1.0 release
Bugfixes:
- Content-type header is now specified correctly when preforming POST requests with JSON body