Toloka documentation

get_attachment

toloka.client.TolokaClient.get_attachment | Source code

get_attachment(self, attachment_id: str)

Gets attachment metadata without downloading it

To download attachments as a file use "TolokaClient.download_attachment" method.

Parameters Description

Parameters Type Description
attachment_id str

ID of attachment.

  • Returns:

    The attachment metadata read as a result.

  • Return type:

    Attachment

Examples:

Specify an attachment_id to get the information about any attachment object.

toloka_client.get_attachment(attachment_id='1')