Skip to content

Text asset

Text Asset Module

Defines the TextAsset class for handling textual data within assets.

TextAsset #

TextAsset(text: str)

Bases: BaseAsset

TextAsset Class

Represents a textual asset.

Parameters:

Name Type Description Default
text str

The text content of the asset.

required

Parameters:

Name Type Description Default
text str

The textual content of the asset.

required
Source code in src/rapidata/rapidata_client/assets/text_asset.py
def __init__(self, text: str):
    """
    Initialize a TextAsset instance.

    Args:
        text (str): The textual content of the asset.
    """
    self.text = text