__Command line dialogs made easy.__
## Installation
From github:
```
git clone https://github.com/nicr9/pydialog.git
cd pydialog
sudo python2.7 setup.py install
```
## Examples
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)
```
## Author
Name: Nic Roland<br>
Twitter: [@nicr9_](https://twitter.com/nicr9_)<br>
email: nicroland9@gmail.com
Metadata
Release files for pydialog v0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydialog-v0.1.tar.gz | 3.0 kB | Without provenance | Details for pydialog-v0.1.tar.gz |
Release files / pydialog-v0.1.tar.gz
| Download URL | pydialog-v0.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cf733849d794cc25467ce00329fe2170898408901e9e82430f939379f66f7ff
|
|
BLAKE2b-256 checksum How to use checksums |
4111adfd88cdcc3d519a78e03a9a43191638fc404bd20dfb3f7cb946bce2aabe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pydialog v0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.