Python has many libraries to connect to SQL database. SQLAlchemy is a Python SQL toolkit that allows developers to access and manage SQL databases using Pythonic domain language. You can write a query in the form of a string or chain Python objects for similar queries. SQLAlchemy allows users to connect databases using Python language, run SQL queries using object-based programming, and streamline the workflow.
For a tutorial on SQLAlchemy we can look at datacamp.com and read an article called SQLAlchemy Tutorial With Examples.