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
Release files for pspparse 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pspparse-0.0.0.tar.gz | 23.7 kB | Details |
Release files / pspparse-0.0.0.tar.gz
| Download URL | pspparse-0.0.0.tar.gz |
|---|---|
| Size | 23.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd8c25d18e8780d33643c2fb3d770073cdfa5a857a3ae7b187c071857dae4c59
|
|
BLAKE2b-256 checksum How to use checksums |
6af6927e9a5b5a0a3fedf9b5b15c7140362007b589da312b1c35c9273d39ca87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.9
|