![]() If you want to do fancier things though, it starts getting a bit more complicated and the implementation you might be looking for becomes a bit less obvious. It's pretty easy to have a basic call to subprocess that simply runs the process. In Python, subprocess is the standard, tried and true, way of spawning other processes in Python, and that was what we used. When this happened, I was for a few reasons unsatisfied with the first attempt. ![]() Rambo started out as Vagrant code, and then turned into a wrapper around Vagrant. In the talk, I presented on the best way to do that that I'm aware of. Python's subprocess can do a lot, but the more basic uses fall short in various ways when you want to build a CLI passthrough. ![]() Yesterday I gave a lightning talk at APUG about a better subprocess. A Better CLI Passthrough in Python Do you need to call something over a CLI with Python, and display the results? Start with this. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |