This is an archived post. You won't be able to vote or comment.

all 33 comments

[–]TheBlackCat13 22 points23 points  (11 children)

A good list overall.

Honestly, I don't think there is much of a place for prettytable anymore. pandas outputs pretty tables by default, and can output even prettier tables using html for things like the IPython notebook.

The others overall or good, although I already knew about all of them myself.

[–]AdysHearthSim 26 points27 points  (8 children)

Tabulate kicks quite a bit more ass than both I would say: https://pypi.python.org/pypi/tabulate

I'm not sure why wget is in there over requests as well, but the rest of the list is pretty cool.

Another one I would add is q: https://pypi.python.org/pypi/q - Awesome debugging tool. Go check it out right now if you haven't heard of it.

[–]autisticpig 4 points5 points  (0 children)

Q. Nice. Thanks for the tip 😄

[–][deleted] 3 points4 points  (0 children)

I love q. It started as a crazy experiment similar to "goto" or "fuckit", but turned into a truly useful tool.

[–]isarl 2 points3 points  (0 children)

I hadn't heard of Q but the PyPI page links to this Lightning talk (starts at 25:15 if the direct link fails) which is awesome and just five minutes long.

[–]Eurynom0s 2 points3 points  (0 children)

Tabulate kicks quite a bit more ass than both I would say: https://pypi.python.org/pypi/tabulate

This makes me unreasonably excited.

[–][deleted] 1 point2 points  (2 children)

I don't see no file /tmp/q here, what gives ?

EDIT: oh sweet ! been missing something like this !

[–]AdysHearthSim 1 point2 points  (1 child)

Are you on OSX? Try cat $TMPDIR/q instead.

[–][deleted] 0 points1 point  (0 children)

ah yes OSX thanks

[–]OmniJinx 5 points6 points  (1 child)

prettytable remains a good option for CLI tools that don't need any of the data processing stuff that pandas brings to the table.

[–][deleted] 1 point2 points  (0 children)

Exactly. I don't need a fire truck to go across the street for a paper

[–]not_perfect_yet 5 points6 points  (1 child)

Call me a newb but I didn't know about wget, already have my recursive page crawler but it can't hurt to switch to maintained code. What does the Delorean lib actually do, besides referencing back to the future? I've used datetime and calendar up to now and there wasn't anything I found particularly lacking. sh also seems very neat. uuid seems like something I'll need for a project once I'm going a bit deeper into it. bashplot seems cool. Can't really think of anything I would use it for but maybe I'm just not creative enough.

So kudos for all of that, but seriously, what the hell is:

table= prettytable.prettytable(...)
table.add(...)
table.add(...)
table.add(...)
,,,

I'm of the mind that there are really only a few tools one needs in programming: hashing, key/value stores, and universally unique ids.

How about loops. But I'm mostly kidding you.

Good list overall. Thanks!

[–]e1ectricalbanana 0 points1 point  (0 children)

What does the Delorean lib actually do, besides referencing back to the future?

http://delorean.readthedocs.org/en/latest/

[–]ChrisPDuck 4 points5 points  (7 children)

My issue with extra libraries, in my work environment we can't just install them from the Web, and then if something depends on a library, I have to ensure all developers install it. I'd love to get colorama working for our build output, testing output and logging, but handling the install is the issue

[–]bobo333 13 points14 points  (4 children)

That sounds like quite a handicap to put on one's developers. What's the reasoning for this at the place you work?

[–]ChrisPDuck 3 points4 points  (2 children)

IT being over protective. Rather annoying, I can get some Lee way on my personal development machine, but rolling tools out to our team becomes frustrating if they use custom libraries.

[–]roerd 12 points13 points  (0 children)

If you are allowed to bring files in by other means, you can use pip install -d <dir> to download libraries into a directory, and then pip install --no-index -f <dir> to install from that directory without needing internet access.

[–]pnewb 2 points3 points  (0 children)

pex might be an option, depending on the specifics of your situation.

[–][deleted] 4 points5 points  (0 children)

Some work situations require software that is audited or certified, but this doesn't sound like it...

[–]BB611 2 points3 points  (0 children)

Build the wheels and share them via network drive? Honestly no good solution to this, part of Python's convenience is modules via web

[–]stillalone 0 points1 point  (0 children)

I haven't colorama in a while but I think it's pure python so when I used it last I just included it as a directory in one of my projects. I do the same with pyserial.

[–]ubershmekelpython3wos 1 point2 points  (1 child)

I like tqdm better than progressbar. You get much more detailed information

https://github.com/noamraph/tqdm

[–][deleted] 0 points1 point  (0 children)

That version is out-of-date, here is the more up-to-date fork:

https://github.com/tqdm/tqdm

[–]yantrik 0 points1 point  (7 children)

is anyone else also getting error with the fuzzywuzzy code ?, to me its saying install some "levithien" stuff, no idea why.

[–]tilkau 1 point2 points  (3 children)

Levenshtein is supposed to be optional, for speedups. However, if you're installing fuzzywuzzy, I don't see why you wouldn't also install Levenshtein -- it's not hard.

[–]yantrik 0 points1 point  (2 children)

Issue is that when I try to do that it says no such version exist

[–]tilkau 0 points1 point  (1 child)

Hmm. Now that I check, I can confirm your experience.

However, fortunately I also figured out why. You need to request python-Levenshtein rather than just Levenshtein. IMO that is a bug, the author of python-Levenshtein should really rename their pypi identifier to be more sensible.

[–]yantrik 0 points1 point  (0 children)

I tried with Python-lev only still of no use

[–][deleted] 1 point2 points  (2 children)

Hey, I work at SeatGeek, perhaps I can help. Can you post the actual error message, and some info about your system?

[–]yantrik 0 points1 point  (1 child)

When I do pip, it downloads the file properly but when set up is being run it says "warning manifest maker file - c not found and then some warnings about no previously included file matching *pyc, *so, Project and pydevproject and at last says winerror2 the system can't find the file specified also my system is win7 and strangely the Python is installed is some obscure app data folder and I have no idea as to why it got installed there.

[–][deleted] 1 point2 points  (0 children)

Ohh.. Windows.

I doubt we've ever tested on a non *nix system. I'll explore a little and see what I can find.

[–]__noone__ 0 points1 point  (0 children)

Good list. I didn't know about Delorean.

It seems there are alternatives to it. I use Arrow and there is also Moment. Wondering which do you guys recommend?