Skip to main content

Lightweight Python library to show simple dialogs

Project description

Dialite

CI Documentation Status

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

dialite-0.6.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dialite-0.6.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for dialite-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8d36c144f5c2388431b9e00a5eae817648df9277e22b5cac29c678663c7cf52f
MD5 55babd5e47ec8e78d48c3f0a6e58ac95
BLAKE2b-256 8f842ce7a7b35fc5fbf6d39f465b8e7f617d0e15b04d9a644f6e09cdf31faa43

See more details on using hashes here.

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

Hashes for dialite-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f599e0da13f2865b48571cb11954d57dc1151379de6ecbc3697cf3e406b4bc44
MD5 e6acdd0d0494a885da0f99e9dbc20d0d
BLAKE2b-256 bec7a414138a13a72191614d434d373ab1d83fede1304c18b7ba7ffbf2c6d172

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page