Read a NgSpice rawfile using PySpice

Hello guys,

I am writing a python script that generates, runs and eventually will read the raw files. The command I use to run the netlist is the following: subprocess.run([path_to_ngspice_executable,'-r','rawfile.raw','-b','-i',my_netlist]) which generates my rawfile.

Could you please tell me what PySpice command to use so I can read the generated raw file and plot the distribution of my voltages?

Thanks in advance !