Oreto-utils

Latest version: v0.9

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.5

updated "File" module

0.4

"File" utils rewritten

0.3

changed "display_message()" on PyQt utils
from:

def display_message(title:str, message:str, buttons=None):
display = QMessageBox()
display.setWindowTitle(title)
display.setText(message)

if buttons is not None:
display.setStandardButtons(buttons)
return display.exec_()
else:
display.exec_()
return

to:

def display_message(title:str, message:str, informative_message:str=None, detailed_message:str=None, icon=None, buttons=None):
display = QMessageBox()
display.setWindowTitle(title)
display.setText(message)
if informative_message is not None: display.setInformativeText(informative_message)
if detailed_message is not None: display.setDetailedText(detailed_message)
if icon is not None: display.setIcon(icon)

if buttons is not None:
display.setStandardButtons(buttons)
return display.exec_()
else:
display.exec_()
return

0.2.1

added "set_text" on pyqt util:

usage:

from oreto_utils import PyQt or just set_text

set_text(the_pyqt_gui, name_of_the_gui_element="what ever you want put here")

it uses **kwargs
so its get the kwargs name + the content of it
and the pass through getattr()

getattr(the_pyqt_gui, name_of_the_gui_element).setText(the_pyqt_gui, kwargs[name_of_the_gui_element])

0.2

added "execute" on terminal util:
basically os.system()
don't ask me why

0.1.1

added "files" utils

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.