![]()  | 
  
    Coretex
    
   | 
 
  
Public Member Functions | |
| Path | localFilePath (self) | 
| bool | isDirectory (self) | 
| bool | isFile (self) | 
| bool | download (self) | 
| List[Self] | fetchAll (cls, int taskRunId, 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 a run\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
    taskRunId : int
        id of run
 
Definition at line 39 of file artifact.py.
| bool coretex.entities.task_run.artifact.Artifact.download | ( | self | ) | 
    Downloads Artifact from Coretex.ai
    Returns
    -------
    bool -> False if response has failed, True otherwise
 
Definition at line 145 of file artifact.py.
| List[Self] coretex.entities.task_run.artifact.Artifact.fetchAll | ( | cls, | |
| int | taskRunId, | ||
| Optional[str] | path = None,  | 
        ||
| bool | recursive = False  | 
        ||
| ) | 
    Fetch all Artifacts from Coretex.ai for the specified run
    Parameters
    ----------
    taskRunId : int
        id of run
    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 162 of file artifact.py.
| bool coretex.entities.task_run.artifact.Artifact.isDirectory | ( | self | ) | 
    Returns
    -------
    bool -> True if Artifact type is directory
 
Definition at line 81 of file artifact.py.
| bool coretex.entities.task_run.artifact.Artifact.isFile | ( | self | ) | 
    Returns
    -------
    bool -> True if Artifact type is file
 
Definition at line 91 of file artifact.py.
| Path coretex.entities.task_run.artifact.Artifact.localFilePath | ( | self | ) | 
    Represents the local path of the Artifact
    Returns
    -------
    Path -> local path to Artifact
 
Definition at line 69 of file artifact.py.