Skip to main content

API client for the Wirepusher notification app for Android.

Project description

Wirepusher

Wirepusher is an Android push notification app, which allows sending arbitrary push notifications (abstracting away all the fuss of Google's push notifications). The client can be configured to handle different categories of notification in different ways. See the Wirepusher docs here.

This is an unofficial Python library for Wirepusher. It supports all features of upstream Wirepusher (encrypted messages, images, actions, etc).

Basic usage

import wirepusher

wp = wirepusher.Wirepusher(MY_DEVICE_ID, "Test notifications")

wp.send("Test title", "Test message.")

Advanced usage

import wirepusher

# initialise with an encryption key configured on the device
wp = wirepusher.Wirepusher(MY_DEVICE_ID, "Test notifications", MY_PRE_SHARED_KEY)

# send a notification which will go to a URL when clicked and store the ID
mid = wp.send(
    "Test title", "Test message.", action="https://www.youtube.com/watch?v=dQw4w9WgXcQ"
)

# replace existing notification with one with an image
wp.send(
    "Test title",
    "Test message.",
    mid=mid,
    image="https://wirepusher.com/assets/images/logo.png",
)

# clear notification
wp.clear(mid)

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

wirepusher-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

wirepusher-0.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file wirepusher-0.0.1.tar.gz.

File metadata

  • Download URL: wirepusher-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for wirepusher-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ee6b1e65a5138fa3e048d8a290019f585b38c3e576a7ffa6e396f4e455026d9e
MD5 5f5dcdb62062c746bd3e84eaa0c7a808
BLAKE2b-256 cbbb5cddecafcb6811d8fc2aac29eb9e1e6ffe073dca741bf4b6e77cf8fcc470

See more details on using hashes here.

File details

Details for the file wirepusher-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: wirepusher-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for wirepusher-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65aaa423f7ac8aea507fbb9008f56833d1313761b5abb75d3aabd7154670040f
MD5 ad11efb4788a257dd299e3a1d330fe55
BLAKE2b-256 f8f44d59b9658487eaa32a2586c05c4888d790e9028f276d088dc27cde9e7426

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