If you’re looking for a place to start, W3Schools has a Python tutorial that’s pretty straightforward. It breaks things down ...
Note defineConfig is used to export configuration for the consumption by turbowatch program. If you want to run Turbowatch programmatically, then use watch. The API of both methods is equivalent.