Skip to main content

Framework to create your own Signal bots

Project description

Signal Bot Framework

PyPI Downloads Version License CI codecov

Python package to build your own Signal bots.

[!IMPORTANT] Signalbot v2 is being developed at https://github.com/signalbot-org/signalbot/tree/v2.0. Feedback on the direction is welcomed in https://github.com/signalbot-org/signalbot/issues/234

Installation

See the getting started section in the documentation.

Minimal bot

This is what a minimal bot using signalbot looks like:

import os
import logging
from signalbot import SignalBot, Config, Command, Context, triggered, enable_console_logging


class PingCommand(Command):
    @triggered("Ping")
    async def handle(self, context: Context) -> None:
        await context.send("Pong")


if __name__ == "__main__":
    enable_console_logging(logging.INFO)

    bot = SignalBot(
        Config(
            signal_service=os.environ["SIGNAL_SERVICE"],
            phone_number=os.environ["PHONE_NUMBER"],
        )
    )
    bot.register(PingCommand()) # Run the command for all contacts and groups
    bot.start()

Help

See the documentation for more details.

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

signalbot-1.2.2.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

signalbot-1.2.2-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file signalbot-1.2.2.tar.gz.

File metadata

  • Download URL: signalbot-1.2.2.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for signalbot-1.2.2.tar.gz
Algorithm Hash digest
SHA256 8295f6863b247bc9686b8bcdc79570bcebcb4b4146369076637d2290815ed1eb
MD5 c9476f86e51e88ac81fee4b41752cace
BLAKE2b-256 13b3d584939e525ce63b9cf8b8d0ed899646324cbe536827da11fd04028152a4

See more details on using hashes here.

File details

Details for the file signalbot-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: signalbot-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for signalbot-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f805455ddd71c9d2e5e43b6aaf98a36fb483484f500baac665adf6277c19ef4
MD5 d7a8f7ede145f0c0064b7002f86eac27
BLAKE2b-256 1dfa934c7d047dc097c03a4b039a8911c9df3a0c631a190197c61a16e292d18d

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