By Vasudev Ram
I've released a tool for creating HTML pages or Web sites by writing them in Python - PySiteCreator v0.1.
Description of PySiteCreator:
PySiteCreator is a tool that allows the user to create Web (HTML) sites by writing them entirely in Python. A user creates one or more Python source files in each of which they import a PySiteCreator helper module, and then call helper functions defined in that module, in order to emit HTML elements and associated content. They can then run the PySiteCreator program to process all those Python files; processing each Python file will result in the creation of a corresponding HTML file with the desired HTML elements and content.
A useful feature of PySiteCreator is that it allows you to write almost any Python code you wish, that can fetch data from any source, for outputting to the created HTML files. The data can be fetched from text files, CSV files, DBM files, any type of file in the file system from which you can fetch data by any means, from a relational database using the Python DB API, from any source on the Internet, using sockets, XML-RPC calls, HTTP REST calls, SOAP calls, CORBA, PYRO, RPyC, or any other suitable method.
There are only a few conventions to be followed, such as importing the psc_util module in each Python file your write, and defining a top-level function in each file, that should be named create(), in order to be able to use PySiteCreator. Other than those conventions, there are no other restrictions or requirements about what kind of code you write in the Python files.
Requirements for PySiteCreator:
- The only software requirement for running PySiteCreator is Python
itself. PySiteCreator has been developed and tested using Python
v2.6.1. It may also work with some earlier versions of Python, particularly fairly recent ones like 2.5.x or 2.4.x.
You can get PySiteCreator from here:
Vasudev Ram - Dancing Bison Enterprises