Great idea Sadra! Thank you for this one, I've tested your engine, and it works perfectly fine.
One quick note here: Planet scale uses os module to read .env file data, I recommend using python-decouple for that (os module fails at importing the settings).