Metadata-Version: 1.0
Name: simpletable
Version: 0.1
Summary: wrapper around pytables/hd5f to simplify using structured data
Home-page: http://bpbio.googlecode.com/
Author: Brent Pedersen
Author-email: bpederse@gmail.com
License: BSD
Download-URL: http://bpbio.googlecode.com/svn/trunk/simpletable/
Description: 
        
        SimpleTable: simple wrapper around `pytables`_ hdf5
        ------------------------------------------------------------------------------
        
        .. _`pytables`: http://pytables.org
        
        This module removes some of the boiler-plate code required to use the excellent `pytables`_
        module to save and access structured data.
        
        Example Usage::
        
        >>> from simpletable import SimpleTable
        >>> import tables
        
        define a table as a subclass of simple table.
        
        >>> class ATable(SimpleTable):
        ...     x = tables.Float32Col()
        ...     y = tables.Float32Col()
        ...     name = tables.StringCol(16)
        
        instantiate with: args: filename, tablename
        
        >>> tbl = ATable('test_docs.h5', 'atable1')
        
        insert as with pytables:
        
        >>> row = tbl.row
        >>> for i in range(50):
        ...    row['x'], row['y'] = i, i * 10
        ...    row['name'] = "name_%i" % i
        ...    row.append()
        >>> tbl.flush()
        
        there is also `insert_many()` method with takes an iterable
        of dicts with keys matching the colunns (x, y, name) in this
        case.
        
        query the data (query() alias of tables' readWhere()
        
        >>> tbl.query('(x > 4) & (y < 70)') #doctest: +NORMALIZE_WHITESPACE
        array([('name_5', 5.0, 50.0), ('name_6', 6.0, 60.0)],
        dtype=[('name', '|S16'), ('x', '<f4'), ('y', '<f4')])
        
        
Keywords: hdf5 pytables tables numpy
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Database
