Skip to main content

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

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

psend-0.1.9.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psend-0.1.9-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2Python 3

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

Hashes for psend-0.1.9.tar.gz
Algorithm Hash digest
SHA256 186093d1583fb64a9130f017ca0e14fc33887a7a7be4f188a85fee7dd8ab51df
MD5 557116ae457a2cbe5f928c346957b207
BLAKE2b-256 56035a9efdacc050f63e251f5528ff44072622978987e6d341e9c7d86030ae90

See more details on using hashes here.

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

Hashes for psend-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bc3a6a7d42358273dc8dc45dbe1242f036d89d6d97f5114b919f95f59ff45a35
MD5 80065ce8f24762d1913b2729011b2ee9
BLAKE2b-256 f372300892505575455fbea5090c3ba53d1aa7fe9782981951cff931d57a9f28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page