PDU Converter: SMS PDU encoding and decoding, including GSM-0338 character set, support Python 3
Project description
PDU Converter Package
About this Package
- This library will help you to encode and decode raw SMS data
- Support 7-bit, 8-bit, 16-bit
- Requires Python 3.6 or better
How to use (Encode and Decode)
Example to number 0123456789 with message Chào thế giới
>>> import smspdu, time
>>> p = smspdu.SMS_DELIVER.create('0123456789', '987654321', 'Chào thế giới', datestamp=time.time(), tp_sri=1, tp_mms=0)
>>> print(p.toPDU())
200A8110325476980008122182514023001A0043006800E0006F0020007400681EBF0020006700691EDB0069
>>> s = smspdu.SMS_DELIVER.fromPDU(p.toPDU(), '0123456789')
>>> print("s.tp_address: " + s.tp_address)
>>> print("s.tp_scts: " + s.tp_scts)
>>> print("s.user_data: " + s.user_data)
s.tp_address: 0123456789
s.tp_scts: 21122815043200
s.user_data: Chào thế giới
This is upgrade version. The original from smspdu 1.0
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
pdusmsconverter-1.0.tar.gz
(31.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdusmsconverter-1.0.tar.gz.
File metadata
- Download URL: pdusmsconverter-1.0.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1d7a16665b49f107114ec37c74183ee9140aec9d7b7b432c240384822b10f91
|
|
| MD5 |
05aff3ca2fdf4c3b44afd870520e0efa
|
|
| BLAKE2b-256 |
d78541b80232936c91af64fc876216b255b9653b581cd6036bf0b590c95b4074
|
File details
Details for the file pdusmsconverter-1.0-py3-none-any.whl.
File metadata
- Download URL: pdusmsconverter-1.0-py3-none-any.whl
- Upload date:
- Size: 36.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7b6803239bf31e6df310d55cad01d5bb400c20281e57e374fc8bcb254546b22
|
|
| MD5 |
dae2e7ef00a2c279fad2474566de6a3d
|
|
| BLAKE2b-256 |
3f37b6714ebdd752dfee742ac130e26251d46a271edc46b02ee4f4d881ebc427
|