Francesc Alted

PyTables User's Guide

A hierarchical database for Python
Release 0.7.2

Table of Contents

1
 1.1Main Features
 1.2The Object Tree
 
2
 2.1Installation from sources
 2.2Binary installation (Windows)
 2.2.1Basic installation (i.e. with no LZO and UCL compression libraries support)
 2.2.2Advanced installation (i.e. with support for LZO and UCL compression libraries)
 
3
 3.1Getting started
 3.1.1Importing tables objects
 3.1.2Declaring a Column Descriptor
 3.1.3Creating a PyTables file from scratch
 3.1.4Creating a new group
 3.1.5Creating a new table
 3.1.6Reading (and selecting) data in table
 3.1.7Creating new array objects
 3.1.8Closing the file and looking at its content
 3.2Browsing the object tree and more
 3.2.1Traversing the object tree
 3.2.2Setting and getting user attributes
 3.2.3Getting object metadata
 3.2.4Reading actual data from Array objects
 3.2.5Appending data to an existing table
 3.2.6And finally... how to remove rows from a table
 3.3Multidimensional table cells and automatic sanity checks
 3.3.1Shape checking
 3.3.2Field name checking
 3.3.3Data type checking
 
4
 4.1tables variables and functions
 4.1.1Global variables
 4.1.2Global functions
 4.2The IsDescription class
 4.3The Col class and its descendants
 4.4The File class
 4.4.1File instance variables
 4.4.2File methods
 4.4.3File special methods
 4.5The Group class
 4.5.1Group instance variables
 4.5.2Group methods
 4.5.3Group special methods
 4.6The Leaf class
 4.6.1Leaf instance variables
 4.6.2Leaf methods
 4.7The Table class
 4.7.1Table instance variables
 4.7.2Table methods
 4.7.3Table special methods
 4.8The Row class
 4.8.1Row methods
 4.9The Array class
 4.9.1Array instance variables
 4.9.2Array methods
 4.10The AttributeSet class
 4.10.1AttributeSet instance variables
 4.10.2AttributeSet methods
 
5
 5.1Taking advantage of Psyco
 5.2Compression issues
 5.3Informing PyTables about expected number of rows in tables
 5.4Selecting an User Entry Point (UEP) in your tree
 
A