Django SMS Toolkit
Django module to send and store SMS with Twilio.
Releases
To release a new version via github.com, follow the steps in this link.
To release a new version via git commands, follow this documentation.
You can see the releases here.
Versioning
You can refer here for semantics of versioning.
Installation
-
pip install
django-sms-toolkit. -
Add django_sms_toolkit to the
INSTALLED_APPSin the settings file. -
Configure settings.
DJANGO_SMS_TOOLKIT_SETTINGS = {
"SEND_SMS": True, # True by default.
"DEFAULT_FROM_NUMBER": "",
"TWILIO": {
"ACCOUNT_SID": "",
"AUTH_TOKEN": "",
"STATUS_CALLBACK_BASE_URL": "https://www.myapp.com",
"TRIM_LONG_BODY": True, # True by default. Makes sure character limit is not exceeded.
}
}
-
python manage.py migrate -
Include urls to be able to receive message status callbacks from Twilio.
urlpatterns = [
....,
url(r'^', include('django_sms_toolkit.urls')),
]
- (Optional) Add
TwilioMessageMixinto your auth user model.
from django_sms_toolkit.models import TwilioMessageMixin
class AuthUser(TwilioMessageMixin,...):
....
# Default from number provided in settings is used if from_number is not provided.
user.send_sms(body, from_number=None)
# OR
from django_sms_toolkit.tasks import send_sms
send_sms.delay(from_number, to_number, body, recipient_id=None)
Support
Please open an issue for support.
Contributing
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
Metadata
Release files for django-sms-toolkit 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-sms-toolkit-0.1.6.tar.gz | 7.8 kB | Without provenance | Details for django-sms-toolkit-0.1.6.tar.gz |
Release files / django-sms-toolkit-0.1.6.tar.gz
| Download URL | django-sms-toolkit-0.1.6.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a321f035b1b5be2b2977eec3278ec31edffbdccf3ff294ef215625ff614111c7
|
|
BLAKE2b-256 checksum How to use checksums |
db63d23aecfc01622d5100c4978c6280050b2922cb173fd1a660662f6cd32d7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.6.8
|
Security for django-sms-toolkit 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.