What is the difference between NPSApp and StandardApp on npyscreen?

128 Views Asked by At

I need to create a Python CLI application using npyscreen, but the documentation is not clear how to create a UI app.

My app will have a one controller, one service layer and a main script. In the main script I call the controller and the controller loads the service layer, but, what is the difference between use a NPSApp or StandardApplication for main class?

class Controller(npyscreen.NPSApp):
class Controller(npyscreen.StandardApp):

Which should I use as best practice and when not to use one of them?

1

There are 1 best solutions below

1
etaurrnet valent On

StandartApp is deprecated and may throw errors with the latests versions of Python (for ex : 3.7) Otherwise, npyscreen official documentation recommands NPSAppManaged.