Skip to main content

A simple library to push notification using PushBullet. You need a pushbullet API key for this

Project description

PyPushBullet

PyPI Version License PyPushBullet is a Python library for interacting with the PushBullet API, allowing you to send notifications, links, and files to your devices easily.

Installation

You can install PyPushBullet via pip:

pip install PyPushBullet

Usage

Initializing the PushBullet Client

Before using the library, you need to initialize the PushBullet client with your API key. You can either provide the API key explicitly or set it as an environment ariable.

    from PyPushBullet.client import PushBullet
    # Initialize with API key provided explicitly
    api_key = 'YOUR_PUSHBULLET_API_KEY'
    pb = PushBullet(api_key)
    # Alternatively, set the API key as an environment variable
    # export PUSHBULLET_API_KEY=YOUR_PUSHBULLET_API_KEY
    # Then, initialize without providing the API key
    pb = PushBullet()

Sending Notifications

Once the client is initialized, you can use it to send notifications to your devices:

    title = 'Hello'
    body = 'This is a test notification'
    pb.send_notification(title, body)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • This library is not affiliated with or endorsed by PushBullet. It is an independent open-source project.
  • Feel free to contribute to this project by opening issues and pull requests.

Author

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

PyPushBullet-0.2.6.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

PyPushBullet-0.2.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file PyPushBullet-0.2.6.tar.gz.

File metadata

  • Download URL: PyPushBullet-0.2.6.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for PyPushBullet-0.2.6.tar.gz
Algorithm Hash digest
SHA256 c6584312213783ec3cc816e049f990b3300a47b261d28fdd63b15fad2a3ea859
MD5 bafd56e7d705d87f4b89e86002c96c9b
BLAKE2b-256 28352e5215e751c0bc1b96c3edddddfd5423360fa74f15bb4eccf6f0010ced4a

See more details on using hashes here.

File details

Details for the file PyPushBullet-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: PyPushBullet-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for PyPushBullet-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e714abdab84416e10a40b49427d4b08a9ee1524aee5f18037e9b51cd511ce9d0
MD5 2ed2c75f2ed0bccc3da740bb7916eb01
BLAKE2b-256 14b6da2063d6391dc8ceb12f36317dee0124383a1fa73ea12107e561aaafbde4

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