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.7.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.7-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PyPushBullet-0.2.7.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.7.tar.gz
Algorithm Hash digest
SHA256 39634c9cec17355edd198004f71eda518490f8739ad8f53a865cf34a297bca03
MD5 db8f99785c1b0af603a596ea8571e457
BLAKE2b-256 a28f108432ce911609ce69b28f6b4ea5509dfb92c1e0804f4dbd2e0a4dae8bd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyPushBullet-0.2.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8c023da157644fc561e0bc8437b1f671987486c1c93331b685903cc950d61342
MD5 2f784d2d8d4ed87b60c8a79c63b11e7d
BLAKE2b-256 049cdfba22cd55b6e2efa2ec29a8f4797a64fd8b984930776f83fb57adcc8621

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