This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

smssluzba-api is API for sending SMS via sms.sluzba.cz HTTP service. It allows you to send SMS (short text messages) from python applications. In order to use this API you have to register to http://sms.sluzba.cz/ service. There is restriction on sms.sluzba.cz that will block your account after several invalid login attempts. Length of one SMS is restricted to 459 characters.

Note

There is known bug in authentication in post API making it unable to authenticate properly. sms.sluzba.cz service is working on resolving this issue.

Requirements

  • python 2.7+

Installation

Install via pip or copy this module into your project or into your PYTHON_PATH.

$ pip install smssluzbacz-api

Examples

Example 1

Using lite API

from smssluzbacz_api.lite import SmsGateApi

api = SmsGateApi('login', 'password', timeout=2, use_ssl=True)
api.send('123456789', 'my SMS message', use_post=True)

Example 2

Using post API

from smssluzbacz_api.post import SmsGateApi

api = SmsGateApi('login', 'password', timeout=2, use_ssl=True)
api.send('123456789', 'my SMS message')

Tests

Tested on environment

  • Xubuntu Linux 12.04.02 LTS precise 64-bit
  • python 2.7.3
  • python unittest
  • mock

Running tests

To run the unit tests, first install tests_require dependencies from setup.py, then run command:

$ python test.py
$ python setup.py test

Running integration tests for lite API

To run integration tests for lite API run command:

$ python integration_test_lite.py <login> <password> <tel_number>

To list all command line options run command:

$ python integration_test_lite.py --help

Running integration tests for post API

To run integration tests for post API run command:

$ python integration_test_post.py <login> <password> <tel_number>

To list all command line options run command:

$ python integration_test_post.py --help

Authors

Jozef Sevcik, CodeScale s.r.o.
char0n (Vladimir Gorej, CodeScale s.r.o.)
Release History

Release History

1.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.9

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
smssluzbacz-api-1.1.tar.gz (112.6 kB) Copy SHA256 Checksum SHA256 Source May 14, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting