Posts

Showing posts with the label pyhp

PyHP - Python Hypertext Preprocessor

Couple of months ago, I was trying to embed Python code into HTML. After given the problem to solve, I was planning for a solution and looking into Python libraries. Suddenly I thought, why not spend some time in google to see if there already exists something similar. Actually I was looking for something very simple and I got one!!! It's called PyHP - Python Hypertext Preprocessor. Thank God, I didn't have to reinvent the wheel, as it was almost the similar thing what I was thinking to build. It's a small, fast, hypertext preprocessor in my favorite language - Python. And of course it is open source. The only thing I needed to change in the code is, I made the code to print output in a html file rather than in console. It was just a simple tweak. Download and play with PyHP - Python Hypertext Preprocessor . You can use it as a standalone program, or use it with Apache's mod-python. Enjoy Programming, Enjoy Python!