Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A Python wrapper for OneSignal API (

Project Description

OneSignal Python SDK

A Python SDK for OneSignal ( Documentation for OneSignal API is available at

Obtaining User Rest API key and App REST API key

See details here

Install from pip

> pip install onesignal

Setup for develop

You can install the package by running


> python install

Once installed, to get started, you can do:


from onesignal import OneSignal
one_signal = OneSignal(USER_AUTH_KEY, YOUR_APP_ID)

USER_AUTH_KEY: Your e-mail -> Api Keys -> User Auth Key

YOUR_APP_ID: Your App -> App settings -> Keys and Id

REST_API_KEY: Your App -> App settings -> Keys and Id


Tests are located under /tests and these also kind of show some examples on how to use the library.

Running tests

Go to this directory /tests and then run


> py.test


- Zohaib Ijaz <>
- Waqas Younas <>

Release History

This version
History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(7.6 kB) Copy SHA256 Hash SHA256
Source Jun 27, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting