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

Source Code for Package pytilities

 1  # Copyright (C) 2010 Tim Diels <limyreth@users.sourceforge.net> 
 2  #  
 3  # This file is part of pytilities. 
 4  #  
 5  # pytilities is free software: you can redistribute it and/or modify 
 6  # it under the terms of the GNU General Public License as published by 
 7  # the Free Software Foundation, either version 3 of the License, or 
 8  # (at your option) any later version. 
 9  #  
10  # pytilities is distributed in the hope that it will be useful, 
11  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
12  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
13  # GNU General Public License for more details. 
14  #  
15  # You should have received a copy of the GNU General Public License 
16  # along with pytilities.  If not, see <http://www.gnu.org/licenses/>. 
17  # 
18   
19  ''' 
20  Root of pytilities, various utilities 
21   
22  Web site: http://pytilities.sourceforge.net/ 
23  Project site with svn, ...: http://sourceforge.net/projects/pytilities/ 
24  Releases: TODO (PyPI link) 
25   
26  Features: 
27   
28      - delegation: decorate classes with attributes that are delegated to a 
29      target object without having to write those attributes on the decorating 
30      class 
31   
32      - event dispatching: Observer/Listener like event dispatching with wrappers 
33      for hiding events on dispatchers and combining dispatchers 
34   
35      - function overloading 
36   
37      - various: a NumberType (anything numeric), a mangle function, ... 
38   
39  Classes: 
40   
41      - `AttributeCollection`: Abstract, represents a collection of attributes. 
42      - `AttributeCollectionBase`: Mixin, allows easy extension of class attributes 
43      - `Stringifiable`: Mixin, provides a reasonable default __str__ 
44   
45  Functions: 
46   
47      - `mangle`: Get the mangled name of an attribute 
48  ''' 
49   
50  __docformat__ = 'reStructuredText' 
51   
52  from .attributecollection import AttributeCollection 
53  from .attributecollectionbase import AttributeCollectionBase 
54  from .stringifiable import Stringifiable 
55  from .mangle import mangle 
56