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


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

Re: Simple module for python-based cgi?

Path csiph.com!news.mixmin.net!news2.arglkargh.de!news.in-chemnitz.de!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Fay Stegerman <flx@obfusk.net>
Newsgroups linux.debian.maint.python
Subject Re: Simple module for python-based cgi?
Date Sat, 29 Jun 2024 22:30:02 +0200
Message-ID <IUMRQ-6wrY-21@gated-at.bofh.it> (permalink)
References <IUMhM-6vXu-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Sat Jun 29 20:29:07 2024
Old-Return-Path <flx@obfusk.net>
X-Amavis-Spam-Status No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FOURLA=0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
X-Greylist delayed 522 seconds by postgrey-1.36 at bendel; Sat, 29 Jun 2024 20:28:52 UTC
Authentication-Results ext-mx-out013.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com
Mail-Followup-To Fay Stegerman <flx@obfusk.net>, debian-python@lists.debian.org, Samuel Thibault <sthibault@debian.org>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/22019
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/ZoBsclwhD1QuMF_C@nihonium
Approved robomod@news.nic.it
Lines 24
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Samuel Thibault <sthibault@debian.org>
X-Original-Date Sat, 29 Jun 2024 22:20:02 +0200
X-Original-Message-ID <ZoBsclwhD1QuMF_C@nihonium>
X-Original-References <20240629194644.hap3h3kayhruqowp@begin>
Xref csiph.com linux.debian.maint.python:15983

Show key headers only | View raw


* Samuel Thibault <sthibault@debian.org> [2024-06-29 21:46]:
> 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?

I haven't used it myself so I'm not sure it would fit your use case, and it
might not exactly count as "simple", but Debian does have
python3-requests-toolbelt which seems to provide a
requests_toolbelt.multipart.decoder.MultipartDecoder.

- Fay

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next 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