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.

Source Distribution

PushedPy-0.0.2.tar.gz (1.6 kB view hashes)

Uploaded Source

Built Distribution

PushedPy-0.0.2-py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page