Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Command line dialogs made easy.
From github:
git clone https://github.com/nicr9/pydialog.git
cd pydialog
sudo python2.7 setup.py install
First things first, import Dialog
:
from pydialog import Dialog
This is used to make a variety of different dialogs for collecting user input.
For example, asking user for a string:
d = Dialog("What's your name?")
d.input() # This blocks until user answers
print "Hello %s" % d.result
You can also ask the user to choose from a selection:
d = Dialog("Which do you prefer?")
d.choose(['cake', 'chocolate'])
print "I like %s too!" % d.result
Or maybe you just want the answer to a yes/no question?:
d = Dialog("Do you want to quit?")
d.yesno()
if d.result:
quit()
Finally, you can also ask users for passwords. This is like the Dialog.input()
method shown above but it doesn't display what the user is typing:
d = Dialog("Please enter your password")
d.secret()
sign_in(username, d.result)
Name: Nic Roland
Twitter: @nicr9_
email: nicroland9@gmail.com
FAQs
Command line dialogs made easy.
We found that pydialog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.