How to migrate to ANDi 1.0

Upgrade scripts to Python 3 syntax

To upgrade scripts to Python 3, the following should be performed:

  • click on the "Upgrade script" button in ANDi GUI (see screenshot below)

_images/andi_gui_upgrade_script_button.png
  • check the applied updates on the scripts

Add import statements

  • ANDi will no longer implicitly import project objects. The user must add import statements.

  • The following line needs to be added at the starting of each script so that the autocomplete works properly:

from project import *

Note:

The user can use 2to3 to migrate scripts to Python 3:

pip install 2to3
2to3 -w "your_script.py"
2to3 -w -n "your_folder"

See more options from here