Service for sending SMS.
Project based on Quart and uses Trio async implementation.
For sending messages uses SMSc.
Python version required: 3.7+
- Recomended use venv or virtualenv for better isolation.
Venv setup example:
python3 -m venv myenv
source myenv/bin/activate
- Install requirements:
pip3 install -r requirements.txt
(alternatively try addsudo
before command)
-
Add to your environment some variables:
SMS_LOGIN
- SMSc api login
SMS_PASS
- SMSc api password
REDIS_HOST
- Redis host
REDIS_PORT
- Redis port
REDIS_PASS
- Redis password
DEBUG_SENDER
- Set if you want see debug messages -
Run
python3 server.py
and open on your browser127.0.0.1:5000
The code is written for educational purposes. Training course for web-developers - DVMN.org