Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
A simple Django app to send SMS messages using an API similar to that of django.core.mail.
Readme
Forked from RyanBalfanz
Add smsish
to your INSTALLED_APPS
and set SMS_BACKEND
.
INSTALLED_APPS += (
'smsish',
)
SMS_BACKEND_CONSOLE = 'smsish.sms.backends.console.SMSBackend'
SMS_BACKEND_DUMMY = 'smsish.sms.backends.dummy.SMSBackend'
SMS_BACKEND_TWILIO = 'smsish.sms.backends.twilio.SMSBackend'
SMS_BACKEND_YUNPIAN = 'smsish.sms.backends.yunpian.SMSBackend'
SMS_BACKEND = SMS_BACKEND_DUMMY
To use the Twilio backend set some additional settings as well.
TWILIO_ACCOUNT_SID = os.getenv("TWILIO_ACCOUNT_SID", None)
TWILIO_AUTH_TOKEN = os.getenv("TWILIO_AUTH_TOKEN", None)
TWILIO_MAGIC_FROM_NUMBER = "+15005550006" # This number passes all validation.
TWILIO_FROM_NUMBER = os.getenv("TWILIO_FROM_NUMBER", TWILIO_MAGIC_FROM_NUMBER)
Example:
from smsish.sms import send_sms
send_msg(message, '', (phone,))
Note: You must also pip install twilio
to use the Twilio backend.
settings.py:
YUNPIAN_API_KEY = getenv("YUNPIAN_API_KEY")
Note: You must also pip install yunpian-python-sdk
to use the YunPian backend.
Example:
from smsish.sms import send_sms
send_msg(message, '', (phone,))
tox
# tox in docker
docker run --rm -it -v ${PWD}:/src themattrix/tox
FAQs
A simple Django app to send SMS messages using an API similar to that of django.core.mail.
We found that django-smsish2 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.