Like Pushkin, but subscribe to GCM/FCM and receive notifications
Project description
Pullkin
Like Pushkin, but subscribe to FCM (GCM) and receive notifications
My alternative implementation of python implementation of JS implementation
Tested on python (3.9.6, TODO: other versions)
I almost didn't write anything to consider it my intellectual property, just wrapped the code already written by Franc[e]sco in a design convenient for my own use
Note that for the listening part Franc[e]sco has to pull in http-ece which depends
on a full-blown native crypto library rather than just oscrypto. it is
an optional dependency, so you'll have to install it explicitly by depending
on pullkin[listen]
Differences
- Add async listener
- Add async listener-coroutine
- Replace functions with class of listener
Usage
pip install pullkin
Basic usage example that stores and loads credentials and persistent ids and prints new notifications
You can also run this example with this command (change the sender id)
python -m pullkin --sender-id=722915550290
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.