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

Source Code for Package etl

 1  # -*- encoding: utf-8 -*- 
 2  ############################################################################## 
 3  # 
 4  #    ETL system- Extract Transfer Load system 
 5  #    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved 
 6  #    $Id$ 
 7  # 
 8  #    This program is free software: you can redistribute it and/or modify 
 9  #    it under the terms of the GNU General Public License as published by 
10  #    the Free Software Foundation, either version 3 of the License, or 
11  #    (at your option) any later version. 
12  # 
13  #    This program is distributed in the hope that it will be useful, 
14  #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
15  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
16  #    GNU General Public License for more details. 
17  # 
18  #    You should have received a copy of the GNU General Public License 
19  #    along with this program.  If not, see <http://www.gnu.org/licenses/>. 
20  ############################################################################## 
21  """ 
22  ETL (Extract, transform, and load) is a module for python 2.4 or greater  
23  that implements ETL concepts for data import, export and also performs some operations  
24  beween import/export.   
25   
26  This package has different sub-packages for defining  ETL job process,  
27  ETL components (Input/Source, transform/process, control, Output/Destination), 
28  ETL connectors and ETL transition. 
29   
30  ETL job means to define etl process which can run, stop, pause. 
31   
32  ETL components means to define components which are used in etl job like  
33  - Input Component     : to get data from external sources. 
34  - Output Component    : to store data to external destination. 
35  - Transform Component : to perform a series of rules or functions to the extracted data  
36  from the source to derive the data for loading into the end target. 
37   
38  ETL connectors means to connect with external systems or server which are used by ETL Components. 
39   
40  ETL transition means to define data flow with different transition channels between  
41  source etl components and destination etl components. 
42   
43  ETL is written entirely in python and is released under the GNU General Public License. 
44   
45  Website: U{http://www.openerp.com/}. 
46   
47  @version: 1.0.0a1 
48  @author: Tiny SPRL 
49  @contact: support@tinyerp.com 
50  @license: GNU General Public License 
51  """ 
52  import sys 
53  if sys.version_info < (2, 4): 
54      raise RuntimeError('You need python 2.4 for this module.') 
55   
56   
57  __author__ = "Tiny SPRL" 
58  __date__ = "01 May 2009" 
59  __version__ = "1.0.0a1" 
60  __version_info__ = (1, 0, 0) 
61  __license__ = "GNU General Public License" 
62   
63  from signal import signal 
64  from job import job 
65  from transition import transition 
66  from transformer import transformer 
67   
68  import logger 
69  import component 
70  import connector 
71  import tools 
72   
73  # fix module names for epydoc 
74  for c in locals().values(): 
75      if issubclass(type(c), type) or type(c).__name__ == 'classobj': 
76          # classobj for exceptions :/ 
77          c.__module__ = __name__ 
78  del c 
79   
80   
81  __all__ = [ 'signal',             
82              'job', 
83              'transition', 
84              'transformer', 
85              'logger', 
86              'component', 
87              'connector', 
88              'tools'  
89             ] 
90