Python Application Skeleton

The following code is the basic structure of a Python Application.


To run this code you need:
  • A running Python 3.x Environment

  • A valid WASDI Account

  • A valid Config file

If this is not clear, you probably need to take a look to the Python Tutorial before.


This is the basic structure of a WASDI Application.


The main file MUST be called You can then add all the libraries, files and module you may want to code or include

import wasdi

def run():
    wasdi.wasdiLog("Here I can start to code")

if __name__ == '__main__':

What it does:

  • import the library

  • handle __main__ in the file

  • define a run() method

  • initialize the lib

  • call the run() method


This structure is mandatory if you plan to deploy your application in WASDI. To use the library only as a client, this is not necessary.