Skip to main content

Python Hyptertext Preprocessor - like PHP, but for Python

Project description

(Py)thon (H)ypertext (P)reprocessor

I want PHP style 'quick' template execution, but with Python instead.

PyHP sample code

Warning: Currently very insecure. Do not use.


I stole a lot of code from stackoverflow. Thanks to @aarondewindt for helping make this a reality.


You can set it up for local development with:

  1. Fork this repository & clone your fork to your local machine.

  2. Setup a virtual environment in your clone:

    python3 -m venv venv
    source venv/bin/activate
  3. Install the pyhp package

    pip install -e . 
  4. Run pyhp!

    python3 -m

    This should serve the contents of the current directory. You can try going to http://localhost:5000/hi.pyhp to test it out.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhp-hypertext-preprocessor-0.1.tar.gz (4.9 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page