flytekit.types.schema.FlyteSchema

class flytekit.types.schema.FlyteSchema(local_path=None, remote_path=None, supported_mode=SchemaOpenMode.WRITE, downloader=None)[source]

This is the main schema class that users should use.

Parameters
__init__(local_path=None, remote_path=None, supported_mode=SchemaOpenMode.WRITE, downloader=None)[source]
Parameters
  • local_path (Optional[os.PathLike]) –

  • remote_path (Optional[str]) –

  • supported_mode (flytekit.types.schema.types.SchemaOpenMode) –

  • downloader (Optional[Callable[[str, os.PathLike], None]]) –

Methods

__init__([local_path, remote_path, ...])

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