My final goal is to make a script that can render a collection of meshes, one at a time, from various angles. This problem has been discussed multiple times, such as Blender script import model and render it.
However, all these approaches use the blender renderer, which requires a lighting setup. I just want to observe the geometry, so for me lighting is not really important. Viewport shading is perfect, but this requires an opengl context to generate from python, so I'm stuck with the renderer.
The question is, how could I setup the lighting in python such that it mimics the viewport shading? Or, what would be easy lighting setup that would produce a similar effect.
Just to make it clear, for my purposes lighting effects are not important, I am just trying to observe the geometry.