Skip to main content

PushNotifier (V2) for Python

PyPI - Python Version PyPI version build Documentation Status GitHub GitHub repo size

A python module to easily use the service of PushNotifier in your python projects.

You can find the documentation here.

About

Easily send

  • messages ✉️
  • urls 🌎
  • images 🖼️

via python to all your devices. For more info visit pushnotifier.de

Installation

  • Install PushNotifier via pip

    $ pip install pushnotifier
    
  • Install PushNotifier manually

    $ git clone https://github.com/tomg404/pushnotifier-python
    $ cd /path/to/repository/
    $ python setup.py install
    

Usage

from pushnotifier import PushNotifier

pn = PushNotifier('username', 'password', 'package_name', 'api_key')

Sending messages

>>> pn.send_text('hello world', silent=False, devices=['abcd', 'efgh'])
>>> pn.send_url('https://www.example.com', silent=False, devices=['abcd', 'efgh'])
>>> pn.send_notification('hello world', 'https://www.example.com', silent=False, devices=['abcd', 'efgh'])

>>> # Note on send_image: currently you can't send images to android/ios devices
>>> pn.send_image('path/to/image.png', silent=False, devices=['abcd', 'efgh'])

Get Basic information

>>> password = 'XXXXX'
>>> pn.login(password)
{'username': 'username', 'avatar': 'https://gravatar.com/avatar/XXXXX', 'app_token': 'XXXXX', 'expires_at': XXXXX}

>>> pn.get_all_devices()
['abcd', 'efgh', 'ijkl']

Refresh app token

>> > pn.refresh_token()
'new_token'

More detailed help

See the documentation or

>>> help(pn.some_method_you_need_help_on)

Release files for pushnotifier 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pushnotifier 1.3.0
File Size Uploaded
pushnotifier-1.3.0.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pushnotifier 1.3.0
File Interpreter ABI Platform
pushnotifier-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / pushnotifier-1.3.0.tar.gz

Download URL pushnotifier-1.3.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
62a3d42a8eb7bfb6c043bf175e9bda748856731e1e55f3cf5e08f3aa3e0806f2
BLAKE2b-256 checksum
How to use checksums
a7c5091241324e634467189351bb4a0b7aa018d9235d5d632eb7b18099355ca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / pushnotifier-1.3.0-py3-none-any.whl

Download URL pushnotifier-1.3.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e18d5f5ad5053a7e8b80d168804a5f5c76a6a2da3b3cb5815f28007381e5bf25
BLAKE2b-256 checksum
How to use checksums
5a495cd202c5eee7f8762ae1de7cc690178ac5fc66ca430aca3a6f14f8d66eaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.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