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


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

Simple module for python-based cgi?

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Samuel Thibault <sthibault@debian.org>
Newsgroups linux.debian.maint.python
Subject Simple module for python-based cgi?
Date Sat, 29 Jun 2024 22:10:02 +0200
Message-ID <IUMhM-6vXu-1@gated-at.bofh.it> (permalink)
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sat Jun 29 19:47:03 2024
Old-Return-Path <sthibault@debian.org>
X-Amavis-Spam-Status No, score=-109.62 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.211, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no
Mail-Followup-To Samuel Thibault <sthibault@debian.org>, debian-python@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
Organization I am not organized
User-Agent NeoMutt/20170609 (1.8.3)
X-Debian-User sthibault
X-Mailing-List <debian-python@lists.debian.org> archive/latest/22017
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20240629194644.hap3h3kayhruqowp@begin
Approved robomod@news.nic.it
Lines 20
Sender robomod@news.nic.it
X-Original-Date Sat, 29 Jun 2024 21:46:44 +0200
X-Original-Message-ID <20240629194644.hap3h3kayhruqowp@begin>
Xref csiph.com linux.debian.maint.python:15981

Show key headers only | 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