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.2.tar.gz (2.4 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.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file text_message_interfaces-0.0.2.tar.gz.

File metadata

  • Download URL: text_message_interfaces-0.0.2.tar.gz
  • Upload date:
  • Size: 2.4 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.2.tar.gz
Algorithm Hash digest
SHA256 b45530d2e0446b3bd40f4b6a75d61e54c02bc03ff0ba398c4bf06e677c189df3
MD5 8bec55079611084d8307e3bd9fb6a2a8
BLAKE2b-256 4ed78ff51d81bbf89e6d76587149af1693fd4a8a9b0b10cd8e3e96a9bf61e984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for text_message_interfaces-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a8af4d14ea88b29faa50c9cf553a6f798a7989372449323534c0097a50da901
MD5 c00d20e78a30e83696de7cfd4d06fecf
BLAKE2b-256 f9e7aff335616edaf80ddde6d73d45c3a29687e70056e8464d1fe70cc202598e

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