How can I encrypt my Python script?


The Python support is based on provision of a Python module that can be imported into Python scripts allowing access to PowerFactory data. The scripts - independent of whether started from within PowerFactory or from external - are executed by a standard Python interpreter that must be installed on the machine. PowerFactory does not come with its own interpreter nor has made any adaptions to the Python language itself. This means the scripts are open for all language features and third-party modules.

As a consequence the protection of script code is beyond PowerFactory and is subject to the Python interpreter. The available protection mechanisms are same as for 'normal' Python scripts.

Please refer to the Python homepage or discussion forums such as Stackoverflow - How do I protect Python code? for more information on this topic.