By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,621 Members | 1,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,621 IT Pros & Developers. It's quick & easy.

*Python* Power Tools

P: n/a
Anyone know if there is any organized effort underway to implement the
Python equivalent of "Perl Power Tools" <http://ppt.perl.org/>?

If not, would starting this be a waste of effort since:

- it's already being done in Perl?
- cygwin thrives?
- UNIX is already pervasive :-) ?

Or would people really like to claim a pure Python set of UNIX
utilities?

--
Micah
Jul 19 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Micah wrote:
Anyone know if there is any organized effort underway to implement the
Python equivalent of "Perl Power Tools" <http://ppt.perl.org/>?

If not, would starting this be a waste of effort since:
+1 WOFTAM-of-the-year

- it's already being done in Perl?
- cygwin thrives?
For windows users, apart from cygwin, there are a couple of sources of
binaries for *x command-line utilities (unxutils, gnuwin32).
- UNIX is already pervasive :-) ?

Or would people really like to claim a pure Python set of UNIX
utilities?


Sorry, can't parse that last sentence.
Jul 19 '05 #2

P: n/a
On Tuesday 21 June 2005 06:53 pm, John Machin wrote:
Micah wrote:
Anyone know if there is any organized effort underway to implement the
Python equivalent of "Perl Power Tools" <http://ppt.perl.org/>?

If not, would starting this be a waste of effort since:


+1 WOFTAM-of-the-year

[...]
Or would people really like to claim a pure Python set of UNIX
utilities?


Sorry, can't parse that last sentence.


In other words, it'd be a purely aesthetic goal. Which is only a waste
if art is.

But then, I know *I'm* not going to spend time on it. ;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com

Jul 19 '05 #3

P: n/a
Micah wrote:
Anyone know if there is any organized effort underway to implement the
Python equivalent of "Perl Power Tools" <http://ppt.perl.org/>?

If not, would starting this be a waste of effort since:

- it's already being done in Perl?
- cygwin thrives?
- UNIX is already pervasive :-) ?

Or would people really like to claim a pure Python set of UNIX
utilities?


There would be some use for a Python library that implements the
functionality of these tools. Some of it already exists (difflib,
shutil). Some is probably more difficult and less flexible to use from a
lib that from straight python (cut).

Perhaps that could be started either in the Python Cookbook
(http://aspn.activestate.com/ASPN/Python/Cookbook/) or the Python Wiki
(http://wiki.python.org/moin/). Just short explanations of how you would
implement the functionality of various Unix utilities in Python.

Daniel
Jul 19 '05 #4

P: n/a
>>>>> "John" == John Machin <sj******@lexicon.net> writes:

John> For windows users, apart from cygwin, there are a couple of
John> sources of binaries for *x command-line utilities (unxutils,
John> gnuwin32).

unxutils is my personal favourite - cygwin is way too much an
"environment", and gets broken too easily.

I for one would like to see various shell tools implemented in pure
python, if only to be able to import them as a module and use cross
platform tools that have more power than e.g. 'shutil' or 'os'
functions. The API exposed through the module (as opposed to normal
execution from shell) could also be much richer, providing hooks for
calling own stuff for just-in-time error handling, progress
notification etc.

So no, it doesn't seem like bad idea at all. It's also something that
could evolve gradually, and reach a useful stage (i.e. have several
handy tools) quickly.

--
Ville Vainio http://tinyurl.com/2prnb
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.