simudo.pyaml package¶
Submodules¶
simudo.pyaml.astglobals module¶
simudo.pyaml.helper module¶
-
class
simudo.pyaml.helper.
PyamlBase
[source]¶ Bases:
simudo.pyaml.helper.PyamlEnv
,simudo.pyaml.helper.PyamlGetAttr
simudo.pyaml.load module¶
-
simudo.pyaml.load.
load_res
(package_or_requirement, resource_name, use_parent_package=True)¶ Use this to load a source-translated file from inside your source tree.
For example, translator.load_res(__name__, ‘example.py1’).
simudo.pyaml.multidict module¶
simudo.pyaml.pyaml1 module¶
-
class
simudo.pyaml.pyaml1.
CodeGenerator
[source]¶ Bases:
object
-
YAMLLoader
¶ alias of
simudo.pyaml.pyaml1.XLoader
-
depth
= 0¶
-
indent_spaces
= 2¶
-
result
¶
-
-
class
simudo.pyaml.pyaml1.
CodeTag
(dict)[source]¶ Bases:
simudo.pyaml.pyaml1.InitKwSetattr
-
auto_cache
= True¶
-
code
= None¶
-
env
= 'default'¶
-
-
class
simudo.pyaml.pyaml1.
XLoader
(*args, **kwargs)[source]¶ Bases:
yamlordereddictloader.Loader
-
yaml_constructors
= {'tag:yaml.org,2002:null': <function SafeConstructor.construct_yaml_null>, 'tag:yaml.org,2002:bool': <function SafeConstructor.construct_yaml_bool>, 'tag:yaml.org,2002:int': <function SafeConstructor.construct_yaml_int>, 'tag:yaml.org,2002:float': <function SafeConstructor.construct_yaml_float>, 'tag:yaml.org,2002:binary': <function SafeConstructor.construct_yaml_binary>, 'tag:yaml.org,2002:timestamp': <function SafeConstructor.construct_yaml_timestamp>, 'tag:yaml.org,2002:omap': <function construct_yaml_map>, 'tag:yaml.org,2002:pairs': <function SafeConstructor.construct_yaml_pairs>, 'tag:yaml.org,2002:set': <function SafeConstructor.construct_yaml_set>, 'tag:yaml.org,2002:str': <function SafeConstructor.construct_yaml_str>, 'tag:yaml.org,2002:seq': <function SafeConstructor.construct_yaml_seq>, 'tag:yaml.org,2002:map': <function construct_yaml_map>, None: <function SafeConstructor.construct_undefined>, 'tag:yaml.org,2002:python/none': <function SafeConstructor.construct_yaml_null>, 'tag:yaml.org,2002:python/bool': <function SafeConstructor.construct_yaml_bool>, 'tag:yaml.org,2002:python/str': <function FullConstructor.construct_python_str>, 'tag:yaml.org,2002:python/unicode': <function FullConstructor.construct_python_unicode>, 'tag:yaml.org,2002:python/bytes': <function FullConstructor.construct_python_bytes>, 'tag:yaml.org,2002:python/int': <function SafeConstructor.construct_yaml_int>, 'tag:yaml.org,2002:python/long': <function FullConstructor.construct_python_long>, 'tag:yaml.org,2002:python/float': <function SafeConstructor.construct_yaml_float>, 'tag:yaml.org,2002:python/complex': <function FullConstructor.construct_python_complex>, 'tag:yaml.org,2002:python/list': <function SafeConstructor.construct_yaml_seq>, 'tag:yaml.org,2002:python/tuple': <function FullConstructor.construct_python_tuple>, 'tag:yaml.org,2002:python/dict': <function SafeConstructor.construct_yaml_map>, '!c': <bound method YCodeTag.from_yaml of <class 'simudo.pyaml.pyaml1.YCodeTag'>>, '!c2': <bound method YCode2Tag.from_yaml of <class 'simudo.pyaml.pyaml1.YCode2Tag'>>}¶
-
-
class
simudo.pyaml.pyaml1.
YCode2Tag
[source]¶ Bases:
simudo.pyaml.pyaml1.BaseCustomTag
-
yaml_tag
= '!c2'¶
-
-
class
simudo.pyaml.pyaml1.
YCodeTag
[source]¶ Bases:
simudo.pyaml.pyaml1.BaseCustomTag
-
yaml_tag
= '!c'¶
-
-
simudo.pyaml.pyaml1.
kl
¶ alias of
simudo.pyaml.pyaml1.YCode2Tag