Skip to content

Image Data API


image_data

ImageDataPart dataclass

Bases: Part


              flowchart TD
              scurrypy.api.image_data.ImageDataPart[ImageDataPart]
              scurrypy.core.part.Part[Part]

                              scurrypy.core.part.Part --> scurrypy.api.image_data.ImageDataPart
                


              click scurrypy.api.image_data.ImageDataPart href "" "scurrypy.api.image_data.ImageDataPart"
              click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
            

Represents fields for creating a URI scheme for images.

path: RequiredPartField[str] = None class-attribute instance-attribute

Path to image.

ImageAssetPart dataclass

Bases: Part


              flowchart TD
              scurrypy.api.image_data.ImageAssetPart[ImageAssetPart]
              scurrypy.core.part.Part[Part]

                              scurrypy.core.part.Part --> scurrypy.api.image_data.ImageAssetPart
                


              click scurrypy.api.image_data.ImageAssetPart href "" "scurrypy.api.image_data.ImageAssetPart"
              click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
            

Represents fields for creating an image asset.

filename: RequiredPartField[str] = None class-attribute instance-attribute

Name of the file.

content_type: str = field(init=False) class-attribute instance-attribute

Content type (internally set).

data: bytes = field(init=False) class-attribute instance-attribute

Binary data (internally set).