-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
executable file
·40 lines (28 loc) · 1.11 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4
import tempfile
import os
"""
Pragmatic SMS (PSMS) is a simple and easy to setup library that let you write
Python SMS applications using an SMS modem or Kannel, enabling you to:
- send SMS to multiple persons
- respond automatically to incoming SMS
- set callback to react to the various stage of the life of an SMS:
incoming, outgoing, in error, etc.
PSMS focus on being simple:
- settings are in Python and most have sensible default
- transports are limited to the bare minium: a Gammu transport if you want
to set up your own modem, and a Kannel transport for bigger setup
- the smallest SMS application is a class with one method
What PSMS is not:
- A full featured SMS framework including models, map tools, GUI, all-in-one
(for something like this, see RapidSMS)
- A high performance SMS handler (for something like this, see Vumi)
"""
# create working dir
try:
os.mkdir(os.path.join(tempfile.gettempdir(),
'pragmatic_sms'))
except:
pass