Hi@akhtar,
You can use the Sqlalchemy module in your python code. It helps you to run the SQL command in your python code. You can use the below code in your script.
from sqlalchemy import create_engine
# Create the db engine
engine = create_engine('sqlite:///:memory:')
I hope this will help you.