Ben Finney provided a patch to CommandLineApp convert the names of the module, method, etc. to be PEP8-compliant. Thanks, Ben!
These changes are obviously backwards incompatible.
Updated: I botched the packaging for 3.0. Release 3.0.1 includes the test script as well.
4 comments:
I read the article in the Python Magazine and wanted to give this tool a try, but...it is not working for me.
Downloaded
Installed running the provided setup file "setup install".
Got CommandLineApp-3.0.1-py2.5.egg-info file in site-packages
Got commandlineapp.py, and
got commandlineapp.pyc, too.
"csvcat.py --help" does not display everything shown in the Listing 1 of maagazine article; it just prints some generic help regarding verbosity, help, and debugging options and nothing about the options for which callback defs were wrtten for.
By the way, in order to make csvcat.py work this much in the first place, I had to make the module listed in the import statement all lower case, since the camel case complained about not existing at all.
Any ideas of what might be happening?
The Python Magazine article was written against a 2.x version of the class. Version 3.0 made backwards-incompatible changes (like the naming problem you experienced). I have not updated csvcat to work with the new CommandLineApp, so you could try installing a 2.x version (2.6 was the highest release number in that series).
First of all, thanks for such a quick response.
O.k., so, installing 2.6 did the trick; csvcat and my own test file both work.
Now, how do I go about learning how to use version 3? where is the documentation/samples for it? I looked in pypi and followed links in your website but nothing turned out.
Thanks again.
For now the only documentation is in the source itself via docstrings. Providing better instructions is on my list of things to do.
Post a Comment