Coretex
|
Public Member Functions | |
Path | localFilePath (self) |
bool | isDirectory (self) |
bool | isFile (self) |
bool | download (self) |
List[Artifact] | fetchAll (cls, int experimentId, Optional[str] path=None, bool recursive=False) |
Public Member Functions inherited from coretex.codable.codable.Codable | |
Dict[str, Any] | encode (self) |
None | onDecode (self) |
Self | decode (cls, Dict[str, Any] encodedObject) |
Artifact class represents a single result of an experiment\n Result can be file of any kind Properties ---------- artifactType : ArtifactType type of Artifact remoteFilePath : str path of Artifact on Coretex size : Optional[int] size of Artifact in bytes (not required) mimeType : str mimeType of Artifact timestamp : int current timestamp experimentId : int id of experiment
Definition at line 61 of file artifact.py.
bool coretex.coretex.experiment.artifact.Artifact.download | ( | self | ) |
Downloads Artifact from Coretex.ai Returns ------- bool -> False if response has failed, True otherwise
Definition at line 160 of file artifact.py.
List[Artifact] coretex.coretex.experiment.artifact.Artifact.fetchAll | ( | cls, | |
int | experimentId, | ||
Optional[str] | path = None , |
||
bool | recursive = False |
||
) |
Fetch all Artifacts from Coretex.ai for the specified experiment Parameters ---------- experimentId : int id of experiment path : Optional[str] local path where u want to store fetched Artifacts recursive : bool True if you want list to be sorted recursively, False otherwise
Definition at line 179 of file artifact.py.
bool coretex.coretex.experiment.artifact.Artifact.isDirectory | ( | self | ) |
Returns ------- bool -> True if Artifact type is directory
Definition at line 103 of file artifact.py.
bool coretex.coretex.experiment.artifact.Artifact.isFile | ( | self | ) |
Returns ------- bool -> True if Artifact type is file
Definition at line 113 of file artifact.py.
Path coretex.coretex.experiment.artifact.Artifact.localFilePath | ( | self | ) |
Represents the local path of the Artifact Returns ------- Path -> local path to Artifact
Definition at line 91 of file artifact.py.