Skip to main content

Python client for `signal-cli-rest-api`

Project description

Stand With Ukraine

pysignalbot

Simple yet powerful library to work with signal-cli-rest-api. It supports both sync and async modes of Docker container and intends to provide closest to origin API.

Example

import asyncio
from pysignalbot import JsonRPCBot, Message

bot = JsonRPCBot("localhost:8080")

@bot.handler
def on_message(msg: Message):
    print(msg)

async def main():
    accounts = bot.get_accounts()
    for account in accounts:
        await bot.receive(account)

if __name__ in {"__main__", "__mp_main__"}:
    asyncio.run(main())

Credits:

This project is heavily inspired by:

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

pysignalbot-0.2.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

pysignalbot-0.2.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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