Skip to main content

Web App Serving as an SMS Gateway based on Gammu

Project description

SMS Gateway API

This repository contains a Python web application providing an API for sending SMS. The SMS sending is based on python-gammu. Some concepts used for implementing this application are borrowed from vvanholl/smsgateway-gammu.

Usage

PIP

First install sms-gateway using PIP:

$ pip install sms-gateway

Then run the application and provide the device name, the PIN and a token used to authenticate against the API. For further options see Options.

$ sms-gateway --device /dev/ttyUSB1 --pin 1234 --token ABCD1234

Docker

You can also run the web app via Docker:

$ docker run --device=/dev/ttyUSB1:/dev/modem -p 8000:8000 joneug/sms-gateway --pin 1234 --token ABCD1234

Alternatively you can use docker-compose:

version: '3'
services:
  sms-gateway:
    image: joneug/sms-gateway
    environment:
      - "SG_PIN=1234"
      - "SG_TOKEN=ABCD1234"
    devices:
      - /dev/ttyUSB1:/dev/modem

Options

TODO

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-gateway-0.1.9.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

sms_gateway-0.1.9-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file sms-gateway-0.1.9.tar.gz.

File metadata

  • Download URL: sms-gateway-0.1.9.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for sms-gateway-0.1.9.tar.gz
Algorithm Hash digest
SHA256 a8addd774de44c0e1d061d7472ac3ae48bc0482c7ca044cd3db4c41814dc9ea3
MD5 d04b31548bd2d28007a99ec188e78a8d
BLAKE2b-256 87e156122aaa24523b7de4561dfd10bce1c59639826d79e41083694da613a5bb

See more details on using hashes here.

File details

Details for the file sms_gateway-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: sms_gateway-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for sms_gateway-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b6ee9be4fc55368615bf4a7a6829c3324df2f12426a3a1c377b4da0c44bff4bf
MD5 aa8b07d6cff40f9368d42627fd257cfc
BLAKE2b-256 d39ae6d3fbe12b2e8616e2bfe384ad41bd6dae12cf5ac126b32fe65aac28a070

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page