onesignal-python-api
OneSignal
What it is and what it does
This is a Python wrapper for the OneSignal messaging API, auto-generated from OpenAPI specifications. It provides a programmatic interface to OneSignal's push notification and customer engagement services, allowing you to send personalized messages, manage subscribers, and track campaign performance from Python code.
The library depends on urllib3 for HTTP requests and python-dateutil for date handling. It supports Python 3.6 and later. The package is actively maintained with no known security vulnerabilities. However, the license terms are not clearly documented in the package metadata, which is a notable gap for production use.
Use it for:
- Send bulk push notifications to mobile app users based on segmentation or user behavior.
- Automate customer engagement workflows triggered by application events.
- Manage OneSignal subscriber lists and user attributes programmatically.
- Integrate OneSignal messaging into a Python backend service or data pipeline.
- Track and retrieve campaign analytics and delivery metrics.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for the OneSignal API that enables sending personalized messages and managing customer engagement through OneSignal's messaging platform.
Yes, with conditions. The package is actively maintained, has low install friction, and serves a clear purpose for OneSignal users. However, install only after verifying the license terms—the unclear license status is a real blocker for production or commercial use. If you are already committed to OneSignal and can confirm the license is acceptable, this is a straightforward choice.
Install
onesignal-python-api on PyPI
pip
pip install onesignal-python-apiuv
uv add onesignal-python-apipoetry
poetry add onesignal-python-apiInstalling onesignal-python-api
Before you install
Low install friction with only two lightweight runtime dependencies (urllib3 and python-dateutil). Actively maintained with a recent release.
License in practice
License status is unclear; no SPDX identifier or raw license text is available. Verify the actual license terms before using in production or redistributing.
Quickstart
pip install onesignal-python-api
import onesignal_python_api
from onesignal_python_api.client import Client
client = Client(user_key='your_key', app='your_app')
Requires Python 3.6 or later. OneSignal API credentials (user key and app ID) are needed to authenticate.
Verify before relying
- Whether the package is officially maintained by OneSignal or a third party (generated via OpenAPI-Generator).
- What the actual license is and any redistribution or commercial use restrictions.
- Whether documentation or examples are available beyond the API reference.
- Download volume and actual user base size beyond the top-15000 popularity tier.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — urllib3, python-dateutil |
| Maintenance | actively maintained — 2 days since the last release |
| First released | |
| Downloads | 135,375/month — #11,434 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: onesignal_python_api-5.11.3-py3-none-any.whl
Keywords: OpenAPI, OpenAPI-Generator, OneSignal
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
sailthru-clientA Python client library for the Sailthru REST…
permissive · top 15,000 on PyPI
smoochProvides a Python client for the Smooch API,…
unclear · top 15,000 on PyPI
pushbullet.pyA Python client library for the Pushbullet API…
permissive · top 15,000 on PyPI
notifications-python-clientA Python client library for sending emails,…
permissive · top 15,000 on PyPI
smsapi-clientA Python client library for sending SMS…
permissive · top 15,000 on PyPI
dropbox-signPython client library for the Dropbox Sign v3…
permissive · top 5,000 on PyPI
mailchimp-transactionalA Python client library for the Mailchimp…
unclear · top 15,000 on PyPI
fbmessengerA Python library for sending and receiving…
permissive · top 15,000 on PyPI
novuPython SDK for Novu's notification API,…
permissive · top 15,000 on PyPI
onfido-pythonOfficial Python client library for the Onfido…
permissive · top 5,000 on PyPI