Simon Willison’s Weblog

Subscribe
Atom feed for python

1,146 posts tagged “python”

The Python programming language.

2007

Spelling correction using the Python Natural Language Toolkit. Uses porter stemming to implement a search engine ’did you mean’ feature based on the Brown Corpus.

# 31st January 2007, 10:07 pm / browncorpus, porterstemming, python, natural-language, nltk

Pickles Begone. Barry Warsaw’s notes on adding SQLAlchemy persistence to Mailman.

# 23rd January 2007, 1:43 pm / mailman, sqlalchemy, python, barry-warsaw

CSS library for Python (via) “A Python package to parse and build CSS Cascading Style Sheets. Partly implements the DOM Level 2 Style Stylesheets and CSS interfaces.”

# 15th January 2007, 2:32 am / css, python

Apache Solr 1.1. Solr is the search Web Service built on top of Lucene. The latest release introduces JSON, Python and Ruby response formats in addition to XML.

# 13th January 2007, 1:16 am / json, python, ruby, xml, webservice, search, lucene, solr

What Python looks like naked. Michal Wallace has been doing some really interesting work writing purely functional code in Python. His latest experiment replaces all of the basic Python statements with equivalent functions.

# 10th January 2007, 11:22 pm / functional, michal-wallace, python

mimeparse.py (via) Parsing mime-types is harder than you might think.

# 8th January 2007, 6:43 pm / mimetypes, python, james-bennett

supervisor2. I haven’t tried this yet, but looks like a decent process monitoring tool. It even has an XML-RPC interface.

# 8th January 2007, 1:19 am / xml-rpc, python, supervisor

Why doesn’t Python have more data format readers in the stdlib? I for one would love to see simplejson included in the standard library, with or without a C implementation.

# 8th January 2007, 1:03 am / python, json, stdlib

Writing a Jokosher extension. I like the way API calls are made through an API object passed to the extension’s startup function.

# 7th January 2007, 10:25 pm / python, api, jokosher, stuart-langridge

2006

killableprocess.py. “I have created a python module which can launch a subprocess, wait for the process with a timeout, and kill that process and all of its sub-subprocesses correctly, on Windows, Mac, and Linux.”

# 23rd December 2006, 12:23 am / python, processes

html5lib (via) A python library for working with HTML5 documents.

# 22nd December 2006, 11:58 pm / python, html5, whatwg

The Daily Python-URL. Python’s number one news source, now powered by Django.

# 22nd December 2006, 11:39 pm / python, django, effbot

__builtins__ usage. Avoid using __builtins__ if you want your code to be compatible with IronPython.

# 18th December 2006, 3:22 pm / python, ironpython

Meta-classes Made Easy. Fuzzyman introduces a metaclass factory for applying a decorator to every method of a class.

# 17th December 2006, 12:42 am / python, metaclasses, decorators, fuzzyman

SubWiki (via) A wiki that uses Subversion for its data repository, implemented as a Python CGI.

# 16th December 2006, 7:19 pm / python, subversion, wiki

Dependency injection is the enterprisey name for trampling over namespaces with reckless abandon.

Ted Dziuba

# 16th December 2006, 1:05 am / python, testing

[Python-3000] Refactoring tool available. Guido’s initial work on a tool for converting Python 2.x code to Python 3K.

# 15th December 2006, 2:19 pm / python, guido-van-rossum

Statement Functions. Smart workaround for the lack of multi-line lambdas in Python.

# 12th December 2006, 7:08 pm / python, lambda

100% Python SCGI implementation. SCGI is like FastCGI but simpler.

# 12th December 2006, 1:37 pm / scgi, python

python-cluster. Fantastic interface design—pass a list and a function and you’re done.

# 7th December 2006, 5:19 pm / python, algorithm

Incompatible SQLite in OS X and Python. I’ve hit this problem; James has the solution.

# 28th November 2006, 5:40 pm / sqlite, osx, python

Fun with ctypes

This probably only works on Intel-based OS X machines:

[... 86 words]

Introducing WSGI: Python’s Secret Web Weapon. Every Python web developer should understand WSGI.

# 28th September 2006, 2:24 pm / python, wsgi

What I’m excited about, post-conference edition

Wow, I’ve had a really busy month. I’ve attended (and spoken at) BarCamp London, Media in Transition, d.Construct, RailsConf Europe, Euro Foo and EuroOSCON. All were excellent, and each one nicely complemented the others. I’m exhausted. I think my brain is full.

[... 377 words]

The Screening Room #8: IronPython. Screamingly cool demo, with commentary from Jim Hugunin and Jon Udell.

# 1st September 2006, 12:51 am / jon-udell, ironpython, python

The Screening Room #8: IronPython. Screamingly cool demo, with commentary from Jim Hugunin and Jon Udell.

# 1st September 2006, 12:51 am / jon-udell, ironpython, python

YDN Python Developer Center. Launched today: tips and tutorials on accessing Yahoo! Web services from Python.

# 8th August 2006, 8:57 pm / yahoo, ydn, python

The YDN Python Developer Center

I recently had the opportunity to put together the Python Developer Center for the Yahoo! Developer Network. YDN is one of my favourite parts of Yahoo! so I jumped at the chance, and the resulting mini-site is now online (YDN blog post here).

[... 235 words]

WPHP. Run PHP under your Python WSGI app. Not nearly as crazy as it sounds.

# 27th July 2006, 11:01 pm / wsgi, python, php