Signal Bot Framework
Python package to build your own Signal bots.
Installation
See the getting started section in the documentation.
Minimal bot
This is what a minimal bot using signalbot looks like:
import logging
import os
from signalbot import (
Config,
DataMessageContext,
DataMessageHandler,
SendMessage,
SignalBot,
text_triggered,
)
class PingCommand(DataMessageHandler):
@text_triggered("Ping")
async def handle_data_message(self, context: DataMessageContext) -> None:
await context.send(SendMessage(text="Pong"))
if __name__ == "__main__":
bot = SignalBot(
Config(
phone_number=os.environ["PHONE_NUMBER"],
logging_level=logging.INFO,
)
)
bot.register(PingCommand())
bot.start()
Help
See the documentation for more details.
Release files for signalbot 2.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| signalbot-2.0.2.tar.gz | 63.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| signalbot-2.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 199.7 kB
Release files / signalbot-2.0.2.tar.gz
| Download URL | signalbot-2.0.2.tar.gz |
|---|---|
| Size | 63.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13f76f61053e10775bf114b67a32ebd5d5267a48bddfdb270f953c391d82b11c
|
|
BLAKE2b-256 checksum How to use checksums |
0828a1f40b5830e093cef399b5409e2decd7be73aca600ece99c41315a04f98b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / signalbot-2.0.2-py3-none-any.whl
| Download URL | signalbot-2.0.2-py3-none-any.whl |
|---|---|
| Size | 136.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3bcc13aa9a789dd928eabf7648b0670f56fe10c193d767e02a94b1f5657a20ce
|
|
BLAKE2b-256 checksum How to use checksums |
ea322ff0bc8fecd80c08076708c3f025dc43a13d2efc37e97936407ed22d0fb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|