A broker server for sending SMS.
Project description
Installation :pick:
apt install python3-venv -y
mkdir -p /opt/sms-broker
python3 -m venv /opt/sms-broker
source /opt/sms-broker/bin/activate
pip install sms-broker
ln /opt/sms-broker/bin/sms-broker /usr/bin/sms-broker
deactivate
# setup settings.json in /opt/sms-broker
sms-broker init-db
echo """[Unit]
Description=SMS Broker - Listener - Responsible for receiving SMS as well as for the general API and UI.
After=multi-user.target
[Service]
Type=simple
Restart=always
WorkingDirectory=/opt/sms-broker
ExecStart=/opt/sms-broker/bin/sms-broker listener
[Install]
WantedBy=multi-user.target""" > /etc/systemd/system/sms-broker-listener.service
echo """[Unit]
Description=SMS Broker - Worker - Responsible for processing SMS and database cleanup processes.
After=multi-user.target
[Service]
Type=simple
Restart=always
WorkingDirectory=/opt/sms-broker
ExecStart=/opt/sms-broker/bin/sms-broker worker
[Install]
WantedBy=multi-user.target""" > /etc/systemd/system/sms-broker-worker.service
systemctl daemon-reload
systemctl enable sms-broker-listener.service
systemctl enable sms-broker-worker.service
systemctl start sms-broker-listener.service
systemctl start sms-broker-worker.service
Update :hourglass_flowing_sand:
source /opt/sms-broker/bin/activate
pip install -U sms-broker
deactivate
Debug :gear:
systemctl stop sms-broker-listener.service
systemctl stop sms-broker-worker.service
sms-broker listener # Or sms-broker worker
systemctl start sms-broker-listener.service
systemctl start sms-broker-worker.service
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 sms_broker-3.3.0.tar.gz.
File metadata
- Download URL: sms_broker-3.3.0.tar.gz
- Upload date:
- Size: 245.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa328d18a466be84648bc4f5c11bf9fe6d24a7733826e050da8e39b5887cdea0
|
|
| MD5 |
ca9cf520d4470b4f72bae2bac2803517
|
|
| BLAKE2b-256 |
70cc56fedb57a1f149fe05b8b5741b275528be66c275c47c0cfe33faa1efcf96
|
Provenance
The following attestation bundles were made for sms_broker-3.3.0.tar.gz:
Publisher:
build_and_publish.yml on JuliusKoenig/sms-broker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sms_broker-3.3.0.tar.gz -
Subject digest:
aa328d18a466be84648bc4f5c11bf9fe6d24a7733826e050da8e39b5887cdea0 - Sigstore transparency entry: 244665905
- Sigstore integration time:
-
Permalink:
JuliusKoenig/sms-broker@315f6fbbc447c5b352a67318d4ece464ef9f1e84 -
Branch / Tag:
refs/tags/release/v3.3.0 - Owner: https://github.com/JuliusKoenig
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@315f6fbbc447c5b352a67318d4ece464ef9f1e84 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sms_broker-3.3.0-py3-none-any.whl.
File metadata
- Download URL: sms_broker-3.3.0-py3-none-any.whl
- Upload date:
- Size: 257.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9885967a783cabcb23d63ff96eca24c6e0255290db5f2cae9d9a30362a6df98
|
|
| MD5 |
dca714a1ba1af7c31edb0ec4c8c1753b
|
|
| BLAKE2b-256 |
5d26da4fe38c5182f94a4d2b75ceea7925282210a880a7b16e6be6fba3009c82
|
Provenance
The following attestation bundles were made for sms_broker-3.3.0-py3-none-any.whl:
Publisher:
build_and_publish.yml on JuliusKoenig/sms-broker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sms_broker-3.3.0-py3-none-any.whl -
Subject digest:
d9885967a783cabcb23d63ff96eca24c6e0255290db5f2cae9d9a30362a6df98 - Sigstore transparency entry: 244665910
- Sigstore integration time:
-
Permalink:
JuliusKoenig/sms-broker@315f6fbbc447c5b352a67318d4ece464ef9f1e84 -
Branch / Tag:
refs/tags/release/v3.3.0 - Owner: https://github.com/JuliusKoenig
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@315f6fbbc447c5b352a67318d4ece464ef9f1e84 -
Trigger Event:
release
-
Statement type: