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.7.tar.gz
(3.6 kB
view hashes)
Built Distribution
pythoncgi-0.0.7-py3-none-any.whl
(15.9 kB
view hashes)
Close
Hashes for pythoncgi-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87e21b96949eda893656d7a5014340d55c107f9eb31754a96a6fa720a04f1d2f |
|
MD5 | c92c4b09c39bd529addce9ecfb97eec2 |
|
BLAKE2b-256 | 25ddc6d01398192d74b8e5fcae6ef6e17a9cab097529d7ec9719f3b70d31874e |