Skip to main content

Mactoast 🍞

An elegant and super easy to use Python library for creating customizable toast notifications on macOS.

Features

  • 🎨 Customizable: Colors, size, position, timing, and more
  • 💊 Modern Design: Borderless, modern UI with no title bar or buttons
  • ⚡ Non-Blocking: Run toasts asynchronously without blocking your script
  • 🎭 Animated: Smooth fade-in and fade-out animations
  • 🪶 Lightweight: Minimal dependencies, uses a bundled native macOS app
  • 🎯 Icons: Native SF Symbols support for beautiful icons
  • 👆 Click to Dismiss: Tap any toast to dismiss it immediately
  • 📏 Auto-Size: Automatically calculates optimal dimensions for your message
  • 🔊 Sound Effects: Built-in notification sounds with custom sound support

Toast Styles

Success Error Warning Info
Success Toast Error Toast Warning Toast Info Toast

Installation

pip install mactoast

Quick Start

from mactoast import toast

# Simple toast
toast("Hello from macOS!")

# With icon and sound
toast("Success!", icon="checkmark.circle.fill", sound="confirmation1")

# Preset styles
from mactoast import show_success, show_error, show_warning, show_info
show_success("File saved!")
show_error("Connection failed!")

Key Examples

Colors & Positioning

from mactoast import toast, ToastPosition

# Custom colors
toast("Blue toast", bg="#0080FF", text_color="#FFFFFF")

# Position
toast("Top Right", position=ToastPosition.TOP_RIGHT)
toast("Custom", position=(500, 500))

Auto-Size

# Automatically sizes to fit content
toast("Short!", auto_size=True)
toast("This is a longer message that wraps", auto_size=True)

Non-Blocking Mode

# Launch toast and continue immediately
process = toast("Background", blocking=False)
print(f"Toast PID: {process.pid}")

# Launch multiple toasts at once
for i in range(4):
    toast(f"Toast {i+1}", blocking=False)

Sound Effects

# 16 bundled sounds in 4 categories
toast("Beep!", sound="beep1")
toast("Success", sound="confirmation1")
toast("Pop!", sound="pop2")
toast("Sci-fi", sound="scifi1.m4a")

# Custom sound file
toast("Custom", sound="/path/to/sound.wav")

Icons (SF Symbols)

# Use any SF Symbol name
toast("Download complete", icon="arrow.down.circle.fill")
toast("Settings", icon="gearshape.fill")
toast("Message", icon="paperplane.fill")

Complete Documentation

For comprehensive documentation including:

  • Full API reference
  • ToastHUD Swift app architecture
  • Sound system details
  • Building from source
  • Advanced examples
  • Troubleshooting

See DOCS.md

Requirements

  • macOS 10.15+
  • Python 3.8+

Links

License

MIT License - see LICENSE file for details

Metadata

Release files for mactoast 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mactoast 0.1.1
File Size Uploaded Provenance
mactoast-0.1.1.tar.gz 7.1 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mactoast 0.1.1
File Interpreter ABI Platform
mactoast-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 MB

Release files / mactoast-0.1.1.tar.gz

Download URL mactoast-0.1.1.tar.gz
Size 7.1 MB
Tags Source
SHA-256 checksum
How to use checksums
86bdfef234494147a21671843f57bacf1d63bd0734a133ac694dcd928ee266c9
BLAKE2b-256 checksum
How to use checksums
8559b5792a896b016f216ccd26af39c3110b862d1211fb82ffa8d9418187e698
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 14, 2025.

Transparency log

Release files / mactoast-0.1.1-py3-none-any.whl

Download URL mactoast-0.1.1-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3bbe77fec7327f882c61ccf8f6eb05fc6845941fc221d30185968817042085fb
BLAKE2b-256 checksum
How to use checksums
eb131f4bb7b0b7a004b93c18286fa0e8dc6ad24c0723b45d65726458617d4b07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 14, 2025.

Transparency log

Security for mactoast 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mactoast-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 14, 2025.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page