Skip to main content

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

Usage

Sending SMS

You may either use the API for SMS sending:

import smstrade

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

or do the same with the command line tool:

smstrade_send --key yourkey 00491701234567 'Test message'

You get help for the command line tool by running:

smstrade_send -h

Getting the account balance

Use the API for getting your account balance:

import smstrade

api = smstrade.SMSTradeBalanceAPI()
api.key = 'yourkey'
balance = api.get_balance()

or do the same with the command line tool:

smstrade_balance --key yourkey

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.2.4 (2014-06-04)

  • add Python3 support

Release 0.2.3 (2014-02-22)

  • exclude tests in setup.py’s find_packages

Release 0.2.2 (2014-02-22)

  • include missing LICENSE and version.txt files in MANIFEST.in

Release 0.2.1 (2014-02-21)

  • fix typo, use dlr instead of dir

  • improve tests

Release 0.2 (2014-02-20)

  • add support for account balance request

Release 0.1 (2014-02-20)

Release files for smstrade 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smstrade 0.2.4
File Size Uploaded
smstrade-0.2.4.tar.gz 13.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for smstrade 0.2.4
File Interpreter ABI Platform
smstrade-0.2.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 25.2 kB

Release files / smstrade-0.2.4.tar.gz

Download URL smstrade-0.2.4.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c8b1f0d3c4ecd346598297c481b511e475232b3bbc79f40e4cf3c672fafc8150
BLAKE2b-256 checksum
How to use checksums
ae8e360a0f11c8b9200dbbfc361ffc2d364cfc54830d48b005ee6512c92f7be0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / smstrade-0.2.4-py2.py3-none-any.whl

Download URL smstrade-0.2.4-py2.py3-none-any.whl
Size 11.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b1991559027e179f96e290283f6f321d914989fce1e0c8146fc79649b96293c3
BLAKE2b-256 checksum
How to use checksums
9e83252dbcf419532af5f3e50f9ee883c5ff4406cff954f5131d9a364fd86fb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page