## Summary of MiscUtils.DataTable

You can also browse the complete source file or the generated documentation.

    ## Types and blank Values ##

    ## Functions ##
    def canReadExcel()

    ## Classes ##

    class DataTableError(Exception):

    class TableColumn(object):
        def __init__(self, spec)
        def name(self)
        def type(self)
        def setType(self, type)
        def __repr__(self)
        def __str__(self)

        ## Utilities ##
        def valueForRawValue(self, value)

    class DataTable(object):

        ## Init ##
        def __init__(self, filenameOrHeadings=None, delimiter=',',

        ## File I/O ##
        def readFileNamed(self, filename, delimiter=',',
        def readFile(self, file, delimiter=',',
        def readString(self, string, delimiter=',',
        def readLines(self, lines, delimiter=',',
        def canReadExcel()
        def readExcel(self, worksheet=1, row=1, column=1)
                def strip(x)
        def save(self)
        def writeFileNamed(self, filename)
        def writeFile(self, file)
            def valueWritingMapper(item)
        def commit(self)

        ## Headings ##
        def heading(self, index)
        def hasHeading(self, name)
        def numHeadings(self)
        def headings(self)
        def setHeadings(self, headings)

        ## Row access (list like) ##
        def __len__(self)
        def __getitem__(self, index)
        def append(self, obj)

        ## Queries ##
        def recordsEqualTo(self, record)

        ## As a string ##
        def __repr__(self)

        ## As a dictionary ##
        def dictKeyedBy(self, key)

        ## Misc access ##
        def filename(self)
        def nameToIndexMap(self)

        ## Self utilities ##
        def createNameToIndexMap(self)

    class TableRecord(object):

        ## Init ##
        def __init__(self, table, values=None, headings=None)
        def initFromSequence(self, values)
        def initFromDict(self, values)
        def initFromObject(self, obj)

        ## Accessing like a sequence or dictionary ##
        def __len__(self)
        def __getitem__(self, key)
        def __setitem__(self, key, value)
        def __delitem__(self, key)
        def __contains__(self, key)
        def __repr__(self)
        def __iter__(self)
        def get(self, key, default=None)
        def has_key(self, key)
        def keys(self)
        def values(self)
        def items(self)
        def iterkeys(self)
        def itervalues(self)
        def iteritems(self)

        ## Additional access ##
        def asList(self)
        def asDict(self)

        ## valueForFoo() family ##
        def valueForKey(self, key, default=NoDefault)
        def valueForAttr(self, attr, default=NoDefault)
    def main(args=None)