skip to navigation
skip to content

Not Logged In

smstrade 0.1

a Python library and command line tool to send SMS via the smstrade service.

Latest Version: 0.2.3

About smstrade

Smstrade is a Python library that can be used to send SMS via the service of smstrade.eu.

The http(s) API is documented at http://www.smstrade.eu/pdf/SMS-Gateway_HTTP_API_v2_en.pdf.

Installation

You can either install smstrade from the Python Package Index PyPI or from the Git repository.

To install from PyPI you may use pip:

pip install smstrade

To install from Git you need to clone the repository and run setup.py:

git clone https://git.gitorious.org/python-smstrade/python-smstrade.git
cd python-smstrade
python setup.py develop

Note

Be aware that you need write access to you Python installation to perform the last step above. You may also use a virtualenv environment to run a sandboxed version of smstrade.

Usage

You may either use the API:

import smstrade

api = smstrade.SMSTrade()
api.key = 'yourkey'
api.send_sms(['00491701234567'], 'Test message')

or the command line tool:

smstrade_send --key yourkey 00491701234567 'Test message'

You get help for the command line tool by running:

smstrade_send -h

You can place all the configuration values into a ini file. See examples/smstrade.ini for an example. Before you really send SMS messages you need to put debug = False in your smstrade.ini.

The file smstrade.ini is searched in system dependent paths as well as in the current directory. The search path is printed when invoking smstrade_send -h together with the description of the --config parameter.

License

Copyright (c) 2014 Jan Dittberner

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Changes

Release 0.1 (2014-02-20)

 
File Type Py Version Uploaded on Size
smstrade-0.1-py27-none-any.whl (md5, pgp) Python Wheel 2.7 2014-02-20 12KB
smstrade-0.1.tar.gz (md5, pgp) Source 2014-02-20 11KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 180 downloads in the last week
  • 950 downloads in the last month