Skip to content

Releases: Toloka/toloka-kit

v1.1.0 [YANKED]

08 Dec 12:23
e4bb40d
Compare
Choose a tag to compare

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:
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.

v1.0.2

31 Oct 10:47
6649837
Compare
Choose a tag to compare

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

14 Oct 12:29
6249ecb
Compare
Choose a tag to compare

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

16 Sep 15:47
c0e40f8
Compare
Choose a tag to compare

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 requires toloka-kit[pandas];
    • toloka.metrics.jupyter_dashboard module now requires toloka-kit[jupyter-metrics];
    • ZooKeeperLocker class now requires toloka-kit[zookeeper] installed;
    • S3Storage class now requires toloka-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 to SubmitedAssignmentsCountPoolAnalytics.

Features:

  • TolokaClient.wait_operation now shows progress bar of submitted operation. This behavior can be disabled with
    the disable_progress=True parameter.
  • Supported infer_data_spec option in TemplateBuilderViewSpec. 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 and TolokaClient.get_operations. These methods allow
    you to list operations in the same way as the other find_* and get_* 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:

v1.0.0rc1

25 Jul 12:16
d8d470b
Compare
Choose a tag to compare
v1.0.0rc1 Pre-release
Pre-release

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 requires toloka-kit[pandas];
    • toloka.metrics.jupyter_dashboard module now requires toloka-kit[jupyter-metrics];
    • ZooKeeperLocker class now requires toloka-kit[zookeeper] installed;
    • S3Storage class now requires toloka-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 to SubmitedAssignmentsCountPoolAnalytics.

Features:

  • TolokaClient.wait_operation now shows progress bar of submitted operation. This behavior can be disabled with
    the disable_progress=True parameter.
  • Supported infer_data_spec option in TemplateBuilderViewSpec. 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 and TolokaClient.get_operations. These methods allow
    you to list operations in the same way as the other find_* and get_* methods.
  • New TolokaClient.get_user method which allows you to get information about one specific Toloker.
  • Massive improvements in documentation.

Changes:

v0.1.26

15 Jun 14:52
ab0123b
Compare
Choose a tag to compare

Features:

  • Added toloka.autoquality - a tool for autogeneration of quality control rules
  • Added speed_quality_balance attribute to Pool

v0.1.25

17 May 13:30
7c79a55
Compare
Choose a tag to compare

Fixes:

  • Fix add new observers error.

v0.1.24 [YANKED]

07 Apr 09:58
66b11b3
Compare
Choose a tag to compare

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 the Pipeline to process all observers in the current iteration and then exit. On the second SIGINT received, the Pipeline 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, and enable methods: these methods change the target Observer state such that toloka.streaming.Pipeline handles it accordingly.

Other improvements:

  • Added MapView Template Builder component.

v0.1.23

01 Feb 14:45
682c50d
Compare
Choose a tag to compare

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 or toloka.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 weird requests.packages.urllib3
  • Actualized outdated docstrings in toloka.client.user_bonus

v0.1.22

17 Dec 10:13
8f650e5
Compare
Choose a tag to compare

0.1.22

Fixes:

  • Fixed uninitialized start_soon. See #48
  • New metrics example