Kangapy: Components

1 PM May 17, 2004

I named my blogging software ‘Kangapy,’ partly in the tradition of CherryPy, partly for it’s association with that great Australian icon, Skippy.

Kangapy is built with:

  • Twisted – for the web framework.
  • pysqlite – a DB-API interface to sqlite. A truly neat little database engine.

* pytextile – text formatting. Version 2 has been released since I started, and I’ll have to try it out.

  • webunit – unit testing framework from Richard Jones.
  • dateutil – used to do date arithmetic with months.

I am grateful to the authors of all this software for generously releasing under such liberal licenses. Thankyou!

Kangapy development is continuing in my commuting hours, and I am certainly learning much about Python and web development. The codebase is up to 6800 lines in 32 files. The sqlite database has 851 items—a mixture of articles, blog entries and comments—and I just collected my first blogspam today.

Kangpy currently embeds all of its HTML in Python code. The next challenge is to move to an HTML templating system, which ought to cut the lines of code count markedly. Nevow is the likely candidate, but I’m not looking forward to the learning curve. It may be time to try Webware.

By alang | # | Comments (3)
(Posted to Python)

Comments

At 11:22, 18 May 2004 Simon Brunning wrote:

Have you considered Cheetah[1]?

[1] http://www.cheetahtemplate.org/

(#)
At 13:23, 18 May 2004 has wrote:

Hey Alan, see you just used the magic T-word... ;)

You may recall I tried flogging you on HTMLTemplate a while back... well, never ashamed to debase myself too much while attempting to lodge feet in doors, so here's the link again:

http://freespace.virgin.net/hamish.sanderson/htmltemplate.html

Much simpler and easier to learn and use than Nevow.Renderer. Doesn't have Nevow's HTML and form generators, but I doubt you'll need those in a blog engine. The execution model's been redesigned (much nicer now) and the API is now stable. FAQ and tutorials should be completed in next couple of weeks for the v1.0 release.

[/pitch] (Eh, who'd be a templating system salesman? :p)

(#)
At 13:29, 18 May 2004 has wrote:

p.s. My HTMLCalendar module has nice stuff for generating blog-style calendar tables: http://freespace.virgin.net/hamish.sanderson/HTMLCalendar-0.1.0.tar.gz

p.p.s. Like the name. :)

(#)

Add Comment




(Not displayed)






(Leave blank line between paragraphs. URLs converted to links. HTML stripped. Indented source code will be formatted with <pre> tags.)




© 2003-2006 Alan Green