Python connect to PostgreSQL / TimescaleDB

Here you can find an easy example to handle database connectivity in Python (used with TimescaleDB to save metrics):

I hardcoded my table name, but I think you can get the approach :-)

--

--

IT Architect

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store