Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text_message_interfaces-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

text_message_interfaces-0.0.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for text_message_interfaces-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3606f0bfb747386c869cb1398bad7d3a27938f5e0a044f0e8ee9ffc147da036b
MD5 813b4885f3f20eab7f5bc5e75b35424f
BLAKE2b-256 bb9102beccb69f4f4a7b1bcbb421b2dbe25155c7a2e07a7a26d0e01579e25602

See more details on using hashes here.

File details

Details for the file text_message_interfaces-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for text_message_interfaces-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b38da627b908b08eb7a2fb5a11591771aead119058166908e6c14acf17ce015f
MD5 a44ac40cd2f46314af72d865dcb82b47
BLAKE2b-256 b2fbb284fc6e3f54d2a1d774e70cc4f0744345a0b7ddaa749f5cee47faa193ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page