Other

项目介绍

Toloka/toloka-kit 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Other 许可证,目前获得 212 个 Star、36 次 Fork。

仓库全名
Toloka/toloka-kit
开源许可证
Other
Star 数
212
Fork 数
36
未关闭 Issue
8

README 摘要

Toloka-Kit Toloka website | Documentation | Issue tracker Toloka-Kit is a Python library for working with Toloka API. The API allows you to build scalable and fully automated human-in-the-loop ML pipelines, and integrate them into your processes. The toolkit makes integration easier. You can use it with Jupyter notebooks. Support for all common Toloka use cases: creating projects, adding pools, uploading tasks, and…

完整内容见 GitHub 原始 README 或本页 。

常见问题

toloka-kit 用什么语言开发?

主要使用 Python 编写,采用 Other 许可证,目前有 212 个 Star。

toloka-kit 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 toloka-kit 的源码?

可以直接克隆仓库:git clone https://github.com/Toloka/toloka-kit.git,默认分支为 main;安装与运行步骤见仓库 README。

toloka-kit 最近还在维护吗?

仓库最近一次更新为 2024年7月2日,当前有 8 个未关闭 Issue;Star 数为 212,可作为社区活跃度的参考。

关于

Toloka-Kit is a Python library for working with Toloka API.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Python
Shell

Release

README

Toloka-Kit

License PyPI Latest Release Supported Versions Downloads

Coverage GitHub Tests

Toloka website | Documentation | Issue tracker

Toloka-Kit is a Python library for working with Toloka API.

The API allows you to build scalable and fully automated human-in-the-loop ML pipelines, and integrate them into your processes. The toolkit makes integration easier. You can use it with Jupyter notebooks.

  • Support for all common Toloka use cases: creating projects, adding pools, uploading tasks, and so on.
  • Toloka entities are represented as Python classes. You can use them instead of accessing the API using JSON representations.
  • There’s no need to validate JSON files and work with them directly.
  • Support of both synchronous and asynchronous (via async/await) executions.
  • Streaming support: build complex pipelines which send and receive data in real time. For example, you can pass data between two related projects: one for data labeling, and another for its validation.
  • AutoQuality feature which automatically finds the best fitting quality control rules for your project.

Prerequisites

Before you begin, make sure that:

Get Started

  1. Install the Toloka-Kit package. Run the following command in the command shell:
$ pip install toloka-kit

For production environments, specify the exact package version. For the latest stable version, check the project page at pypi.org.

Note: Starting with v1.0.0 release only the core version of the package is installed by default. See the Optional dependencies section for the details.

If you are just starting to use Toloka-Kit, the core package is enough. Our docs explicitly state which features require other packages, so you can install them later if you need them.

  1. Check access to the API with the following Python script. The script imports the package, asks to enter the OAuth token, and requests general information about your account.
import toloka.client as toloka
from getpass import getpass


# Uncomment one of the following two lines to specify where to send requests to: sandbox or production version of Toloka
target = 'SANDBOX'
# target = 'PRODUCTION'

toloka_client = toloka.TolokaClient(getpass("Enter your token:"), target)
print(toloka_client.get_requester())

If the code above has not raised any errors or exceptions, it means that everything works correctly.

  1. Follow our Learn the basics tutorial to learn how to work with Toloka API using Toloka-Kit.

Optional dependencies

Run this command to install toloka-kit with all additional dependencies:

$ pip install toloka-kit[all]

To install specific dependencies, run:

$ pip install toloka-kit[pandas,autoquality,s3,zookeeper,jupyter-metrics] # remove unnecessary requirements from the list

Usage examples

Toloka-kit usage examples - tutorials for specific data labeling tasks. They demonstrate how to work with Toloka API using Toloka-Kit.

Documentation

Support

Contributing

Feel free to contribute to toloka-kit. Right now, we need more usage examples.

License

© Copyright 2023 Toloka team authors. Licensed under the terms of the Apache License, Version 2.0. See LICENSE for more details.

评论

暂无评论