Skip to main content

A broker server for sending SMS.

Project description

image

A broker server for sending SMS.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sms_broker-3.3.0.tar.gz (245.6 kB view details)

Uploaded Source

Built Distribution

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

sms_broker-3.3.0-py3-none-any.whl (257.0 kB view details)

Uploaded Python 3

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

Hashes for sms_broker-3.3.0.tar.gz
Algorithm Hash digest
SHA256 aa328d18a466be84648bc4f5c11bf9fe6d24a7733826e050da8e39b5887cdea0
MD5 ca9cf520d4470b4f72bae2bac2803517
BLAKE2b-256 70cc56fedb57a1f149fe05b8b5741b275528be66c275c47c0cfe33faa1efcf96

See more details on using hashes here.

Provenance

The following attestation bundles were made for sms_broker-3.3.0.tar.gz:

Publisher: build_and_publish.yml on JuliusKoenig/sms-broker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sms_broker-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9885967a783cabcb23d63ff96eca24c6e0255290db5f2cae9d9a30362a6df98
MD5 dca714a1ba1af7c31edb0ec4c8c1753b
BLAKE2b-256 5d26da4fe38c5182f94a4d2b75ceea7925282210a880a7b16e6be6fba3009c82

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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