Run Ltspice netlist using python
I can't answer for Python since I'm not very familiar with it, but I suspect there is some way to run an external program. And if there is, then what you have there is exactly what you need to run a netlist: the -b command line switch. See more about them in the help, under LTspice &gt; Modes of Operation &gt; Command Line Switches.
Extensions do not matter, they may even be missing. All that counts is the contents of the file that must be in SPICE netlist format, with elements that are recognizable by LTspice. That's all.
And if you have an .asc that you want to be run in batch mode, all you need is the -netlist switch, which converts the schematic to a netlist format.