Exemple #1
0
 def get_file(printer: Printer, origin, filename):
     """
     Returns data about specific file on printer
     """
     client = OctoClient(url=printer.url, apikey=printer.apikey)
     return client.files(origin + "/" + filename)
Exemple #2
0
 def get_files(printer: Printer):
     """
     Returns data about files currently present on printer
     """
     client = OctoClient(url=printer.url, apikey=printer.apikey)
     return client.files()