--- id: pymsgbox version: "2.0.1" license: Copyright (c) 2014, Al Sweigart All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *… (full text in the JSON record) license_treatment: copyleft maintenance: aging --- # PyMsgBox — A simple, cross-platform, pure Python module for JavaScript-like message boxes. License: copyleft · Maintenance: aging · Downloads: 5.3M/mo ## What it is and what it does PyMsgBox is a lightweight wrapper around native system dialogs that mimics JavaScript's message box API for Python. It provides four functions—alert, confirm, prompt, and password—each returning the user's choice or input. The package is pure Python with no external dependencies, making it simple to integrate into scripts and applications that need basic user interaction without a full GUI framework. The module works cross-platform by delegating to the underlying system's dialog implementation. It supports Python 3.4 through 3.14, making it compatible with both older and current Python versions. The API is intentionally minimal and familiar to developers coming from JavaScript, reducing the learning curve for adding simple dialog boxes to command-line or desktop applications. Use it for: - Display confirmation dialogs in command-line tools before destructive operations - Collect simple user input (names, passwords, settings) without building a full GUI - Add alert notifications to scripts that need to pause and wait for user acknowledgment - Create cross-platform desktop utilities that run on Windows, macOS, and Linux with native dialogs - Prototype interactive applications quickly without learning a GUI framework ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PyMsgBox provides JavaScript-like message box functions (alert, confirm, prompt, password) that work cross-platform in pure Python, displaying native dialog boxes for user interaction. Yes, for simple dialog needs. PyMsgBox is worth installing if you need lightweight, cross-platform message boxes without GUI framework overhead. It has no runtime dependencies, installs easily, and works across Python 3.4–3.14. The aging maintenance status (last release 339 days ago) is not a blocker for stable, simple functionality, but verify Tkinter availability on your target platform before deploying. ## Install pip install pymsgbox uv add pymsgbox poetry add pymsgbox ## Installing PyMsgBox Before you install: Installation is straightforward with no runtime dependencies. The package is aging (last release 339 days ago) but remains actively maintained; the repository is not archived and has received recent commits. License in practice: PyMsgBox is licensed under a Modified BSD License (copyleft treatment). This is permissive for most uses but requires preservation of copyright and license notices in redistributions; commercial use is allowed. Quickstart: pip install pymsgbox from pymsgbox import alert, confirm, prompt alert(text='Hello', title='Message') response = confirm(text='Continue?', buttons=['Yes', 'No']) user_input = prompt(text='Enter name:', defaultValue='') On Linux with Python 2, Tkinter must be installed separately (sudo apt-get install python-tk); modern Python 3 versions typically include it. Verify before relying: - Whether Tkinter is bundled or requires separate installation on macOS and Windows systems - Performance characteristics when displaying many dialogs in sequence - Accessibility support for screen readers or keyboard-only navigation ## Package facts - License: Copyright (c) 2014, Al Sweigart All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: *… (full text in the JSON record) (copyleft) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 5.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags cross-platform message boxes, javascript-like dialogs python, user input prompts, alert confirm prompt, gui message boxes, simple dialog boxes, native system dialogs, dialogs, cross-platform, cli-ui [View on SkillFed](https://skillfed.io/packages/pymsgbox) · [View on PyPI](https://pypi.org/project/pymsgbox/)