Skip to main content

Toasts

Toasts is an app that shows desktop notifications from various websites like GitHub, StackExchange, BitBucket, and the likes. It just runs in the background and shows you a notification when there is one from sites you have enabled. Authentication to your user account on a particular website is done through a Personal Access Token or Oauth.

Please do note that this project is still a work in progress, even though it works.

Supported Sites

  • Github

If you would like a new site to be supported, please open an issue, and let's see what we can do :)

Getting Started

Requirements

Toasts is written in Python3 and the package is available on PyPI.

The app has been tested only on Linux, as of now. It should work fine on a Mac, but Windows is not supportd at the moment (I'm working on it).

Installation

Open a terminal and:

$ pip install --user toasts

For updating the app:

$ pip install --user -U toasts

Usage

Before running the app, we should first enable available clients in the config file. The user config file is ~/.config/toasts/config.yaml on Linux and ~/Library/Application Support/toasts/config.yaml on Mac.

Only Github is implemented for now, so you can enable it in the config file like so:

# Config file for toasts

general:
        # List of sites to enable; comma seperated list
        # Default: []
        clients: [github]
        .
        .
        .

Toasts gets Github notifications using a Personal Access Token. Go to Developer Settings and create one with permission to access your notifications. Then set the environment variables GH_UNAME to your Github username and GH_TOKEN to the access token you just created (it is possible to authenticate using your Github password; just set GH_TOKEN to your password).

You're all set !

Open a terminal and and run the toasts command:

$ toasts

You should see your notifications pop up, if you have an update from the enabled sites.

I'm so happy right now :)

The Config File

The file is in YAML format:

# Config file for toasts

general:
        # List of sites to enable; comma seperated list
        # Default: []
        clients: []
        # Connection timeout, in seconds
        # Default: 7 ; Minimum value: 1
        conn_timeout: 7
        # Check for notifications every ___ minutes
        # Default: 3 ; Minimum value: 2
        check_every: 3
        # Show notification for ___ seconds
        # Default: 7 ; Minimum value: 2
        notif_timeout: 7
        # Maximum number of notifications to show at a time, of individual clients.
        # Default: 2
        # Note: Value of -1 will show all notifications; it may clutter your workspace.
        notif_max_show: 2

sites:
        github:
                # *Environment variable* which holds your github username
                # Default: GH_UNAME
                username: GH_UNAME
                # *Environment variable* which holds a personal access token for authentication
                # Default: GH_TOKEN
                token: GH_TOKEN

Metadata

Release files for toasts 0.1.2

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

Source distribution (sdist)

Source distribution for toasts 0.1.2
File Size Uploaded
toasts-0.1.2.tar.gz 13.7 kB Details

Built distribution (wheel)

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

Total release size: 40.2 kB

Release files / toasts-0.1.2.tar.gz

Download URL toasts-0.1.2.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
04da78957a63ba78726bd99dbb1dcbd1a0d5796ae70ed40e311f1244a9bd0eba
BLAKE2b-256 checksum
How to use checksums
ef555814045e5eeb3b29771460290e8d2c0145f0758b72881b62c8b6c3c047a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.3 CPython/2.7.15rc1 Linux/4.15.0-36-generic

Release files / toasts-0.1.2-py3-none-any.whl

Download URL toasts-0.1.2-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a2775a15db0cf7dc2d2f65a492c15a1da63074621ff0496327ceefa06c0e587
BLAKE2b-256 checksum
How to use checksums
6f85d31876f96841a0b520d76f05173187d4096bf9166d84de937f5ac3a10c9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.3 CPython/2.7.15rc1 Linux/4.15.0-36-generic

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.0

2 release files

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