Let me preface this by saying: I’m a neophyte to Pyhon! I’ve written a bunch of modules to drive a user interactive application via the command line. Additionally, someone recommended that I look at using the cmd module. And I’ve looked at it on some sites, but still not sure how to use it. I don’t have dyslexia or anything like that, but I have a really tough time digesting technical literature (with no examples) … I’m a visual learner, and if I can see a good, clear example one time, it’s with me for a life time. Can anyone give me a short intro on how to use the cmd module …? Until then, I will continue to scour Google for good examples. I might get lucky … Thanks!
Share
Doug Hellmann’s Python Module of the Week series has a good example of using the
cmdmodule.Another good example is the ActiveState recipe “Console built with Cmd object”, but I think it is more complicated. ActiveState Python recipes and PyMOTW are good sources for python examples.
You could also see the
cmdmodule’s source to understand how it works, and you may like thecmd2module too.