I hope you structure your code so that most of it is modular and can be imported into other code. In this structure, than your application, is a wrapper between the command line of the program and / or other user interfaces and functions provided by your modules.
In this case, a pointer to the relevant documentation for Installing Scripts .
source share