Python bindings for signald
Project description
Signald python bindings
Most of the content here is generated by util/generate_api.py that uses
the output of the 'protocol' request of the signald API.
Since this output is incomplete, a few manual additions are present in pysignald_async/api.py.
Install
pip install pysignald-async
Usage
An example can be found in this signal/XMPP gateway.
import asyncio
from pysignald_async import SignaldAPI
async def main():
loop = asyncio.get_running_loop()
_, signald = await loop.create_unix_connection(
SignaldAPI, path=SIGNALD_SOCKET_PATH)
await signald.register(username="+XXXXXX")
# Some async code to get the SMS code
await signald.verify(username="+XXXXXX", code=code)
await signald.on_con_lost
SIGNALD_SOCKET_PATH = "/var/run/signald/signald.sock"
asyncio.run(main())
TODO: Write a better README
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysignald-async-0.1.8.tar.gz.
File metadata
- Download URL: pysignald-async-0.1.8.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/4.19.0-14-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9818ecb9db3325ca1845a4c8146c7cdfe79186c99e13a16a4696d280043a4877
|
|
| MD5 |
d808bec2025ca2009a60fa34613d83e8
|
|
| BLAKE2b-256 |
31e53e4634882053d0dfca45ec7689b534713076ab9f7e486f527fe321f9db5c
|
File details
Details for the file pysignald_async-0.1.8-py3-none-any.whl.
File metadata
- Download URL: pysignald_async-0.1.8-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.7.3 Linux/4.19.0-14-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8aee901c87b20d2771824e243a545e0c9d56bdd6d7fa37e2c707d5b5adc9b79
|
|
| MD5 |
a4dc9f96f7dd3b1c1da258e811584731
|
|
| BLAKE2b-256 |
be3c5db263238263ab15dd1deed6a749d251507e0d432e1146a78a0ae3e607a3
|