Skip to main content

A Python SDK for OneSignal (https://onesignal.com/). Documentation for OneSignal API is available at https://documentation.onesignal.com/docs/server-api-overview.

Obtaining User Rest API key and App REST API key

See details here https://documentation.onesignal.com/docs/server-api-overview

Installing dependencies

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

> pip install -r requirements.txt

Setup

You can install the package by running

> python setup.py 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

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

Contributors

Metadata

Release files for OneSignalPythonSDK 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for OneSignalPythonSDK 0.1
File Size Uploaded Provenance
OneSignalPythonSDK-0.1.tar.gz 8.2 kB Without provenance Details

Release files / OneSignalPythonSDK-0.1.tar.gz

Download URL OneSignalPythonSDK-0.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ffaf893a0fdff7251beee30f0ea7c419a7cebb3905d9dfe8e9173f534a9ff0b0
BLAKE2b-256 checksum
How to use checksums
e49c5ac150afd91dbe049f52dc68d77bc621d1a19ab7756389dd4420a8f90b0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for OneSignalPythonSDK 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page