Coretex
|
Public Member Functions | |
Self | createProject (cls, str name, ProjectType projectType, ProjectVisibility visiblity=ProjectVisibility.private, Optional[str] description=None) |
bool | addTask (self, str name, Optional[str] description) |
Self | fetchByName (cls, str name) |
None | updateVisibility (self, ProjectVisibility visibility) |
Public Member Functions inherited from coretex.entities.project.base.BaseObject | |
bool | rename (self, str name) |
bool | updateDescription (self, str description) |
Represents the project entity from Coretex.ai\n Contains properties that describe the project
Definition at line 30 of file project.py.
bool coretex.entities.project.project.Project.addTask | ( | self, | |
str | name, | ||
Optional[str] | description | ||
) |
Adds new task to the project Parameters ---------- name : str task name description : Optional[str] task description Returns ------- bool -> True if the task was added. False if the task was not added
Definition at line 105 of file project.py.
Self coretex.entities.project.project.Project.createProject | ( | cls, | |
str | name, | ||
ProjectType | projectType, | ||
ProjectVisibility | visiblity = ProjectVisibility.private , |
||
Optional[str] | description = None |
||
) |
Creates a new project with the provided name and description Parameters ---------- name : str project name projectType : ProjectType type of the created Project visibility : ProjectVisibility visibility of the created Project description : Optional[str] project description Returns ------- Self -> The created project object Raises ------ NetworkRequestError -> If project creation failed Example ------- >>> from coretex import Project, ProjectType \b >>> try: >>> dummyProject = Project.createProject( name = "dummyProject", projectType = ProjectType.other, description = "This is dummy Coretex Project" ) except: print("Failed to create project.")
Definition at line 43 of file project.py.
Self coretex.entities.project.project.Project.fetchByName | ( | cls, | |
str | name | ||
) |
Fetches Project based on specified name Parameters ---------- name : str The name of the Project to fetch Returns ------- Self -> Fetched Project Raises ------ RuntimeError -> If the Project with specified name is not found
Definition at line 129 of file project.py.
None coretex.entities.project.project.Project.updateVisibility | ( | self, | |
ProjectVisibility | visibility | ||
) |
Updates visibility of the project Parameters ---------- visibility : ProjectVisibility visibility of the project Raises ------ NetworkRequestError -> If request for updating the Project visibility failed
Definition at line 153 of file project.py.