erikrose
What makes it extra challenging is that tweets are short, so you have wide error bars on the sorts of math you'd depend on in larger corpuses. I think you'd have to actually bang a parser against it and try to understand what the tweeter is saying.
In the meantime, if you want to play with filters, feel free to try this super-alpha toy I threw together the other day: https://www.votizen.com/twitter-fight/. It works on a rolling 24-hour window of Romney- or Obama-mentioning tweets. Buggy as heck, but fun to play with!
As for hanging everything off the Terminal instance, the motivation is that there's significant state on it that you might want to customize. Things like type (ANSI, vt100, etc.) and whether to suppress or force styling affect the result of formatting methods. See http://packages.python.org/blessings/#blessings.Terminal.__i.... I've several times benefitted by making a formatting-suppressed Terminal and passing it around.
I fully endorse you saying...
term = Terminal()
...at the top level of some module and referencing it there. Then you get the init-on-import behavior you want, but it's not forced on anybody who'd rather not have it.Cheers!
A sequel to itertools: http://pypi.python.org/pypi/more-itertools/ (The upcoming 2.1 will include all the routines from the "recipes" section of the docs as well.)
A front end for the popular Nose test runner that shows a progress bar and tracebacks during tests (via blessings, of course): http://pypi.python.org/pypi/nose-progressive/
A shim for using Nose with Django (and making your tests go 4x as fast): http://pypi.python.org/pypi/django-nose/
While on the subject of Django, here's a little shim to let you write lightweight management subcommands (and generate commands at runtime, if you want to go crazy): http://pypi.python.org/pypi/django-subcommander/
I'd love to hear what kind of projects other folks are doing with it. Any neat hacks? One of my fun little demos is this terminal-dwelling Game of Life: http://pypi.python.org/pypi/conway/. I was thinking of adding an interactive mode so you can draw your own patterns and set them free; it would be an excuse to add key trapping to Blessings.
Parsing Horrible Things with Python [video]
(do something to these (and these)) vs. do(something, to, these, and(these))
In any case, you really do things with whitespace, so none of it matters.