Skip to main content

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

Project description

Stand With Ukraine

pysignalapi

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 pysignalapi import JsonRPCAPI, Message

api = JsonRPCAPI("localhost:8080")

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

async def main():
    accounts = api.get_accounts()
    for account in accounts:
        await api.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

pysignalapi-0.2.7.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

pysignalapi-0.2.7-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pysignalapi-0.2.7.tar.gz.

File metadata

  • Download URL: pysignalapi-0.2.7.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pysignalapi-0.2.7.tar.gz
Algorithm Hash digest
SHA256 158ccd26f2382f2b7c4af91bc15b4bdaa92644bab61394a1d74a3b8190c9dac5
MD5 4f2a606ca4417191f9dc35e2ab5a2251
BLAKE2b-256 9c062d2c007dca54af6c6f566bde984e7f197ff326c757ea6a57e7531b3e39b1

See more details on using hashes here.

File details

Details for the file pysignalapi-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: pysignalapi-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pysignalapi-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0bf4ac6096d1b340bb54b5d66a697c2ad08a3cab98952e4ba92fcf01f37286da
MD5 6ac04b2bf1fdf0ca1c6dfeaba0ef2424
BLAKE2b-256 2b46e7fe99f82c5a6b73bac85487107cc466df8d4162106ae22b0125f8d28935

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