No project description provided
Project description
signal-cli-rest-api
signal-cli-rest-api is a wrapper around signal-cli and allows you to interact with it through http requests.
Features
- register/verify/unregister a number
- send messages to multiple users/a group with one or multiple attachments
- receive messages (with attachments)
- block/unblock users and groups
- link to existing device
- list/create/update/leave groups
- update profile (name/avatar)
To-Do
- integrate dbus daemon for faster sending
- authentication
Installation
pip
If you install signal-cli-rest-api through pip you need to manually install signal-cli on your system.
# by default the app will look for the signal config files in ~/.local/share/signal-cli
# you can change the directory by setting the SIGNAL_CONFIG_PATH env var to the desired path
# e.g. export SIGNAL_CONFIG_PATH=/opt/signal
pip install signal-cli-rest-api
uvicorn signal_cli_rest_api.app.main:app --host 0.0.0.0 --port 8000
Docker
export SIGNAL_DATA_DIR=~/signal/
docker run --name signal --restart unless-stopped -p 8000:8000 -v $SIGNAL_DATA_DIR:/root/.local/share/signal-cli sebastiannoelluebke/signal-cli-rest-api
docker-compose
git clone https://github.com/SebastianLuebke/signal-cli-rest-api.git
cd signal-cli-rest-api
# docker-compose build
docker-compose up -d
Security Notice
signal-cli-rest-api doesn't have any authentication for now. Everyone who knows the service address+port and the number is able to get your messages and send messages. So only use it a trusted environment and block external access.
Interactive Documentation
After installing signal-cli-rest-api start it and open the following page http://localhost:8000/docs
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
Close
Hashes for signal-cli-rest-api-0.1.94.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f8b7d461ef74725321ba225f367bcdfc4e3c0079bd116b24b616db942b7af23 |
|
MD5 | b13467d9320f1f3cca0a9cd70b5f0bcc |
|
BLAKE2b-256 | f10abff0d3c6b7e1520753e030fa6f4873e0ac0360e3e707eadd23354cf8fb8b |
Close
Hashes for signal_cli_rest_api-0.1.94-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ede29dbcbc4172a499a1ac5ca10fc4122cde76aff31dc3cf424ece26bded6d94 |
|
MD5 | 68164c8fb3e717aabdae4e417aa69d45 |
|
BLAKE2b-256 | 192e42609c6872ba91bdbff76538631ea3b140e97d6fb404df1d8d5b32e28a2e |