flytekit.types.schema.FlyteSchema

class flytekit.types.schema.FlyteSchema(local_path: Optional[os.PathLike] = None, remote_path: Optional[str] = None, supported_mode: flytekit.types.schema.types.SchemaOpenMode = <SchemaOpenMode.WRITE: 'w'>, downloader: Optional[Callable[[str, os.PathLike], None]] = None)[source]

This is the main schema class that users should use.

__init__(local_path: Optional[os.PathLike] = None, remote_path: Optional[str] = None, supported_mode: flytekit.types.schema.types.SchemaOpenMode = <SchemaOpenMode.WRITE: 'w'>, downloader: Optional[Callable[[str, os.PathLike], None]] = None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([local_path, remote_path, …])

Initialize self.

as_readonly()

column_names()

columns()

format()

open([dataframe_fmt, override_mode])

Will return a reader or writer depending on the mode of the object when created.

Attributes

local_path

remote_path

supported_mode