Saturday, March 4, 2017

python - How to package and ship a command line app in ubuntu?

Suppose I have a simple python program that prints 'Hello! World'. Now how can I turn it into a Command line utility like ls. A utility which I can install using apt-get install the_name.



Next question is: When I run my python program I expect input from the user.



eg: Enter the number you want to check for primality?
Like ls uses l switch for long listing. My app can use say p for checking primality, like the_name -p 36.



How can I do this with my above command line utility.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...