| Home | Trees | Index | Help |
|
|---|
| Package picalo :: Package base :: Module Table |
|
| Classes | |
|---|---|
Table |
The primary data structure used in Picalo modules. |
TableDataPageFile |
A single page file on disk |
UnicodeCSVReader |
|
UnicodeCSVWriter |
|
| Function Summary | |
|---|---|
convert_to_str(val)
| |
| Table or TableList or TableArray |
Loads a native picalo file. |
| Table |
Loads records from a Comma Separated Values (CSV) file. |
| Table |
Loads records from the given delimited text file. |
| Table |
Loads the given Excel file. |
| Table |
Loads records from a fixed width file. |
| Table |
Loads records from a Excel Tab Separated Values (TSV) file. |
Saves this table in native Picalo format. | |
Returns a generator object to iterate over a table | |
Opens a spreadsheet-view of the table if Picalo is being run in GUI mode. | |
Loads a CSV dialect into a table. | |
Internal method to load version 1 (this would take less memory with sax, but that can be done another day) | |
Internal method to save version 1 | |
| Variable Summary | |
|---|---|
dict |
bomDict = {(255, 254, None): 'utf_16_le', (239, 187, 191...
|
int |
PAGE_FILE_SIZE = 2147483647 |
int |
PICKLE_PROTOCOL = 2 |
str |
TABLE_PAGE_DIR = '/tmp'
|
str |
TABLE_PAGE_EXT = '.picalo_temp_page_file'
|
| Function Details |
|---|
load(filename)Loads a native picalo file. Determines the version of the picalo file, then calls the appropriate load routine for that version.
|
load_csv(filename, header_row=True, none='')Loads records from a Comma Separated Values (CSV) file. Among the various CSV flavors in the world, this function uses the Microsoft version.
|
load_delimited(filename, header_row=True, delimiter=',', qualifier='"', none='')Loads records from the given delimited text file. This function allows the specification of delimiters and qualifiers. Most users should use the load_csv, load_tsv, and load_fixed functions as they provide easier access to text files. Use this function only if you have a specially-formatted text file.
|
load_excel(filename, worksheet_name=None, topleft_cell=None, bottomright_cell=None, header_row=True, none='')Loads the given Excel file. Values are taken from the first sheet in the workbook.
|
load_fixed(filename, column_positions, header_row=True, none='')Loads records from a fixed width file. Fixed width files pad columns with extra spaces so they are easy to read with a text editor.
|
load_tsv(filename, header_row=True, none='')Loads records from a Excel Tab Separated Values (TSV) file. Among the various TSV flavors in the world, this function uses the Microsoft version.
|
save(table, filename, respect_filter=False)Saves this table in native Picalo format. This is the preferred format to save tables in because all column types, formulas, and so forth are saved.
|
TableIterator(table, respect_filter=True)Returns a generator object to iterate over a table |
view(table)Opens a spreadsheet-view of the table if Picalo is being run in GUI mode. If Picalo is being run in console mode, it redirects to prettyprint(). This is the preferred way of viewing the data in a table. |
_load_dialect(filename, dialect, header_row=1, none='')Loads a CSV dialect into a table. See the csv module docs for more info |
_loadVersion1(gin)Internal method to load version 1 (this would take less memory with sax, but that can be done another day) |
_saveVersion1(table, gout, respect_filter=False)Internal method to save version 1 |
| Variable Details |
|---|
bomDict
|
PAGE_FILE_SIZE
|
PICKLE_PROTOCOL
|
TABLE_PAGE_DIR
|
TABLE_PAGE_EXT
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 20 05:38:17 2007 | http://epydoc.sf.net |