Configuring an app to use OAuth properly requires a bit of legwork. My goal with this post is to save people some time by showing the complete step-by-step process of building a Python script that can tweet from the command line using OAuth. I've intentionally skipped over the details of how OAuth works and what all the different authentication tokens mean. This post is just about getting things done.
pyquery allows you to make jquery queries on xml documents. The API is as much as possible the similar to jquery. pyquery uses lxml for fast xml and html manipulation.
When programming Python, I tend to visit the most current reference documentation quite often.
To get faster and more convenient access to the documentation, inspired by Mark Hammond's sidebar, I wrote an updated sidebar for the Mozilla family of web browser.
Since learning JavaScript over a year ago, it's become one of my favorite dynamic programming languages alongside Python. And as I've mentioned before, I think the two languages actually complement each other pretty well.
A few weeks ago I wrote about Ubiquity Feed Plugins, which are basically just a way of separating the user interface of subscribing to a new feature from the implementation of the feature itself.
As I've written about before, one of the things I've missed about the Mozilla development environment is its support for the Python programming language. Aside from being humane and having a great community, it has functionality that could complement the Mozilla platform quite nicely. So we've whipped up a quick proof-of-concept Python Feed Plugin for Ubiquity to explore this possibility.
Mutagen is a Python module to handle audio metadata. It supports ASF, FLAC, M4A, Monkey's Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files. All versions of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg streams on an individual packet/page level.
Many people, when first finding out about Google Web Toolkit, wonder "why can't I use Python instead of Java?". pyjamas is designed to make that possible.
What is pyjamas?
pyjamas is a stand-alone python to javascript compiler, an AJAX framework / library and a Widget set API.
Why should I use it?