~awuerl/blitzortung-python/master

« back to all changes in this revision

Viewing changes to blitzortung/__init__.py

  • Committer: Andreas Würl
  • Date: 2012-01-29 15:34:23 UTC
  • Revision ID: git-v1:cdca5487c8322e426d0859349fa52643e0a47019
added python code from blitzortung-tracker-tools

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# -*- coding: utf8 -*-
 
3
#-----------------------------------------------------------------------------
 
4
#   Copyright (c) 2011, Andreas Wuerl. All rights reserved.
 
5
#
 
6
#   Released under the GPLv3 license. See the LICENSE file for details.
 
7
#-----------------------------------------------------------------------------
 
8
"""
 
9
blitzortung python modules
 
10
"""
 
11
__version__ = '0.9.5'
 
12
 
 
13
import struct as _struct
 
14
 
 
15
#-----------------------------------------------------------------------------
 
16
#  Constants.
 
17
#-----------------------------------------------------------------------------
 
18
 
 
19
#-----------------------------------------------------------------------------
 
20
#   Custom exceptions.
 
21
#-----------------------------------------------------------------------------
 
22
 
 
23
class Error(Exception):
 
24
  """
 
25
  General Blitzortung error class.
 
26
  """
 
27
  pass
 
28
 
 
29
 
 
30
#-----------------------------------------------------------------------------
 
31
#   Public interface and exports.
 
32
#-----------------------------------------------------------------------------
 
33
 
 
34
 
 
35
from blitzortung import Config
 
36
import data
 
37
import db
 
38
import geom
 
39
import files
 
40
import plot
 
41
import util
 
42
import web
 
43
 
 
44
__all__ = [
 
45
  'Config', # main classes
 
46
 
 
47
  'data.TimeIntervals', # data items
 
48
 
 
49
  'db.Stroke', 'db.Location', # database access
 
50
 
 
51
  'Error', # custom exceptions
 
52
 
 
53
  'files.Raw', 'files.Data',
 
54
 
 
55
  'geom.Point',
 
56
 
 
57
  'plot.Plot', 'plot.Data', # gnuplot integration
 
58
 
 
59
  'util.Timer',
 
60
 
 
61
  'web.Url',
 
62
]