A Python wrapper around the SMS gateway from CPSMS .
Go to file
Mikkel Munch Mortensen 6420575545 Do a bit of housekeeping
- Switch from setup.py to pyproject.toml
- Make README markdown based.
- Bump version.
2024-08-22 08:45:26 +02:00
cpsms Allow zeroes in phone number validation 2022-01-13 09:45:12 +01:00
.gitignore Update .gitignore 2021-09-02 16:08:56 +02:00
COPYING.txt Adding extensions to COPYING and README files, to be nice to Windows people. 2015-03-24 19:17:50 +01:00
examples.py Update to work with current CPSMS API 2021-11-03 14:25:53 +01:00
MANIFEST.in Preparing for packaging. 2015-03-24 19:36:09 +01:00
pyproject.toml Do a bit of housekeeping 2024-08-22 08:45:26 +02:00
README.md Do a bit of housekeeping 2024-08-22 08:45:26 +02:00

cpsms

This is

A Python 3 wrapper around the SMS gateway from CPSMS https://www.cpsms.dk/.

This is not

Some sort of magic, free SMS gateway.

Installation

cpsms is available from PyPI. Easiest way to install is: pip install cpsms.

Requirements

You need to have a (paid) account at CPSMS to be able to use their gateway. They sell a fair, no-nonsense product which I'd recommend if you want to be able to send SMS from your code (primarily to Danish phones).

How to use

See a couple of example use cases in example.py that should have come along with this file. Apart from what is shown in examples.py, this also supports status callback URLs, delayed sending and flash messages.

Further information

For more info on parameters, have a look at the CPSMS API documentation.

I believe the gateway software running at the CPSMS server is some sort of standard product. This may be able to talk to other remote SMS gateways as well, and that's why I made it an option to specify another gateway base URL. If you know of any other compatible gateways, please let me know, and I'll list them in the README.