A broker server for sending SMS.
Project description
Installation :pick:
apt install python3-venv -y
mkdir -p /opt/kds-sms-server
python3 -m venv /opt/kds-sms-server
source /opt/kds-sms-server/bin/activate
pip install kds-sms-server
ln /opt/kds-sms-server/bin/kds-sms-server /usr/bin/kds-sms-server
deactivate
# setup settings.json in /opt/kds-sms-server
kds-sms-server 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/kds-sms-server
ExecStart=/opt/kds-sms-server/bin/kds-sms-server listener
[Install]
WantedBy=multi-user.target""" > /etc/systemd/system/kds-sms-server-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/kds-sms-server
ExecStart=/opt/kds-sms-server/bin/kds-sms-server worker
[Install]
WantedBy=multi-user.target""" > /etc/systemd/system/kds-sms-server-worker.service
systemctl daemon-reload
systemctl enable kds-sms-server-listener.service
systemctl enable kds-sms-server-worker.service
systemctl start kds-sms-server-listener.service
systemctl start kds-sms-server-worker.service
Update :hourglass_flowing_sand:
source /opt/kds-sms-server/bin/activate
pip install -U kds-sms-server
deactivate
Debug :gear:
systemctl stop kds-sms-server-listener.service
systemctl stop kds-sms-server-worker.service
kds-sms-server listener # Or kds-sms-server worker
systemctl start kds-sms-server-listener.service
systemctl start kds-sms-server-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 kds_sms_server-3.3.0.tar.gz.
File metadata
- Download URL: kds_sms_server-3.3.0.tar.gz
- Upload date:
- Size: 245.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e94e3142b25472e77e814377789f64dd06183a717f2c2b89fccc4ae174f0b68a
|
|
| MD5 |
d4d8b2d9fe6962cfc3eb490aaf3e082e
|
|
| BLAKE2b-256 |
e55ea3252f9efa0b45c4a3283aa0f895870f49964a97324f56239c31d7d965c1
|
Provenance
The following attestation bundles were made for kds_sms_server-3.3.0.tar.gz:
Publisher:
build_and_publish.yml on KDS-Erfurt/kds-sms-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kds_sms_server-3.3.0.tar.gz -
Subject digest:
e94e3142b25472e77e814377789f64dd06183a717f2c2b89fccc4ae174f0b68a - Sigstore transparency entry: 244680960
- Sigstore integration time:
-
Permalink:
KDS-Erfurt/kds-sms-server@6f3a97f9627af68f62a8b592810dba91e6c94780 -
Branch / Tag:
refs/tags/release/v3.3.0 - Owner: https://github.com/KDS-Erfurt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@6f3a97f9627af68f62a8b592810dba91e6c94780 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kds_sms_server-3.3.0-py3-none-any.whl.
File metadata
- Download URL: kds_sms_server-3.3.0-py3-none-any.whl
- Upload date:
- Size: 257.5 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 |
c832cda7d127a9b4cd8e2734069da6f0740e094970a8ece815acf7de1e8e60a0
|
|
| MD5 |
8f651fefb165f3c9b1883c397e80f129
|
|
| BLAKE2b-256 |
77faf36ff6b2f5f613fb50422d2ab8fd3ecdc8453bfd632f1bfc59fa638ce269
|
Provenance
The following attestation bundles were made for kds_sms_server-3.3.0-py3-none-any.whl:
Publisher:
build_and_publish.yml on KDS-Erfurt/kds-sms-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kds_sms_server-3.3.0-py3-none-any.whl -
Subject digest:
c832cda7d127a9b4cd8e2734069da6f0740e094970a8ece815acf7de1e8e60a0 - Sigstore transparency entry: 244680962
- Sigstore integration time:
-
Permalink:
KDS-Erfurt/kds-sms-server@6f3a97f9627af68f62a8b592810dba91e6c94780 -
Branch / Tag:
refs/tags/release/v3.3.0 - Owner: https://github.com/KDS-Erfurt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_and_publish.yml@6f3a97f9627af68f62a8b592810dba91e6c94780 -
Trigger Event:
release
-
Statement type: