pen test automation

i need help in my graduation project , i’m building an api in python that will automate the pen testing process but i don’t know from where to start , any ideas plz ?
thank you v

Hey man,Firstly,are you allowed to use libraries like subprocess?

Second You may check curl implementation in python.

You may share some more details?