Deutsch   English   Français   Italiano  
<mailman.91.1737391273.2912.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail
From: Lele Gaifax <lele@metapensiero.it>
Newsgroups: comp.lang.python
Subject: Re: Tools to help with text mode (i.e. non-GUI) input
Date: Sat, 18 Jan 2025 09:08:04 +0100
Lines: 17
Message-ID: <mailman.91.1737391273.2912.python-list@python.org>
References: <87ldv8zgrf.fsf@metapensiero.it>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de zKeHQIXmn9QFPDRpLqDZ8w3/eFpydmIyiML1sFf247gg==
Cancel-Lock: sha1:AVY02GMZ/mbx5Lxy3GZLk62/0wM= sha256:KExrmfOi6Pg4hpfOM8t9jVRcP3y6rFdZcSMsqTflBxE=
Return-Path: <lele@metapensiero.it>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="1024-bit key; unprotected key"
 header.d=metapensiero.it header.i=@metapensiero.it
 header.b=E1EhJkbh; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.075
X-Spam-Evidence: '*H*': 0.86; '*S*': 0.01; 'subject:GUI': 0.09;
 'terminal': 0.09; 'writes:': 0.09; 'url-ip:140/8': 0.14; 'bash':
 0.16; 'ciao,': 0.16; 'emanuele': 0.16; 'input,': 0.16;
 'url:project': 0.16; 'url:pypi': 0.16; 'python': 0.16; 'url-
 ip:140.82.121.4/32': 0.17; 'url-ip:140.82.121/24': 0.17; 'url-
 ip:140.82/16': 0.17; 'to:addr:python-list': 0.20; 'i.e.': 0.22;
 'command': 0.23; 'url:github': 0.23; "i'd": 0.24; 'seems': 0.26;
 'chris': 0.28; 'suggest': 0.28; 'packages': 0.31; 'python-list':
 0.32; 'window': 0.32; "i'm": 0.33; 'package': 0.34; 'running':
 0.35; 'runs': 0.35; 'close': 0.35; 'url-ip:151.101.0.223/32':
 0.38; 'url-ip:151.101.128.223/32': 0.38; 'url-
 ip:151.101.192.223/32': 0.38; 'url-ip:151.101.64.223/32': 0.38;
 'use': 0.39; 'text': 0.39; 'prompt': 0.39; 'try': 0.40; 'mode':
 0.62; 'received:it': 0.62; 'subject:. ': 0.73;
 'header:Received:2': 0.84; 'drive.': 0.84; 'quando': 0.84;
 'subject:Tools': 0.84; 'subject:input': 0.84; 'subject:text':
 0.84; 'chi': 0.91; 'green': 0.96; 'received:178': 0.96
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metapensiero.it;
 s=mail; t=1737187684;
 bh=jFGnSdrItwIFCNuYRMz/+I0WtLyCzOemrictAo6ZBuU=;
 h=From:To:Subject:Date;
 b=E1EhJkbhK3gJYklBI74MhMRZcrS7OREUotQ+HwJRlL6HfFF4+23WwgIs8lEz9dz5t
 5U10QUnjCo15YgAYL/cuzqozKvmANgvABQ2Kf+p8oyq/1h0ygfMSGI3gtp/dNF2Hvu
 eHHcX7n494MIdDuIesgrZ7kPRaegTrCSBLvBWdk0=
X-Mailman-Approved-At: Mon, 20 Jan 2025 11:41:11 -0500
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <87ldv8zgrf.fsf@metapensiero.it>
Bytes: 3913

Chris Green via Python-list <python-list@python.org> writes:

> I'm looking for Python packages that can help with text mode input,
> i.e. for use with non-GUI programs that one runs from the command
> prompt in a terminal window running a bash shell or some such.

I'd suggest giving a try to https://pypi.org/project/questionary/,
seems very close to what you are looking for and very simple to drive.

Another package is https://github.com/petereon/beaupy, that seems a good
fit as well.

ciao, lele.
--=20
nickname: Lele Gaifax | Quando vivr=C3=B2 di quello che ho pensato ieri
real: Emanuele Gaifas | comincer=C3=B2 ad aver paura di chi mi copia.
lele@metapensiero.it  |                 -- Fortunato Depero, 1929.