A collection of tools to work with SMS messages.
Project description
A collection of tools used to send SMS messages.
Tools
Message Profiling
Accepts a raw SMS message string and determines its most efficient encoding, then determines how many segments would be used to send it.
Largely based on this tool (code found here).
Example:
from sms_toolkit.messages.profiling import profile_message import json profile = profile_message("Sup chonus") print(json.dumps(profile, indent=4)) { "num_segments": 1, "segments": [ { "message": "Sup chonus", "total_segment_length": 10, "unicode_character_list": [ "S", "u", "p", " ", "c", "h", "o", "n", "u", "s" ], "byte_groups": [ [83], [117], [112], [32], [99], [104], [111], [110], [117], [115] ] } ], "message_length": 10 }
Testing
From the root repository directory run the following:
pytest -s tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sms-toolkit-1.0.2.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for sms_toolkit-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23dbd70103ca6ed13cb6ae46e44bce85a256b627dd884a910fd92da6eb7e28c4 |
|
MD5 | 36b44475bfe3958f08963836f15b49e6 |
|
BLAKE2b-256 | 20dcfad71320e96626843678ecf4d224411f02a4a59c487d455544ee4a44b592 |