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.

Credit

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

Setup

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 pyhp.app
    

    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

0.1

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

pyhp_hypertext_preprocessor-0.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page