Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cyaml.py
Go to the documentation of this file.
1 # (c) Copyright Rosetta Commons Member Institutions.
2 # (c) This file is part of the Rosetta software suite and is made available under license.
3 # (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
4 # (c) For more information, see http://www.rosettacommons.org. Questions about this can be
5 # (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
6 
7 __all__ = ['CBaseLoader', 'CSafeLoader', 'CLoader',
8  'CBaseDumper', 'CSafeDumper', 'CDumper']
9 
10 from _yaml import CParser, CEmitter
11 
12 from constructor import *
13 
14 from serializer import *
15 from representer import *
16 
17 from resolver import *
18 
20 
21  def __init__(self, stream):
22  CParser.__init__(self, stream)
23  BaseConstructor.__init__(self)
24  BaseResolver.__init__(self)
25 
27 
28  def __init__(self, stream):
29  CParser.__init__(self, stream)
30  SafeConstructor.__init__(self)
31  Resolver.__init__(self)
32 
33 class CLoader(CParser, Constructor, Resolver):
34 
35  def __init__(self, stream):
36  CParser.__init__(self, stream)
37  Constructor.__init__(self)
38  Resolver.__init__(self)
39 
41 
42  def __init__(self, stream,
43  default_style=None, default_flow_style=None,
44  canonical=None, indent=None, width=None,
45  allow_unicode=None, line_break=None,
46  encoding=None, explicit_start=None, explicit_end=None,
47  version=None, tags=None):
48  CEmitter.__init__(self, stream, canonical=canonical,
49  indent=indent, width=width,
50  allow_unicode=allow_unicode, line_break=line_break,
51  explicit_start=explicit_start, explicit_end=explicit_end,
52  version=version, tags=tags)
53  Representer.__init__(self, default_style=default_style,
54  default_flow_style=default_flow_style)
55  Resolver.__init__(self)
56 
58 
59  def __init__(self, stream,
60  default_style=None, default_flow_style=None,
61  canonical=None, indent=None, width=None,
62  allow_unicode=None, line_break=None,
63  encoding=None, explicit_start=None, explicit_end=None,
64  version=None, tags=None):
65  CEmitter.__init__(self, stream, canonical=canonical,
66  indent=indent, width=width,
67  allow_unicode=allow_unicode, line_break=line_break,
68  explicit_start=explicit_start, explicit_end=explicit_end,
69  version=version, tags=tags)
70  SafeRepresenter.__init__(self, default_style=default_style,
71  default_flow_style=default_flow_style)
72  Resolver.__init__(self)
73 
75 
76  def __init__(self, stream,
77  default_style=None, default_flow_style=None,
78  canonical=None, indent=None, width=None,
79  allow_unicode=None, line_break=None,
80  encoding=None, explicit_start=None, explicit_end=None,
81  version=None, tags=None):
82  CEmitter.__init__(self, stream, canonical=canonical,
83  indent=indent, width=width,
84  allow_unicode=allow_unicode, line_break=line_break,
85  explicit_start=explicit_start, explicit_end=explicit_end,
86  version=version, tags=tags)
87  Representer.__init__(self, default_style=default_style,
88  default_flow_style=default_flow_style)
89  Resolver.__init__(self)
90