A unified interface for programmatically sending and receiving text messages in across different platforms.
Project description
Text Message Interfaces
Provides a unified interface for programmatically sending and receiving text messages in across different platforms.
Installation
pip install text-message-interfaces
Usage
from text_message_interfaces import MessageInterface, Meshtastic
from threading import Event
def handle_message(message, sender, interface: MessageInterface):
print(f"{sender}: {message}")
interface.send_message(f"Recieved: \"{message}\"", sender)
interface: MessageInterface = Meshtastic()
interface.add_message_handler(handle_message)
try:
Event().wait()
except KeyboardInterrupt:
print("stopping...")
interface.close()
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
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 text_message_interfaces-0.0.3.tar.gz.
File metadata
- Download URL: text_message_interfaces-0.0.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3606f0bfb747386c869cb1398bad7d3a27938f5e0a044f0e8ee9ffc147da036b
|
|
| MD5 |
813b4885f3f20eab7f5bc5e75b35424f
|
|
| BLAKE2b-256 |
bb9102beccb69f4f4a7b1bcbb421b2dbe25155c7a2e07a7a26d0e01579e25602
|
File details
Details for the file text_message_interfaces-0.0.3-py3-none-any.whl.
File metadata
- Download URL: text_message_interfaces-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b38da627b908b08eb7a2fb5a11591771aead119058166908e6c14acf17ce015f
|
|
| MD5 |
a44ac40cd2f46314af72d865dcb82b47
|
|
| BLAKE2b-256 |
b2fbb284fc6e3f54d2a1d774e70cc4f0744345a0b7ddaa749f5cee47faa193ba
|