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, main
@execute
def get():
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("")
if __name__ == '__main__':
main()
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.9.tar.gz
(3.6 kB
view hashes)
Built Distribution
pythoncgi-0.0.9-py3-none-any.whl
(15.9 kB
view hashes)
Close
Hashes for pythoncgi-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b1378b0d5e1013e71002a95d5b027b3b60eec33c6f98f930460f07067ce378 |
|
MD5 | 086aec5d4b311536e4278d1ceb28953d |
|
BLAKE2b-256 | 2923f9744665b26d23458c4818a0f79a5c99f1b32c2bf89843d760558a18dbc7 |