Releases: Toloka/toloka-kit
v1.1.0 [YANKED]
Features:
AsyncTolokaClient
rework. PreviouslyAsyncTolokaClient
was a simple wrapper overTolokaClient
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 andhttpx
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:
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 ofrequests
.
Bug fixes:
TolokaClient.create_task_suites
now returns response of the correct type.
v1.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.
v1.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.
v1.0.0
Breaking changes:
-
By default only the core version of the package with minimized dependencies size is installed. The following objects were
extracted into package extras:TolokaClient.get_assignments_df
method now requirestoloka-kit[pandas]
;toloka.metrics.jupyter_dashboard
module now requirestoloka-kit[jupyter-metrics]
;ZooKeeperLocker
class now requirestoloka-kit[zookeeper]
installed;S3Storage
class now requirestoloka-kit[s3]
.
To install all optional dependencies (the same behavior as in pre-1.0.0 releases) use
toloka-kit[all]
. -
SubmittedAssignmentsCountPoolAnalytics
class is renamed toSubmitedAssignmentsCountPoolAnalytics
.
Features:
TolokaClient.wait_operation
now shows progress bar of submitted operation. This behavior can be disabled with
thedisable_progress=True
parameter.- Supported
infer_data_spec
option inTemplateBuilderViewSpec
. This option allows you to control whether data
specifications will be inferred from the provided view spec or not. - New
autoquality
usage example. - New verified languages in the
Languages
filter. - New
TolokaClient
option:act_under_account_id
. This option allows you to act using a shared account without
a token of this account. - New
TolokaClient
methods:TolokaClient.find_operations
andTolokaClient.get_operations
. These methods allow
you to list operations in the same way as the otherfind_*
andget_*
methods. - New
TolokaClient.get_user
method which allows you to get information about one specific Toloker. - Fix filters' combination via "or" and "and" logic, add filters' inversion.
- Massive improvements in documentation.
Changes:
- https://toloka.dev and https://sandbox.toloka.dev domains are now used for the API requests.
- https://platform.toloka.ai is now used for redirect to requester's account.
v1.0.0rc1
Breaking changes:
-
By default only the core version of the package with minimized dependencies size is installed. The following objects were
extracted into package extras:TolokaClient.get_assignments_df
method now requirestoloka-kit[pandas]
;toloka.metrics.jupyter_dashboard
module now requirestoloka-kit[jupyter-metrics]
;ZooKeeperLocker
class now requirestoloka-kit[zookeeper]
installed;S3Storage
class now requirestoloka-kit[s3]
.
To install all optional dependencies (the same behavior as in pre-1.0.0 releases) use
toloka-kit[all]
. -
SubmittedAssignmentsCountPoolAnalytics
class is renamed toSubmitedAssignmentsCountPoolAnalytics
.
Features:
TolokaClient.wait_operation
now shows progress bar of submitted operation. This behavior can be disabled with
thedisable_progress=True
parameter.- Supported
infer_data_spec
option inTemplateBuilderViewSpec
. This option allows you to control whether data
specifications will be inferred from the provided view spec or not. - New
autoquality
usage example. - New verified languages in the
Languages
filter. - New
TolokaClient
option:act_under_account_id
. This option allows you to act using a shared account without
a token of this account. - New
TolokaClient
methods:TolokaClient.find_operations
andTolokaClient.get_operations
. These methods allow
you to list operations in the same way as the otherfind_*
andget_*
methods. - New
TolokaClient.get_user
method which allows you to get information about one specific Toloker. - Massive improvements in documentation.
Changes:
- https://toloka.dev and https://sandbox.toloka.dev domains are now used for the API requests.
v0.1.26
Features:
- Added
toloka.autoquality
- a tool for autogeneration of quality control rules - Added
speed_quality_balance
attribute toPool
v0.1.25
v0.1.24 [YANKED]
Fixes:
- Status code 409 is no longer retried by default.
- Status code 504 is now retried by default.
- Fixed bug when
AppItem.errors
have been structured incorrectly. - Fixed the bug when an incorrect version of the
urllib3
was used.
Changes:
toloka.client.filters.Rating
was removed according to changes in Toloka API.- All time data now have a UTC timezone by default (instead of a local timezone).
Streaming improvements:
toloka.streaming.Pipeline
now supports "gentle shutdown": the first SIGINT received will force thePipeline
to process all observers in the current iteration and then exit. On the second SIGINT received, thePipeline
will be interrupted (warning: this may lead to errors such as incorrect saved observers states).toloka.streaming.Pipeline
now supports registering new observers during execution.- Observers now support
delete
,disable
, andenable
methods: these methods change the target Observer state such thattoloka.streaming.Pipeline
handles it accordingly.
Other improvements:
- Added MapView Template Builder component.
v0.1.23
0.1.23
Python versions support:
- Python 3.10 support added
- Python 3.6 support dropped
Improvements:
- Added native support for verfied language skills
- Added native support for map provider's selection for pedestrian tasks in
AssignmentsIssuingViewConfig
- Improved default status code dependent retry policies
- Requests originated from
toloka.streaming
ortoloka.metrics
are now marked with additional headers. This makes it easier for us to collect these features' usage statistics - Annotations now use
urllib3
instead of weirdrequests.packages.urllib3
- Actualized outdated docstrings in
toloka.client.user_bonus