An HTML preprocessor for Python
Project description
PyHP (Python Hypertext Preprocessor)
PyHP is a Python script that can be used to write Python code in HTML, then execute it and render it to a page.
Getting Started
Installation
To use this project, install it using pip:
pip install python-hypertext-preprocessor
Alternatively, clone the repository and install the dependencies:
git clone https://github.com/Benjymack/pyhp.git
cd pyhp
pip install -r requirements.txt
Running the example Flask server
To run a simple Flask server with the pip installed version, use the following command:
python -m pyhp server path/to/directory
If you cloned from GitHub:
python -m src.pyhp server examples
In both cases, the server will be available at http://localhost:5000/
Running individual files
To run an individual example file, use the following command:
python -m pyhp file path/to/file.pyhp
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-hypertext-preprocessor-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f9a12aafbdda1d2750c8f4973aa397a4026587bf5e09ed454d0bbae6db8ad5 |
|
MD5 | aa147e298533279e2e13f410e52b058d |
|
BLAKE2b-256 | a889131decf72545a069a8da9aec6403138542f3f26cd9d1d847de42a558aa46 |
Close
Hashes for python_hypertext_preprocessor-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d84840659876f25fcf6e891da223d8ab9d0fbce70e1e96a38cf3a88425b2ce66 |
|
MD5 | bd33d69ea9162f765cfba9fcb26a52a3 |
|
BLAKE2b-256 | e8210b9ca2368fdb2f4f0b88b7666d657b419eebbe6db375391c27e312ea8ca9 |