Package gammu
[hide private]
[frames] | no frames]

Source Code for Package gammu

 1  # -*- coding: UTF-8 -*- 
 2  # vim: expandtab sw=4 ts=4 sts=4: 
 3  ''' 
 4  Phone communication libary - python wrapper for Gammu library. 
 5   
 6  This module wraps all python-gammu functionality. Core library is 
 7  named L{gammu._gammu} and all of it's content is automatically 
 8  imported also into this gammu module, so you can use both 
 9  L{gammu.StateMachine} or L{gammu._gammu.StateMachine}. 
10  ''' 
11  __author__ = 'Michal Čihař' 
12  __email__ = 'michal@cihar.com' 
13  __license__ = ''' 
14  Copyright © 2003 - 2010 Michal Čihař 
15   
16  This program is free software; you can redistribute it and/or modify it 
17  under the terms of the GNU General Public License version 2 as published by 
18  the Free Software Foundation. 
19   
20  This program is distributed in the hope that it will be useful, but WITHOUT 
21  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
22  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 
23  more details. 
24   
25  You should have received a copy of the GNU General Public License along with 
26  this program; if not, write to the Free Software Foundation, Inc., 
27  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
28  ''' 
29   
30  # Submodules 
31  __all__ = [ 
32      'Data', 
33      'Worker', 
34      'SMSD', 
35      'StateMachine' 
36      ] 
37   
38  # Conveniency and backward compatibility import 
39  from gammu._gammu import * 
40   
41  import gammu._gammu 
42  __version__ = 'Gammu %s, python-gammu %s' % ( 
43          gammu._gammu.Version()[0], 
44          gammu._gammu.Version()[1] 
45          ) 
46