get_attachment

toloka.client.TolokaClient.get_attachment | Source code

get_attachment(self, attachment_id: str)

Gets attachment metadata without downloading it.

To download an attachment use the download_attachment method.

Parameters description

ParametersTypeDescription
attachment_idstr

The ID of the attachment.

  • Returns:

    The attachment metadata.

  • Return type:

    Attachment

Examples:

attachment = toloka_client.get_attachment(attachment_id='0983459b-e26f-42f3-a5fd-6e3feee913e7')

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming