graviti.file.base
#
Graviti basic file class.
Module Contents#
Classes#
This class represents the file in a DataFrame. |
|
This class represents local files. |
|
This class represents the file on Graviti platform. |
- class graviti.file.base.FileBase[source]#
Bases:
graviti.utility.ReprMixin
This class represents the file in a DataFrame.
- property extension(self)[source]#
Get the extension of the file.
- Returns
The extension of the file.
- Return type
str
- class graviti.file.base.File(path)[source]#
Bases:
FileBase
This class represents local files.
- Parameters
path (graviti.utility.PathLike) – The local path of the file.
- property path(self)[source]#
Get the path of the file.
- Returns
The path of the file.
- Return type
pathlib.Path
- property extension(self)[source]#
Get the extension of the file.
- Returns
The extension of the file.
- Return type
str
- property size(self)[source]#
Get the size of the file.
- Returns
The size of the file.
- Return type
int
- class graviti.file.base.RemoteFile(key, extension, size, object_permission_manager)[source]#
Bases:
FileBase
This class represents the file on Graviti platform.
- Parameters
key (str) – The key of the file.
extension (str) – The extension of the file.
size (int) – The size of the file.
object_permission_manager (graviti.manager.ObjectPermissionManager) – The permission to access the file.