I used to use the cgi module to implement simple python-based cgi
scripts for mere http forms. But it is getting deprecated https://peps.python.org/pep-0594/#cgi
and concerning form support:
FieldStorage/MiniFieldStorage has no direct replacement,
but can typically be replaced by using multipart
(https://pypi.org/project/multipart/) (for POST and PUT requests) or
urllib.parse.parse_qsl (for GET and HEAD requests)
But that multipart project doesn't seem to be packaged in Debian? (python-multipart seems to be something else, that doesn't seem to
actually provide form content?)
Do we actually have something in Debian python to replace cgi's
FieldStorage in a simple way?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 483 |
Nodes: | 16 (2 / 14) |
Uptime: | 151:22:11 |
Calls: | 9,592 |
Calls today: | 6 |
Files: | 13,676 |
Messages: | 6,148,493 |
Posted today: | 3 |