mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2025-01-09 17:33:47 +00:00
use new pypush package in outer packages
This commit is contained in:
parent
2f435f5d84
commit
a3754316ec
3 changed files with 5 additions and 4 deletions
|
@ -5,7 +5,7 @@ from websockets.sync.client import connect
|
||||||
import json
|
import json
|
||||||
from base64 import b64encode
|
from base64 import b64encode
|
||||||
import random
|
import random
|
||||||
import bags
|
from pypush import bags
|
||||||
import requests
|
import requests
|
||||||
import plistlib
|
import plistlib
|
||||||
import icloud.gsa as gsa
|
import icloud.gsa as gsa
|
||||||
|
@ -52,7 +52,7 @@ with connect(ANISETTE_SERVER) as websocket:
|
||||||
elif message["result"] == "GiveEndProvisioningData":
|
elif message["result"] == "GiveEndProvisioningData":
|
||||||
|
|
||||||
if 'cpim' in message:
|
if 'cpim' in message:
|
||||||
cpim = message['cpim']
|
cpim = message['cpim']
|
||||||
|
|
||||||
elif message["result"] == "Timeout":
|
elif message["result"] == "Timeout":
|
||||||
break
|
break
|
|
@ -106,7 +106,8 @@ def _p_filter(prefix, fields: list[tuple[int, bytes]]):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
import apns
|
from pypush import apns
|
||||||
|
|
||||||
|
|
||||||
def print_payload(payload: apns.APNSPayload, to_server: bool):
|
def print_payload(payload: apns.APNSPayload, to_server: bool):
|
||||||
prefix = "apsd -> APNs" if to_server else "APNs -> apsd"
|
prefix = "apsd -> APNs" if to_server else "APNs -> apsd"
|
||||||
|
|
|
@ -16,7 +16,7 @@ import trio
|
||||||
from rich.logging import RichHandler
|
from rich.logging import RichHandler
|
||||||
|
|
||||||
import printer
|
import printer
|
||||||
import apns
|
from pypush import apns
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.NOTSET,
|
level=logging.NOTSET,
|
||||||
|
|
Loading…
Add table
Reference in a new issue