abacusai.api_class.blob_input

Module Contents

Classes

BlobInput

Binary large object input data.

class abacusai.api_class.blob_input.BlobInput

Bases: abacusai.api_class.abstract.ApiClass

Binary large object input data.

Parameters:
  • filename (str) – The original filename of the blob.

  • contents (bytes) – The binary contents of the blob.

  • mime_type (str) – The mime type of the blob.

  • size (int) – The size of the blob in bytes.

filename: str
contents: bytes
mime_type: str
size: int
classmethod from_local_file(file_path)
Parameters:

file_path (str) –

Return type:

BlobInput

classmethod from_contents(contents, filename=None, mime_type=None)
Parameters:
  • contents (bytes) –

  • filename (str) –

  • mime_type (str) –

Return type:

BlobInput