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.
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:
-
Fork this repository & clone your fork to your local machine.
-
Setup a virtual environment in your clone:
python3 -m venv venv source venv/bin/activate
-
Install the
pyhp
packagepip install -e .
-
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
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
File details
Details for the file pyhp-hypertext-preprocessor-0.1.tar.gz
.
File metadata
- Download URL: pyhp-hypertext-preprocessor-0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2c11f87dc3f7ed80fb870580091a3e6bb82a7131fcaa6e727a25edc8fdfddcd |
|
MD5 | bd7ef090e1da88fa149e70b6454d2d27 |
|
BLAKE2b-256 | f92b9587bbca3269709cc2b643f46b0f46a92dc28d246b256f8eed634f70fa7d |
File details
Details for the file pyhp_hypertext_preprocessor-0.1-py3-none-any.whl
.
File metadata
- Download URL: pyhp_hypertext_preprocessor-0.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3332318523e843e5281056e013f2e38cf3a102b379c630d53690024227e5dc2a |
|
MD5 | 4dcabef529fc6eba8be36efc5576b51f |
|
BLAKE2b-256 | 24acd3c615c007b5c85d40cf650cd3ab5196e4bd0eeec770a0065bd38b436c58 |