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.5.tar.gz
(3.6 kB
view hashes)
Built Distribution
pythoncgi-0.0.5-py3-none-any.whl
(15.9 kB
view hashes)
Close
Hashes for pythoncgi-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e39382f66ebad4bde9a0bfde4fbb67d81513272f099fc77eb8f6d2186cd76ea |
|
MD5 | cd86b944a5ed88cea9f1ea73b223efb4 |
|
BLAKE2b-256 | d88e08716684c2421786daffd636a8cfed69b37f77a94679b64641fd492f2f10 |