GSM 7-bit Encoding and Decoding Module
Project description
PYGSM7
pygsm7 is a Python package that provides functions for encoding and decoding messages using GSM 7-bit encoding. It is designed to facilitate the processing of text messages in the context of SMS and mobile communication.
Features
- Encode text messages into GSM 7-bit format.
- Decode GSM 7-bit encoded messages into readable text.
- Handle special characters commonly used in text messages.
- Convert between Unicode and GSM 7-bit character sets.
Installation
You can install pygsm7 using pip
:
pip install pygsm7
Usage
Here's how to use pygsm7 in your Python code:
from pygsm7 import encodeMessage, decodeMessage
# Encoding a text message into GSM 7-bit format
encoded_message = encodeMessage("Hello, world!")
# Decoding a GSM 7-bit encoded message
decoded_message = decodeMessage(encoded_message)
print("Encoded Message:", encoded_message)
print("Decoded Message:", decoded_message)
GSM 7-bit Character Tables
This module includes predefined GSM 7-bit character tables and handling of special characters. You can customize the character tables and special characters to suit your needs.
Contributing
Pull requests and issues are welcome. Refer to CONTRIBUTING.md
Security Vulnerabilities
If you discover any security vulnerability, please send an e-mail to alvinmayende@gmail.com.
License
This package is open-source software licensed under the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pygsm7-1.0.4.tar.gz
.
File metadata
- Download URL: pygsm7-1.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e7ee1031b94bca84165cb37e3d6f9901b33d0e0cc9ac79b6d51c99ef3223d1e |
|
MD5 | 89da0b84bac9edd271db842159cbcae2 |
|
BLAKE2b-256 | 742205660daca182185e46b4996d0d7b8e77ced593ef081047cd0bffe4f94cbe |
File details
Details for the file pygsm7-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: pygsm7-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d528616bfc636ce0925ff4652cb22c11322957d507fd3659d77eab96c8386db7 |
|
MD5 | 12910956ef789d4b756b26aaf4cff1c5 |
|
BLAKE2b-256 | ed018d226beef2328106ae451123a00c248f520239c1234612f97544234b2cde |