Using DataTables with Python
<p>I'm a beginner at website programming and want to understand some basics.</p>

<p>I've created a Python 3 script which fetches some data from a website and makes some calculations. Result is then about 20 rows with 7 columns.</p>

<p>What is the easiest way to make them available on my website? When refreshing my website, the Python script should fetch the data from the 3rd party website and this data should then be displayed in a simple table with sorting option.</p>

<p>I've discovered the jQuery plugin DataTables with Ajax JSON source. I would create a PHP script which executes the Python script which writes data to a DB like MariaDB. PHP then creates a JSON for Ajax.
Is this the right way or are there easier ways? Maybe using a framework etc.?</p>

<p>Thanks!</p>