sieve.File
is a utility class that helps with handling files that are inputs to a function
, produced locally in the file system, or downloaded from an external url.
The underlying contents in a sieve.File
are backed by Sieve’s file servers and are downloaded lazily, meaning that they will not download the content until requested with the path
property. This means that a sieve.File
can be passed around to different functions efficiently without having to deal with network overhead.
url
(str): The URL of the file to download.path
(str): The local path to the file.File
can be instantiated in two ways, either by providing a local file path, or an external url. You can either pass them in as positional arguments or as keyword arguments to path or url.
.path
on the sieve.File
object.
sieve.File
instance as the argument to the function.