Skip to main content

PSWinCom Python Package

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.

Metadata

Release files for pswinpy 0.0.1

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

Source distribution (sdist)

Source distribution for pswinpy 0.0.1
File Size Uploaded Provenance Actions
pswinpy-0.0.1.zip 6.6 kB Without provenance Details for pswinpy-0.0.1.zip

Built distributions (wheels)

Table of built distributions (wheels) for pswinpy 0.0.1
File Interpreter ABI Platform Actions
pswinpy-0.0.1.win32-py2.5.exe Details for pswinpy-0.0.1.win32-py2.5.exe
pswinpy-0.0.1-py2.5.egg Legacy Egg format - - Details for pswinpy-0.0.1-py2.5.egg

Total release size: 82.9 kB

Release files / pswinpy-0.0.1.zip

Download URL pswinpy-0.0.1.zip
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
90bbe8316cc107473eef0764535b549595f37281b8f055fefd6be72f29091ede
BLAKE2b-256 checksum
How to use checksums
1e10f61d26f7335af659bfce66bba4a0d726d4ff7c63484b9b886eb7855d83fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pswinpy-0.0.1.win32-py2.5.exe

Download URL pswinpy-0.0.1.win32-py2.5.exe
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
21eeb524ce8eb4b412dc0b2b11388a63e85f9717806f455a8121c7700053bd23
BLAKE2b-256 checksum
How to use checksums
60cea9c6406ef6b6f1d88ce9c0e0fed301869c7adade9e8b4eca74b0b2039dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pswinpy-0.0.1-py2.5.egg

Download URL pswinpy-0.0.1-py2.5.egg
Size 7.8 kB
Tags Egg
SHA-256 checksum
How to use checksums
73b2e6433cdc507de94e9d8df1d99b3d4a186f242a506ebbfd1b2d13aca42bb3
BLAKE2b-256 checksum
How to use checksums
3ad0d6532e2228cf45d8477de016251026dd8422b7172f5f332122d238932dd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pswinpy 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files No provenance

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