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.4.tar.gz
(3.4 kB
view hashes)
Built Distribution
pythoncgi-0.0.4-py3-none-any.whl
(15.7 kB
view hashes)
Close
Hashes for pythoncgi-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd759d74138f58c14f8b449ebaa89e0e600fb0bd5c226eb5014521f23f505ec9 |
|
MD5 | a79ec7ca818e947b80936be7b46676f5 |
|
BLAKE2b-256 | c4f04e932c9a116f3e1a5c47b9e41f113560f6cb092cda67541511d09ffa28fc |