Python client for `signal-cli-rest-api`
Project description
pysignalbot
Simple yet powerful library to work with signal-cli-rest-api. It supports both sync and async modes of origin Docker container, providing supplying API.
import asyncio
from pysignalbot import Bot
bot = Bot("localhost:8080", mode=Bot.Mode.JSON_RPC)
@bot.handler
def on_message(msg):
logging.info(msg)
async def main():
accounts = bot.accounts()
for account in accounts:
await bot.fetch(account)
if __name__ in {"__main__", "__mp_main__"}:
logging.basicConfig(level=logging.DEBUG)
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.1.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for pysignalbot-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0572027485f9a4c47f56e3311bb45e60e5cbbd9595e34f7946093b4cfafbe9 |
|
MD5 | 85684c06730e3f8e87301de80ff66002 |
|
BLAKE2b-256 | f9854f28c1a05090124178ecbeba7694a82b9bd62f07797839d0835b143dee8d |