Lightweight Python library to show simple dialogs
Project description
Dialite
Dialite is a lightweight Python package to show dialogs. It provides a
handful of functions, each a verb, that can be used to inform(), warn()
or fail() the user, or to ask_ok(), ask_retry() or ask_yesno().
Dialite is pure Python, has no dependencies, and is written to work on Python 3.6+. It works on Windows (from at least XP), Linux (most ones anyway, including Raspbian) and OS X.
Dialite provides a way to communicate with the user without needing a fancy (and heavy) GUI library. It's also much easier to package with tools like cx_Freeze and PyInstaller.
Example:
import dialite
res = dialite.ask_yesno('Troll question', 'Do you prefer VI over Emacs?')
if dialite.ask_ok('Confirm download', 'Will now download the resources.'):
...
Installation
pip install dialite
License
BSD 2-clause. See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dialite-0.6.0.tar.gz.
File metadata
- Download URL: dialite-0.6.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d36c144f5c2388431b9e00a5eae817648df9277e22b5cac29c678663c7cf52f
|
|
| MD5 |
55babd5e47ec8e78d48c3f0a6e58ac95
|
|
| BLAKE2b-256 |
8f842ce7a7b35fc5fbf6d39f465b8e7f617d0e15b04d9a644f6e09cdf31faa43
|
File details
Details for the file dialite-0.6.0-py3-none-any.whl.
File metadata
- Download URL: dialite-0.6.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f599e0da13f2865b48571cb11954d57dc1151379de6ecbc3697cf3e406b4bc44
|
|
| MD5 |
e6acdd0d0494a885da0f99e9dbc20d0d
|
|
| BLAKE2b-256 |
bec7a414138a13a72191614d434d373ab1d83fede1304c18b7ba7ffbf2c6d172
|