psycopg2
library, which is a PostgreSQL adapter for the Python programming language. TimescaleDB is built on top of PostgreSQL and therefore can be accessed using the same client libraries and APIs.
The required arguments to establish a connection are as follows:
*host
is the the host name or IP address of the TimescaleDB server.
*port
is the port to use when connecting with the TimescaleDB server.
*database
is the database name to use when connecting with the TimescaleDB server.
*user
is the user to authenticate the user with the TimescaleDB server.
*password
is the password to authenticate the user with the TimescaleDB server.