Extremely simple Python CGI framework for Apache 2.
Project description
Python CGI
Extremely simple Python CGI framework for Apache 2.
Hierarchy
pythoncgi
Example
python
from pythoncgi import _SERVER, _GET, _POST, _SESSION, _COOKIE, _HEADERS, set_status, set_header, execute, print
@execute
def main():
set_status(403)
set_header("Cache-Control", "max-age=0, must-revalidate")
print("_SERVER:<br>")
print(_SERVER)
print("")
print("_GET:<br>")
print(_GET)
print("")
print("_POST:<br>")
print(_POST)
print("")
print("_SESSION:<br>")
print(_SESSION)
print("")
print("_COOKIE:<br>")
print(_COOKIE)
print("")
print("_HEADERS:<br>")
print(_HEADERS)
print("")
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
pythoncgi-0.0.8.tar.gz
(3.6 kB
view hashes)
Built Distribution
pythoncgi-0.0.8-py3-none-any.whl
(15.9 kB
view hashes)
Close
Hashes for pythoncgi-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58268067b9cb3e8df74b62b30301df84cc3795e602e0a6cec6faaca5b77bd9a0 |
|
MD5 | df196a76e394e31f198988925dba035b |
|
BLAKE2b-256 | 4e5ddf6964c37ba3d061b97074b29ef481bb5a61e1c10f7e696e60e2ee0120de |