import slicer doesn't work in python script

I want to automate generating a scene using python.
I’ve created a .py file.
But when I run:
import slicer
I get the following error:
ModuleNotFoundError: No module named 'slicer'

If i load the slicer application it works fine, but I want to be able to build a scene file and add transform and link data to it, etc. from a python script without having to open the application.
Is this possible?

Maybe I just dont have something installed?


Some things can be done using the PythonSlicer command and others can be done with the --no-main-window and --python-script options to the Slicer executable. Both are limited compared to the full app with rendering and all modules available so a lot depends on what exactly you need to do.

Thanks. that seems to be sufficient for my purposes!