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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pysignalbot-0.2.0.tar.gz.

File metadata

  • Download URL: pysignalbot-0.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for pysignalbot-0.2.0.tar.gz
Algorithm Hash digest
SHA256 82462ecab8aaea943dae39bce6dc2b4a9966b24499b2335183d159b952070e04
MD5 d4414ee98379b65b9fd02b1a97b0069d
BLAKE2b-256 f25cd095dcf695256954e3d5d721fa2ab2d56f70fc9dc1c727fdc60bf7d7ff39

See more details on using hashes here.

File details

Details for the file pysignalbot-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pysignalbot-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for pysignalbot-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbf7548b22d2b945b919e1d46a215ba3351899db3d89b8ab2555e65deb9f8b7b
MD5 a3e91ad97d39e5dd7026b5643a5196a6
BLAKE2b-256 23f280a55fd0ddf6c2c5c01baca03a98166df55ec7a176fd34e55008713bc902

See more details on using hashes here.

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