Package diffpy :: Package Structure :: Package Parsers
[hide private]
[frames] | no frames]

Package Parsers

source code

Conversion plugins for various structure formats

The recognized structure formats are defined by subclassing StructureParser,
by convention these classes are named P_<format>.  The parser classes should
to override the parseLines() and toLines() methods of StructureParser.
Any structure parser needs to be registered in parser_index module.

For normal usage it should be sufficient to use the routines provided
in this module.

Content:
    StructureParser -- base class for concrete Parsers
    parser_index    -- dictionary of known structure formats
    getParser       -- factory for Parser at given format
    inputFormats    -- list of available input formats
    outputFormats   -- list of available output formats



Submodules [hide private]

Functions [hide private]
 
getParser(format)
Return Parser instance for a given structure format.
source code
 
inputFormats()
Return list of implemented input structure formats
source code
 
outputFormats()
return list of implemented output structure formats
source code
Variables [hide private]
  __id__ = '$Id: __init__.py 3032 2009-04-08 19:15:37Z juhas $'
Function Details [hide private]

getParser(format)

source code 
Return Parser instance for a given structure format.
Raises StructureFormatError exception when format is not defined.