pspparse is a Python module containing a PSP parser extracted from the mod_python project.
Project description
pspparse
pspparse is a Python module containing a PSP parser extracted from the mod_python project.
It is not meant for console games, but Python Server Pages. I have an idea to use it on httpout.
Build the module
$ make
Usage
from pspparse import parse_string
source = parse_string(b'Hello, <%=__name__%>!')
The result is the following source code.
"print('''Hello, ''', end=''); print(__name__, end=''); print('''!''', end='')"
Changes that have been made from the original
- Rename module from
_psptopspparse - Change
req.write()toprint() - Add an alias for
parsestring,parse_string
License
Apache License, Version 2.0
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
pspparse-0.0.0.tar.gz
(23.7 kB
view details)
File details
Details for the file pspparse-0.0.0.tar.gz.
File metadata
- Download URL: pspparse-0.0.0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd8c25d18e8780d33643c2fb3d770073cdfa5a857a3ae7b187c071857dae4c59
|
|
| MD5 |
0289534a47ca91a0661bc0feb6dc1211
|
|
| BLAKE2b-256 |
6af6927e9a5b5a0a3fedf9b5b15c7140362007b589da312b1c35c9273d39ca87
|