https://github.com/alvinmurimi/pygsm7
Python3 package that provides functions for encoding and decoding messages using GSM 7-bit encoding
https://github.com/alvinmurimi/pygsm7
gsm gsm7 gsm7bit sms telecommunications
Last synced: 2 months ago
JSON representation
Python3 package that provides functions for encoding and decoding messages using GSM 7-bit encoding
- Host: GitHub
- URL: https://github.com/alvinmurimi/pygsm7
- Owner: alvinmurimi
- License: mit
- Created: 2023-10-26T17:09:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-15T07:58:23.000Z (5 months ago)
- Last Synced: 2025-03-21T05:46:22.246Z (3 months ago)
- Topics: gsm, gsm7, gsm7bit, sms, telecommunications
- Language: Python
- Homepage: https://pypi.org/project/pygsm7
- Size: 19.5 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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`:
```bash
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](./CONTRIBUTING.md)### Security Vulnerabilities
If you discover any security vulnerability, please send an e-mail to [email protected].### License
This package is open-source software licensed under the [MIT license](LICENSE.md).