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 details)

Uploaded Source

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

Hashes for pyhp-hypertext-preprocessor-0.1.tar.gz
Algorithm Hash digest
SHA256 a2c11f87dc3f7ed80fb870580091a3e6bb82a7131fcaa6e727a25edc8fdfddcd
MD5 bd7ef090e1da88fa149e70b6454d2d27
BLAKE2b-256 f92b9587bbca3269709cc2b643f46b0f46a92dc28d246b256f8eed634f70fa7d

See more details on using hashes here.

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

Hashes for pyhp_hypertext_preprocessor-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3332318523e843e5281056e013f2e38cf3a102b379c630d53690024227e5dc2a
MD5 4dcabef529fc6eba8be36efc5576b51f
BLAKE2b-256 24acd3c615c007b5c85d40cf650cd3ab5196e4bd0eeec770a0065bd38b436c58

See more details on using hashes here.

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