
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
turn-python
Advanced tools
Get an API token from Turn (currently only tokens are supported, not username / passwords)
Add this as an environment variable, or pass in to the turn client
$ export TURN_AUTH_TOKEN={your token}
Usage
from turn import TurnClient
turn_client = TurnClient(token={optionally add your token here})
# Get a user's whatsapp id
wa_id = turn_client.contacts.get_whatsapp_id('123456')
# Send a message
turn_client.messages.send_text(wa_id, 'Hello')
# Send a media file
with open("example.jpg", "rb") as file:
turn_client.messages.send_media(
whatsapp_id=wa_id,
file=file,
content_type="image/jpeg",
media_type="image",
caption="Here’s an image"
)
FAQs
A python package for the Turn.io WhatsApp API
We found that turn-python demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.