Table of Contents

Module: FlatDB Bio/Mindy/FlatDB.py
Imported modules   
import BaseDB
import Bio
import Location
import bisect
import os
Functions   
_find_entry
_find_range
_get_first_words
_lookup_alias
_lookup_location
_parse_primary_table_entry
_parse_secondary_table_entry
_read_primary_table
_read_secondary_table
_write_primary_table
_write_secondary_table
create
open
  _find_entry 
_find_entry ( filename,  wantword )

  _find_range 
_find_range ( filename,  wantword )

  _get_first_words 
_get_first_words ( filename )

  _lookup_alias 
_lookup_alias ( id_filename,  word )

  _lookup_location 
_lookup_location ( key_filename,  word )

  _parse_primary_table_entry 
_parse_primary_table_entry ( s )

  _parse_secondary_table_entry 
_parse_secondary_table_entry ( s )

  _read_primary_table 
_read_primary_table ( filename )

  _read_secondary_table 
_read_secondary_table ( filename )

  _write_primary_table 
_write_primary_table ( filename,  primary_table )

Exceptions   
AssertionError("Primary index record too large for format spec! " + " %s bytes in %r" %( n, s ) )
  _write_secondary_table 
_write_secondary_table ( filename,  table )

Exceptions   
AssertionError("Secondary index record too large for format spec! " + " %s bytes in %r" %( n, s ) )
  create 
create (
        dbname,
        primary_namespace,
        secondary_namespaces,
        formatname="unknown",
        )

  open 
open ( dbname,  mode="r" )

Exceptions   
TypeError( "Must call FlatDB.create to create the database" )
TypeError("Unknown mode: %r" %( mode, ) )
Classes   
BaseFlatDB
BisectFile
DiskFlatDB
MemoryFlatDB
PrimaryNamespace
PrimaryTable
SecondaryNamespace
SecondaryTable

Table of Contents

This document was automatically generated on Mon Jul 1 12:03:17 2002 by HappyDoc version 2.0.1