OneSignal-Notifications
OneSignal-Notifications is a wrapper for the OneSignal API which allows you to send notifications to Android, iOS and Web App.
Installation
pip install onesignal-notifications
Usage
from onesignal import OneSignal, 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 onesignal-notifications 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| onesignal-notifications-0.2.6.tar.gz | 7.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| onesignal_notifications-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / onesignal-notifications-0.2.6.tar.gz
| Download URL | onesignal-notifications-0.2.6.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8d24ab69865778820e3c4170f45dc032aa6caf8f29bc06058b8bdcc79ad9398
|
|
BLAKE2b-256 checksum How to use checksums |
81ad696475caa245201deee69f4c2ea146babe0f7aa7cd377a5a5a029ac1c196
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9
|
Release files / onesignal_notifications-0.2.6-py3-none-any.whl
| Download URL | onesignal_notifications-0.2.6-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6be4a7e862f650e9d622af9da526c7236c95a20cb8d7731e527b7a75f3a12a2
|
|
BLAKE2b-256 checksum How to use checksums |
465322a27313a1ec222e5b0426d0ed96d0939809987a67f56a7d4183e4f47e7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.9
|
Security for onesignal-notifications 0.2.6
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.