Python bindings for signald
Project description
Most of the content here is generated by the generate.py script that uses https://signald.org/protocol.json. The point in to use
Install
pip install pysignald-async
Have signald running. See their docs <https://signald.org/articles/install/> about it.
Usage
Example: registration
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())
Docs are available on readthedocs.
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
pysignald-async-0.1.11.tar.gz
(17.1 kB
view hashes)
Built Distribution
Close
Hashes for pysignald_async-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e087c5ca33812131dfc03c4389a5d768ec457dc056990fd31588c6637f8faedc |
|
MD5 | ce788695c692db20afa3b3d159345448 |
|
BLAKE2b-256 | 8fcf85d0e8f4256ab5e8d26135a44b093c84ba9b76b91d8f56f8b81f55fd04af |