flytekit.core.data_persistence.DiskPersistence#
- class flytekit.core.data_persistence.DiskPersistence(default_prefix=None, **kwargs)[source]#
The simplest form of persistence that is available with default flytekit - Disk-based persistence. This will store all data locally and retrieve the data from local. This is helpful for local execution and simulating runs.
Methods
- construct_path(_, add_prefix, *args)[source]#
if add_protocol is true then <protocol> is prefixed else Constructs a path in the format <base><delim>*args delim is dependent on the storage medium. each of the args is joined with the delim
- get(from_path, to_path, recursive=False)[source]#
Retrieves data from from_path and writes to the given to_path (to_path is locally accessible)
- put(from_path, to_path, recursive=False)[source]#
Stores data from from_path and writes to the given to_path (from_path is locally accessible)
Attributes
- PROTOCOL = 'file://'#
- default_prefix#
- name#