places projects software writing photos

leif > software >

Pysite

Pysite is the tool that I use to generate this web site. It searches through a directory tree and loads files with particular names, building up HTML and PHP files as it goes. I am not sure how useful other people will find this software, but I am putting it here nonetheless. At the very least, it might help someone learn to use Python. (Yay !)

Pysite is the story of one man's journey through hardships and strife to personal peace. It is the epic saga of a battle against ignorance, the pursuit of enlightenment ... in the form of a computer program. And you can use it !

... well, it's not really that epic. But it is one of the projects that got me started learning Python, so it really is part of a battle against ignorance. (But also check out Photoshrink, the other project that got me started with Python. It's cool.)

Pysite is a simple command line tool for generating a web site using a collection of files and folders. Information for the contents of the web site is extracted from simple text files, making it easy to turn an existing collection of text files (papers, journal entries, whatever) into an online web site.

In addition to converting content from plain text into XHTML, Pysite also generates navigation aids based on the contents of a directory tree. Give it a whirl.