%global _empty_manifest_terminate_build 0 Name: python-pullkin Version: 0.12.0 Release: 1 Summary: Subscribe to GCM/FCM and receive notifications like an android app License: Mozilla Public License 2.0 URL: https://github.com/WhiteApfel/pullkin Source0: https://mirrors.aliyun.com/pypi/web/packages/98/d4/139d9a096229d59df047424446bc15c09e69efddd1bd3798cec7596f2f6b/pullkin-0.12.0.tar.gz BuildArch: noarch Requires: python3-http-ece Requires: python3-asyncio Requires: python3-betterproto Requires: python3-cryptography Requires: python3-httpx Requires: python3-loguru Requires: python3-oscrypto Requires: python3-dotenv %description # Pullkin [![CodeFactor](https://www.codefactor.io/repository/github/whiteapfel/pullkin/badge/master)](https://www.codefactor.io/repository/github/whiteapfel/pullkin/overview/master) [![Build Status](https://app.travis-ci.com/WhiteApfel/Pullkin.svg?branch=master)](https://app.travis-ci.com/WhiteApfel/Pullkin) ![PyPI - Downloads](https://img.shields.io/pypi/dm/pullkin) ![GitHub](https://img.shields.io/github/license/whiteapfel/pullkin) ![GitHub last commit](https://img.shields.io/github/last-commit/whiteapfel/pullkin) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pullkin) Like Pushkin, but subscribe to FCM (GCM) and receive notifications My alternative implementation of [python implementation](https://github.com/Francesco149/push_receiver) of [JS implementation](https://github.com/MatthieuLemoine/push-receiver) Tested on python (3.6, 3.8, 3.10, pypy3.7-7.3.5) 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 ### Installation ```shell pip install pullkin ``` ### How to use ```python import json import os.path import asyncio from pullkin import Pullkin from pullkin.models import Message, AppCredentials SENDER_ID = '<>' # '1234567890' APP_ID = '<>' # '1:1234567890:android:abcdef1234567890' API_ID = '<>' # 'AIzaSyDce4zFw4CqLqW2eCOqTbXfDx9a8mRnLpI' FIREBASE_NAME = '<> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-pullkin -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.12.0-1 - Package Spec generated