Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Generate interactive menus in a python script. Like yes/no question and menu action.

Project Description
<h1>Create Menu like this</h1>

<pre><code>from askcli import Menu, Item
items = list()
# create items list
items = [Item('a', 'Action A'), Item('b', 'Action B'), 'action 3', Item('q', 'Quitter')]

m = Menu(items)
# print and wait keypress

print("you choose {0} : {1}".format(m.choose, m.get_choosen_text()))


<pre><code> a - Action a
b - Action b
3 - action 3
q - Quitter
? input : f
X - error key, (unavailable)
? input : q
toy choose menu q : Quitter

<h1>Yes/No questions</h1>
<pre><code>from askcli.ask_bool import AskBool
a = AskBool('valid',t_text="Yes",f_text="No",required=True)
res = a.launch(err_mess="choose [yes] or [no]")
print("bool: {0}. choice {1}".format(res, a.get_text()))


? Confirmer [o/N] : yes
x choose [yes] or [no]
? Confirmer [o/N] : oui
bool: True. choix Oui

<img src="" alt="AskCli_img"><br>
<a href="">github project</a>
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
askcli-1.0.4.tar.gz (6.8 kB) Copy SHA256 Checksum SHA256 Source Aug 6, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting