Tag: Python
Pyramid: *Another* Python web framework? Sort of…
I stumbled upon Pyramid (from the Pylons Project) tonight and wondered why the world needed another Python web framework. However, upon closer inspection, I noticed that Pyramid is essentially a rebranding of repoze.bfg. So it's...
PyObjC and how to parse Preview.app bookmarks with Python
I wrote a Python program that parses Preview.app's bookmarks. The program itself is probably of dubious use, but it illustrates some interesting techniques like using class-dump to figure out how programs written in Objective-C...
Contributed support for the Etsy V2 API to etsy-python
My sister is an avid Etsy seller and asked me to write for her some software that would let her take hundreds of items from an Excel spreadsheet and post them to Etsy. I've written this software (actually, it's a hosted web...
Python ternary operator
Today's Python discovery: Python doesn't have the C style ?: ternary operator (e.g.: cond ? valueIfTrue : valueIfFalse). But as of Python 2.5 it has a ternary operator with its own syntax: value_when_true if condition else...
TiVo HME SDK for Python
Just stumbled up on this (via TiVoBlog who in turn found it via TiVo Lovers) and will have to give it a try sometime: From TiVo HME SDK for Python: An implementation of TiVo’s HME (Home Media Extensions) protocol for...
Hacking OS X’s Python dbhash and bsddb modules to work
By default on my Leopard system, the dbhash and bsddb Python modules cannot be loaded. marc@hyperion:~$ python Python 2.5.1 (r251:54863, Oct 5 2007, 21:08:09) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help",...