Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #15981

Simple module for python-based cgi?

From Samuel Thibault <sthibault@debian.org>
Newsgroups linux.debian.maint.python
Subject Simple module for python-based cgi?
Date 2024-06-29 22:10 +0200
Message-ID <IUMhM-6vXu-1@gated-at.bofh.it> (permalink)
Organization I am not organized

Show all headers | View raw


Hello,

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?

Samuel

Back to linux.debian.maint.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Simple module for python-based cgi? Samuel Thibault <sthibault@debian.org> - 2024-06-29 22:10 +0200
  Re: Simple module for python-based cgi? Fay Stegerman <flx@obfusk.net> - 2024-06-29 22:30 +0200
  Re: Simple module for python-based cgi? eevelweezel <eevel.weezel@gmail.com> - 2024-06-29 23:50 +0200

csiph-web