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

Class FormatRegistry

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.
Method Summary
  __init__(self, name, load_path)
Registry(name[, load_path])
  find_builder(self, from_format, to_io)
  find_writer(self, from_io, to_format, outfile)
  normalize(self, name_or_format)
    Inherited from Registry
  __getitem__(self, name)
  __repr__(self)
  __str__(self)
  get(self, name, default)
  items(self)
  keys(self)
  register(self, obj)
S.register(obj)
  values(self)

Method Details

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

Registry(name[, load_path])

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:
Bio.config.Registry.Registry.__init__ (inherited documentation)

Generated by Epydoc 2.1 on Mon Aug 27 16:13:11 2007 http://epydoc.sf.net