Skip to main content

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 _psp to pspparse
  • Change req.write() to print()
  • Add an alias for parsestring, parse_string

License

Apache License, Version 2.0

Metadata

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)

Source distribution for pspparse 0.0.0
File Size Uploaded Provenance Actions
pspparse-0.0.0.tar.gz 23.7 kB Without provenance Details for pspparse-0.0.0.tar.gz

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

Security for pspparse 0.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page