Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A Python SDK for OneSignal (

Project description

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

Installing dependencies

Create a VirtualEnv and install dependencies from requirements.txt by running (from the root):

> pip install -r requirements.txt


You can install the package by running

> python install

Once installed, to get started, you can do:

>>> import one_signal_sdk
>>> one_signal =  one_signal_sdk.OneSignalSdk(YOUR_APP_ID, AUTH_TOKEN_HERE)
>>> one_signal.get_players(your_app_id, your_basic_auth_key)


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


Project details

Release history Release notifications

This version


Download files

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

Files for OneSignalPythonSDK, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size OneSignalPythonSDK-0.1.tar.gz (8.2 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page