pyclbr can scan Python source to find classes and stand-alone functions. The information about class, method, and function names and line numbers is gathered using tokenize without importing the code.
robotparser implements a parser for the robots.txt file format, including a simple function for checking if a given user agent can access a resource. It is intended for use in well-behaved spiders or other crawler applications that need to either be throttled or otherwise restricted.
The json module provides an API similar to pickle for converting in-memory Python objects to a serialized representation known as "JavaScript Object Notation".
Arlen Specter's party switch was big news, but a quick visualization technique shows it was a long time coming. What other surprises might lurk in the Senate Social graph?
As with threads, a common use pattern for multiple processes is to divide a job up among several workers to run in parallel. A simple way to do that with multiprocessing is to use Queues to pass messages back and forth. Any pickle-able object can pass through a multiprocessing Queue. This is part 2 of coverage of the multiprocessing module. If you missed part one, you may want to start there.
A look at multiprocessing basics. The multiprocessing module includes a relatively simple API for dividing work up between multiple processes based on the API for the threading module.
Business research usually starts with a list -- brands, competitors, people, products, whatever. This post describes a quick Python script that uses the Google Search API to automate the routine parts of the task, giving you more time to analyze and understand the results.
This was my second Pycon - since the last two have been in Chicago and on a weekend it has been an easy drive for me to attend coming from Michigan. Since last year was my first time at Pycon...
I just returned from PyCon in Chicago. During the conference open spaces there was an open space discussing potential changes for WSGI. The three basic ideas were: Return a tuple with the status, headers, and response instead using the start...
The asyncore module includes tools for working with I/O objects such as sockets so they can be managed asynchronously (instead of, for example, using threads).
I've been working on the Python Module of the Week series since March of 2007. During the course of the project, my article style and tool chain have both evolved. I now have a fairly smooth production process in place,...
Attention, users of Blogging Software, like Word Press, there is now a serious Python competitor, Zine. The lead developer is Armin Ronacher, a wunderkind Python developer it seems, he is still in college, yet has written an amazing slew of...
The Python core developers released Python 3.0 in December 2008, following closely behind Python 2.6. Python creator Guido van Rossum generously agreed to discuss the present and future of the popular programming language, as well as the history of the Python 3.0 revision.
Real World Haskell has revealed a huge gap in my experience with functional languages as well as presented me with an opportunity to make major strides towards growing as a programmer.
Introducing PyXML
In the second Python and XML column, Uche Ogbuji introduces PyXML, the add-on XML library which builds upon Python's core XML support. (Sep 25, 2002)
You need to fork a daemon process on a Unix
or Unix-like system, which, in turn, requires a certain precise
sequence of system calls.
Loghetti: an apache log file filter in Python As announced earlier on my personal blog, I launched an open source project on Google Code called "loghetti". It's written in Python, and is a foundation for what I hope will become a very flexible tool to help admins (myself… read moreBrian K. Jones
Scale(1), Scale(2), ... Scale(n) Ted Neward attempted to pull apart some of the silliness in the debate over scalability with Can Dynamic Languages Scale?. In particular, one of the most important insights is: There's an implicit problem with using the word "scale" here, in… read morechromatic
TIOBE declares Python as programming language of 2007 I really don't know what this means, but here is the page that contains the headline. Further down in the page are a few details regarding the announcement. Here are those details: Python has been declared as programming language of… read moreJeremy Jones
setuptools tip - script creation My last two blog posts on egg-related topics had a title prefix of "easy_install tip". This post is related, but since it's handled with setuptools rather than easy_install, I'm prefixing it accordingly. Have you ever wondered how various packages you… read moreJeremy Jones
TMTOWTDI -> The Right Way to Do It J. David Blackstone has a
pointed journal post entitled The Right Way To Do It
which praises Perl's "There's More Than One Way To Do It" philosophy: TMTOWTDI is anarchy. It scares people who want to keep order by force. Allowing people… read morechromatic
TPT (Tiny Python Tip): Virtualenv Google Group Ian Bicking just created a Google Group for Virtualenv here, and a bug tracker at launchpad for virtualenv here. I also have slides from a talk at Pyatl here Links:
noahgift.com
My O'Reilly Feed
Virtualenv Google Group
Virtualenv Launchpad Bug Tracker
Virtualenv Package Information
Virtualenv Slides Noah Gift