SMS tool that can help you properly count the length of an SMS, calculate the part and what encoding it is.
$ pip install smshelper
- Python 2
- None
>>> from smshelper import SMSHelper
>>> sms = SMSHelper('Sample message.')
>>> sms.count()
15
>>> sms.parts()
1
>>> sms.detect_encoding()
'GSM_7BIT'
MIT licensed. See the bundled LICENSE file for more details.