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

A Python interface to the [PSWinCom SMS Gateway](http://pswin.com/english/products/gateway).

Installation

The pswinpy package is distributed through PyPI as both egg, Windows and source. THIS IS NOT YET TRUE!!

Basic Usage

To use this package, you will need sign up for a Gateway account with PSWinCom. Demo account are available.

This piece of code demonstrates how to send a simple SMS message:

from pswinpy import API api = API(“myUsername”, “myPassword”) api.sendSms(4712345678, “Strange women lying in ponds distributing swords is no basis for a system of government!”)

Properties

Receiver and message text are the two mandatory properties when sending a message. You may specify additional properties by using named arguments.

For instance this is how you would specify a sender:

api.sendSms(4712345678, “It’s just a flesh wound.”, sender=”BlackKnight”)

Properties currently supported are:

  • sender
  • TTL - time to live in minutes
  • tariff - the amount (in local currency as cents/”ører”) to charge the receiver
  • serviceCode - service code for sending GAS messages. Requires that tariff is set. See [wiki](http://wiki.pswin.com/CPA-Goods-and-Services.ashx) for details.
  • deliveryTime - a datetime object specifying when to send the message

Specifying Host

The package is set to use a particular PSWinCom SMS Gateway by default. The host can be changed globaly by setting the host class property on HttpSender:

HttpSender.host = “some.other.host.com”

Modes

For testing purposes the API provides a couple of modes you can set globally to control how the library works.

Mode.test = True

License

This code is free to use under the terms of the MIT license.

Release History

Release History

0.0.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

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
pswinpy-0.0.1-py2.5.egg (7.8 kB) Copy SHA256 Checksum SHA256 2.5 Egg May 5, 2011
pswinpy-0.0.1.win32-py2.5.exe (68.5 kB) Copy SHA256 Checksum SHA256 2.5 Windows Installer May 5, 2011
pswinpy-0.0.1.zip (6.6 kB) Copy SHA256 Checksum SHA256 Source May 5, 2011

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