Utility to send push notification.
Project description
psend
Simple python utility for send push notifications.
Description
A python client to send push notifications to phones and other device.
The notifications will recived by the "Simple Push Notification API" App.
How to install
You can install it using pip
pip install psend
How to use
After installing this, it can be used by calling the script:
psend
or using python:
python -m psend
To use in your code:
import psend
psend.psend(["My-Key"], "Title", "This is a payload", None)
Options
The options for this utility can shown using -h flag:
usage: psend [-h] -k KEY [KEY ...] -t TITLE -c CONTENT [-u URL]
Utility to send push notification
options:
-h, --help show this help message and exit
-k KEY [KEY ...], --keys KEY [KEY ...]
-t TITLE, --title TITLE
-c CONTENT, --content CONTENT
-u URL, --url URL
Send push notification to Simple Push Notification API
(https://play.google.com/store/apps/details?id=net.xdroid.pn)
How to build
This project is built using poetry:
poetry build
References
- Git repository: https://github.com/sandrospadaro/psend
- Pypi repository: https://pypi.org/project/psend/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file psend-0.1.9.tar.gz.
File metadata
- Download URL: psend-0.1.9.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.1 Linux/6.0.18-300.fc37.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
186093d1583fb64a9130f017ca0e14fc33887a7a7be4f188a85fee7dd8ab51df
|
|
| MD5 |
557116ae457a2cbe5f928c346957b207
|
|
| BLAKE2b-256 |
56035a9efdacc050f63e251f5528ff44072622978987e6d341e9c7d86030ae90
|
File details
Details for the file psend-0.1.9-py2.py3-none-any.whl.
File metadata
- Download URL: psend-0.1.9-py2.py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.1 Linux/6.0.18-300.fc37.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc3a6a7d42358273dc8dc45dbe1242f036d89d6d97f5114b919f95f59ff45a35
|
|
| MD5 |
80065ce8f24762d1913b2729011b2ee9
|
|
| BLAKE2b-256 |
f372300892505575455fbea5090c3ba53d1aa7fe9782981951cff931d57a9f28
|