
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
apns-worker
Advanced tools
This is a client library for Apple's push notification service. It is not the first such library for Python, but, as is often the way, the existing options didn't quite meet our needs:
#. No dependencies (other than six). #. Fire and forget. APNs is a quirky binary protocol that frequently requires reconnecting to the service and re-sending notifications after an error. #. Robust. We don't do quick and dirty here. Readability, tests, and documentation are not optional.
An APNs client is by nature stateful. The default apns-worker backend uses Python threads to asynchronously process a queue of messages to send to the service. Most users will want to maintain a global ApnsManager instance to process messages. Note that if your own program is threaded, you may need to take care to create this global instance safely.
::
from apns_worker import ApnsManager
apns = None
def init_apns(key_path, cert_path):
""" Call this once at program init time. """
global apns
apns = ApnsManager(key_path, cert_path)
def send_badge(token, badge=1):
""" Badge the app on a single device. """
apns.send_aps([token], badge=badge)
FAQs
A robust client library for Apple's push notification service.
We found that apns-worker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.