class documentation
Undocumented
Method | __init__ |
Undocumented |
Method | create |
Undocumented |
Method | delete |
Undocumented |
Method | execute |
Undocumented |
Method | execute |
Undocumented |
Method | exists |
Undocumented |
Method | get |
Retrieve a program by doing a request to the database and by reading the files on the system :param program_id: the wanted program's id :type program_id: str :return: The program information :rtype: ProgramDict... |
Method | get |
Returns all the programs. This method is costly as it calls the database and the system files multiple times. Prefer using the programs property :return: The programs information :rtype: List[ProgramDict]... |
Method | stop |
Undocumented |
Method | update |
Undocumented |
Property | execution |
Undocumented |
Property | execution |
Undocumented |
Property | execution |
Undocumented |
Property | programs |
Returns the cached programs. This method is more efficient than get_all as it do not directly use the database nor the file :return: The programs information :rtype: List[ProgramDict] |
Static Method | __execute |
Undocumented |
Method | __sync |
Do various checks to ensure the database is synced with the files |
Instance Variable | __blockly |
Undocumented |
Instance Variable | __database |
Undocumented |
Instance Variable | __programs |
Undocumented |
Instance Variable | __programs |
Undocumented |
Instance Variable | __python |
Undocumented |
Instance Variable | __python |
Undocumented |
def create_program(self, name:
str
, description: str
, python_code: str
, blockly_code: str
= '') -> str
:
¶
Undocumented
Retrieve a program by doing a request to the database and by reading the files on the system :param program_id: the wanted program's id :type program_id: str :return: The program information :rtype: ProgramDict
Returns all the programs. This method is costly as it calls the database and the system files multiple times. Prefer using the programs property :return: The programs information :rtype: List[ProgramDict]
def update_program(self, program_id:
str
, name: str
, description: str
, python_code: str
, blockly_code: str
):
¶
Undocumented
Returns the cached programs. This method is more efficient than get_all as it do not directly use the database nor the file :return: The programs information :rtype: List[ProgramDict]