Package Bio :: Package config :: Module FormatRegistry :: Class FormatRegistry
[hide private]
[frames] | no frames]

Class FormatRegistry

source code

Registry.Registry --+
                    |
                   FormatRegistry

This implements a dictionary-like interface to Biopython file formats.

Methods: find_builder Find a builder that converts from a format to an object. find_writer Find a writer that can write an object to a format.

Instance Methods [hide private]
 
__init__(self, name, load_path=None, builder_path='Bio.builders', writer_path='Bio.writers')
Create a new registry.
source code
 
normalize(self, name_or_format) source code
 
_build_parent_path(self, format, visited=None) source code
 
_build_child_path(self, format, visited=None) source code
 
find_builder(self, from_format, to_io) source code
 
find_writer(self, from_io, to_format, outfile) source code

Inherited from Registry.Registry: __getitem__, __repr__, __str__, get, items, keys, register, values

Inherited from Registry.Registry (private): _autoload, _load

Method Details [hide private]

__init__(self, name, load_path=None, builder_path='Bio.builders', writer_path='Bio.writers')
(Constructor)

source code 

Create a new registry. name is the name of the registry. load_path is an optional path (e.g. Bio.config.dbdefs) that contains objects for the registry.

Overrides: Registry.Registry.__init__
(inherited documentation)