Skip to main content

A Python wrapper for the Pushed.co API

Project description

PushedPy

PushedPy is a simple Python wrapper for the Pushed.co API, that allows you to send push notifications, in real-time, to iOS and Android devices + Chrome, Firefox and Safari browsers.

To send push notifications through Pushed.co, you need two things:

  • Create an account on https://pushed.co/
  • If you want to send push notifications to a mobile device, you need to download the Pushed.co app to the device.

Pushed.co is a paid service, but they offer a sandbox plan that gives you the ability to send up to 1.000 messages pr. month, for free.

Basic usage

To send a push notification in it's simplest form, simply do:

import Pushed

pushed_obj = Pushed("MyAppKey", "MyAppSecret")
r = pushed_obj.Notification("My message to send as a push notification")
print(r)

To send a push notification including an attached URL, add the URL when calling the Notification function:

r = pushed_obj.Notification("My push message", "http://mysite.com")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PushedPy, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size PushedPy-0.0.2-py3-none-any.whl (14.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size PushedPy-0.0.2.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page