Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'argument': 0.05; 'class,': 0.07; 'transform': 0.07; 'derived': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:skip:t 10': 0.09; 'wrapper': 0.09; 'determines': 0.16; 'modularity': 0.16; 'nesting': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'module': 0.19; 'input': 0.22; 'header:User-Agent:1': 0.23; 'specify': 0.24; 'equivalent': 0.26; 'skip:" 20': 0.27; 'header:X -Complaints-To:1': 0.27; "skip:' 10": 0.31; 'towards': 0.31; 'context.': 0.31; 'writes:': 0.31; 'allows': 0.31; 'class': 0.32; 'sense': 0.34; 'knows': 0.35; 'objects': 0.35; 'there': 0.35; 'i.e.': 0.36; 'sequence': 0.36; 'subject:data': 0.36; 'charset:us- ascii': 0.36; 'effort': 0.37; 'level': 0.37; 'to:addr:python- list': 0.38; 'expect': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'chain': 0.60; 'consists': 0.60; 'received:217': 0.63; 'high': 0.63; 'developed': 0.63; 'kind': 0.63; 'interest': 0.64; 'subject:. ': 0.67; 'savings.': 0.68; 'targeted': 0.69; 'subject:inviting': 0.84; 'tx:': 0.84; 'serious': 0.97 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: dieter Subject: Re: A data transformation framework. A presentation inviting commentary. Date: Thu, 22 Aug 2013 08:43:26 +0200 References: <5214EB07.6000801@bluewin.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: pd9e097cc.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) Cancel-Lock: sha1:pnNcVAtmYj8aNQlzcTdDVfBfGLQ= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377153818 news.xs4all.nl 15867 [2001:888:2000:d::a6]:48137 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52817 "F.R." writes: > ... > In an effort to do some serious cleaning up of a hopelessly cluttered > working environment, I developed a modular data transformation system > that pretty much stands. I am very pleased with it. I expect huge time > savings. I would share it, if had a sense that there is an interest > out there and would appreciate comments. Here's a description. I named > the module TX: > > The nucleus of the TX system is a Transformer class, a wrapper for any > kind of transformation functionality. The Transformer takes input as > calling argument and returns it transformed. This design allows the > assembly of transformation chains, either nesting calls or better, > using the class Chain, derived from 'Transformer' and 'list'. A Chain > consists of a sequence of Transformers and is functionally equivalent > to an individual Transformer. A high degree of modularity results: > ... This high level description much resembles "Products.PortalTransforms", a transformation package used in a "Plone" context. This package is targeted towards "MIME type" based transformations, i.e. input objects have a "MIME type" and you specify the target "MIME type". A transform registry knows about the available (elementary) transformations and determines a chain of transformations to achieve a desired one.