Skip to main content

OneSignal client

OneSignal client is a wrapper for the OneSignal API which allows you to send notifications to Android, iOS and Web App.

It is based on onesignal-notifications library.

Installation

pip install onesignal-client

Usage

from onesignal import OneSignalClient, SegmentNotification

client = OneSignal("MY_APP_ID", "MY_REST_API_KEY")
notification_to_all_users = SegmentNotification(
    contents={
        "en": "Hello from OneSignal-Notifications"
    },
    included_segments=[SegmentNotification.ALL]
)
client.send(notification_to_all_users)

Development

Contributions are welcome

pip install --editable .

run the tests

export ONESIGNAL_API_KEY="..."
export ONESIGNAL_REST_API_KEY="..."

pytest

Docs

To edit the docs, change the folder and spin up the development server.

cd docs
npm install -g vuepress
vuepress dev

Meta

Lucas Hild - https://lucas-hild.de
This project is licensed under the MIT License - see the LICENSE file for details

Metadata

Release files for skip-onesignal-client 0.1.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 skip-onesignal-client 0.1.1
File Size Uploaded
skip_onesignal_client-0.1.1.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for skip-onesignal-client 0.1.1
File Interpreter ABI Platform
skip_onesignal_client-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / skip_onesignal_client-0.1.1.tar.gz

Download URL skip_onesignal_client-0.1.1.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
92cd8d00841f3c920a0240f049d60ad914c85f9e865f6a79d517fe0d7ba9cc4f
BLAKE2b-256 checksum
How to use checksums
f0322ec6c5b21c64e86bf86d6e58027e9f4bbf1c8cc9bad72c8eb941afe883c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / skip_onesignal_client-0.1.1-py3-none-any.whl

Download URL skip_onesignal_client-0.1.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6bfb6b1b4d69ec78077c8115f2c1ca2c7c8053927b5414f61ea258f9647ad7a0
BLAKE2b-256 checksum
How to use checksums
a470f7b5552bb86dbd72d2dc168ff65756607efd7d2a4f214e940dea2d877a21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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