Skip to main content

A python package for an easy use of the service from https://pushnotifier.de/

Project description

PushNotifier (V2) for Python

A python module to easily use the service of PushNotifier in your python projects. Special thanks go to @Logxn.

Installation

  • Install all dependencies

    pip install -r requirements.txt
    
  • Install PushNotifier

    pip install pushnotifier
    

Usage

from pushnotifier import PushNotifier as pn

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

Sending messages

>>> pn.send_text('hello world', silent=False)
>>> pn.send_url('https://www.example.com', silent=True)
>>> pn.send_notification('hello world', 'https://www.example.com')	# by default silent is set to False

Get Basic information

>>> pn.login()
{'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'

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

pushnotifier-1.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

pushnotifier-1.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pushnotifier-1.1.0.tar.gz.

File metadata

  • Download URL: pushnotifier-1.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.10.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

File hashes

Hashes for pushnotifier-1.1.0.tar.gz
Algorithm Hash digest
SHA256 44d2f7fb18d5b4463d1cc6110ec1d5d6a733c25f6e0dd2a35d94c090c2f89ed5
MD5 958e5aae283892f651847640ed9304d4
BLAKE2b-256 d8d7c6203eb9d9adccc01ac6171454566dd0724631b74dedd05062e19d30b04a

See more details on using hashes here.

File details

Details for the file pushnotifier-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pushnotifier-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.10.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.6

File hashes

Hashes for pushnotifier-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e98a4455efdb9283a1f1d4548ba11147a488004c1043a8204c4bd2da8d39ec0e
MD5 0a9b80ac7216576875522382fa29b44e
BLAKE2b-256 dab91639a1d0cd1a48b455b3095f87e1d0a39e68bfc8b9c92a545413b13f03d0

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