Python Forum
anyone interested in a project of making python versions of various POSIX commands - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: anyone interested in a project of making python versions of various POSIX commands (/thread-515.html)

Pages: 1 2


anyone interested in a project of making python versions of various POSIX commands - Skaperen - Oct-16-2016

anyone interested in a project of making python versions of various POSIX commands like cat, cp, diff, grep, head, ln, ls, mv, rm, tail, and wc?  maybe subsets (not implement all options)?


RE: interesting project - micseydel - Oct-16-2016

Just for fun or for some other reason?


RE: interesting project - snippsat - Oct-16-2016

(Oct-16-2016, 06:47 AM)Skaperen Wrote: anyone interested in a project of making python versions of various POSIX commands like cat, cp, diff, grep, head, ln, ls, mv, rm, tail, and wc?  maybe subsets (not implement all options)?
You can look a Generator Tricks for Systems Programmers

The reason why he did is a really good story.
It invoke a trail case and and a vault where he had to look at and understand 1-million lines of assembly/C/C++ code.
The only tool he had in vault was Windows XP and the search mud :sick:
So he had to reinvent Linux tool with Python to figure out the code,because he could not run the code.
David Beazley: Discovering Python


RE: anyone interested in a project of making python versions of various POSIX commands - wavic - Oct-16-2016

I watched this. Amazing talk. Installation on any tools or programs was not permitted and lucky for him there was installed Python on this XP :)


RE: anyone interested in a project of making python versions of various POSIX commands - Larz60+ - Oct-16-2016

David's been around the block his website:

http://www.dabeaz.com/

has links to all of his PyCon  talks, slides, etc.

One particularly interesting and fun project he does is a live Chicago Transit Authority, current data on every bus
location in the video on coroutines.


RE: anyone interested in a project of making python versions of various POSIX commands - wavic - Oct-16-2016

(Oct-16-2016, 10:11 PM)Larz60+ Wrote: One particularly interesting and fun project he does is a live Chicago Transit Authority, current data on every bus
location in the video on coroutines.
The story for the lost luggage? :)


RE: interesting project - Skaperen - Oct-17-2016

(Oct-16-2016, 05:06 PM)micseydel Wrote: Just for fun or for some other reason?

for any reason you want


RE: anyone interested in a project of making python versions of various POSIX commands - snippsat - Oct-17-2016

Task like these can be good to do if want practice with Click.
Click is bye far the best command line parser for Python now.


RE: anyone interested in a project of making python versions of various POSIX commands - Larz60+ - Oct-17-2016

Wavic - Yes the lost luggage
But he shows how to use this service provided by the transit authority
I did a bit of research after watching the video, and it turns almost all cities have
this sort of service.

I still operate on a blackberry phone (hate phones), so not savvy on what's available, but someone must
have already created an app using this.


RE: anyone interested in a project of making python versions of various POSIX commands - Skaperen - Oct-17-2016

(Oct-17-2016, 03:23 AM)snippsat Wrote: Task like these can be good to do if want practice with Click.
Click is bye far the best command line parser for Python now.

this kind of project can very likely benefit from Click, given the large set of options many of these commands have.