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.6.tar.gz
(3.6 kB
view hashes)
Built Distribution
pythoncgi-0.0.6-py3-none-any.whl
(15.9 kB
view hashes)
Close
Hashes for pythoncgi-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa23e63ab869fb0dd4a92c32e8dbd0e972c831f9320a04dbfffd1240449634a1 |
|
MD5 | dee1e60b223985b0e7efc4f1ea789c4b |
|
BLAKE2b-256 | ba9e5cf373e4712816884e9bbedf05e258c8a5f7c378ca7ca44a65a2bcc82287 |