Archive for the 'python' Category

ActiveState Code: lauched!

We launched ActiveState Code today, and there was much rejoicing. Yaaaah!

ActiveState Code is a site for sharing code recipes. It is the replacement for the popular ASPN Cookbooks (especially the Python Cookbook, which was a collaboration with O’Reilly and Associates that resulted in two print cookbooks using recipes from the site). The new site […]

Switching from ASPN Cookbooks to ActiveState Code today

We hope to be switching over from the ASPN Cookbooks to the new ActiveState Code site today. Please be patient if the site is down for a short while. We expect the process to take about an hour or two late this afternoon (PST).

I’ve had lots of good feedback from the Python community (Apologies if […]

ActivePython 2.5.2.2 and 2.4.5.14 released

Get it here: http://www.activestate.com/products/activepython/

After a hiatus while I worked hard on the Komodo 4.3 release with the Komodo crew here, I’ve finally had the chance to update ActivePython 2.5 and 2.4 to the latest.

Full details in the ActivePython release notes. These releases update the core to Python 2.5.2 and 2.4.5.

Enjoy.

markdown2.py

I’ve started a python-markdown2 project: this is another Python implementation of Markdown:

Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

No release package yet (setup.py, setuptools, easyinstall, ezsetup? — […]

html5lib rocks (and a patch to preserve attribute order)

I’ve been playing with the Python html5lib package — having come across it reading Sam Ruby’s blog. What a fantastically useful library!

Originally my interest in it was with the discussion surrounding santization, and I expect to use it for that later, but today I’ve been playing with some general parse/filter/serialize code to support some preprocessing […]

Komodo Planet and Yahoo Pipes

I played a bit with Yahoo’s new Pipes web app. At ActiveState we have a number of blogs where many of us write about what interesting things we are working on. A number of those posts are about Komodo. As well, with the recent 4.0 release, Komodo has started popping up on blogs more and […]

thirtyboxes.py 0.5.0: a much nicer interface than 0.1.0

I’ve put up a new thirtyboxes.py binding to the 30boxes web API:

http://trentm.com/projects/thirtyboxes/

For example:

import thirtyboxes tb = thirtyboxes.ThirtyBoxes() tb.finduser(1) {’avatar’: ‘http://static.flickr.com/25/9798863727ec96a24f_o.jpg’, ‘createDate’: datetime.date(2005, 9, 10), ‘firstName’: ‘Nick’, ‘id’: 1, …}

from datetime import date, timedelta today = date.today() tomorrow = today + timedelta(1) tb.events(start=today, end=tomorrow) {’events’: [{’allDayEvent’: False, ‘end’: datetime.datetime(2006, 3, 25, 22, 0), […]

thirtyboxes.py — a Python 30boxes.com API

30boxes.com is a nice web calendaring service, maligned somewhat by Joel Spolsky. I’ve been using Trumba for a while, but have now switched to 30boxes. So far I am pretty happy with the change. The “One Box” (any name for it would have been cheesy) is a great answer to the tedium of adding events […]