You are not logged in Log in Join
You are here: Home » Members » mojix » CSVTool Product » CSVTool 0.1 released » View NewsItem

Log in
Name

Password

 

CSVTool 0.1 released

CSVTool is wrapper product of Python 2.3+ csv module. You can use power of csv module on ZMI.

CSVTool has four modes - reader (single line), reader (multi line), writer (single line) and writer (multi line).

Below is usage example in Python Script:

 # CSV Tool object
 csvtool = getattr(container, 'csv_tool')

 txt = 'Hi,How,Are,You?'
 csvtool.setMode('reader (single line)')
 result = csvtool(txt)
 # result is ['Hi', 'How', 'Are', 'You?']

 lst = ['wow','fuckin','cool']
 csvtool.setMode('writer (single line)')
 csvtool.setDelimiter('colon')
 result = csvtool(lst)
 # result is 'wow:fuckin:cool'

Try this (on Zope 2.7+ based on Python 2.3+ that has csv module)!

CSVTool