remote
- class trame.assets.remote.AbstractRemoteFile(local_path=None, local_base=None)
Bases:
object
AbstractRemoteFile provide infrastructure for RemoteFile where only the method fetch() needs to be defined for a concreate implementation.
- property local
Return true if the file is available locally on the File System
- fetch()
Perform the action needed to fetch the content and store it locally
- property path
Return the actual local file path
- class trame.assets.remote.GoogleDriveFile(local_path=None, google_id=None, local_base=None)
Bases:
AbstractRemoteFile
Helper file to manage caching and retrieving of file available on Google Drive
- fetch()
Perform the action needed to fetch the content and store it locally
- class trame.assets.remote.HttpFile(local_path=None, remote_url=None, local_base=None)
Bases:
AbstractRemoteFile
Helper file to manage caching and retrieving of file available on HTTP servers
- fetch()
Perform the action needed to fetch the content and store it locally