import stl file in blender via python script

I want to import stl file in blender by running python script.

Once the stl file is imported, I need to check how many circles inside the stl file. e.g. cylinder shows two circles.

Can you please help me to find python source code?

thanks in advance.

Moved from “General Forums > Blender and CG Discussions” to “Coding > Python Support”