pydoc > yaml

Help on package yaml:

NAME
    yaml

PACKAGE CONTENTS
    _yaml
    composer
    constructor
    cyaml
    dumper
    emitter
    error
    events
    loader
    nodes
    parser
    reader
    representer
    resolver
    scanner
    serializer
    tokens

CLASSES
    builtins.object
        YAMLObject
    builtins.type(builtins.object)
        YAMLObjectMetaclass

    class YAMLObject(builtins.object)
     |  An object that can dump itself to a YAML stream
     |  and load itself from a YAML stream.
     |
     |  Class methods defined here:
     |
     |  from_yaml(loader, node)
     |      Convert a representation node to a Python object.
     |
     |  to_yaml(dumper, data)
     |      Convert a Python object to a representation node.
     |
     |  ----------------------------------------------------------------------
     |  Data and other attributes defined here:
     |
     |  yaml_dumper = <class 'yaml.dumper.Dumper'>
     |
     |  yaml_flow_style = None
     |
     |  yaml_loader = [<class 'yaml.loader.Loader'>, <class 'yaml.loader.FullL...
     |
     |  yaml_tag = None

    class YAMLObjectMetaclass(builtins.type)
     |  YAMLObjectMetaclass(name, bases, kwds)
     |
     |  The metaclass for YAMLObject.
     |
     |  Method resolution order:
     |      YAMLObjectMetaclass
     |      builtins.type
     |      builtins.object
     |
     |  Methods defined here:
     |
     |  __init__(cls, name, bases, kwds)
     |      Initialize self.  See help(type(self)) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Data and other attributes defined here:
     |
     |  __annotations__ = {}
     |
     |  ----------------------------------------------------------------------
     |  Methods inherited from builtins.type:
     |
     |  __call__(self, /, *args, **kwargs)
     |      Call self as a function.
     |
     |  __delattr__(self, name, /)
     |      Implement delattr(self, name).
     |
     |  __dir__(self, /)
     |      Specialized __dir__ implementation for types.
     |
     |  __getattribute__(self, name, /)
     |      Return getattr(self, name).
     |
     |  __instancecheck__(self, instance, /)
     |      Check if an object is an instance.
     |
     |  __or__(self, value, /)
     |      Return self|value.
     |
     |  __repr__(self, /)
     |      Return repr(self).
     |
     |  __ror__(self, value, /)
     |      Return value|self.
     |
     |  __setattr__(self, name, value, /)
     |      Implement setattr(self, name, value).
     |
     |  __sizeof__(self, /)
     |      Return memory consumption of the type object.
     |
     |  __subclasscheck__(self, subclass, /)
     |      Check if a class is a subclass.
     |
     |  __subclasses__(self, /)
     |      Return a list of immediate subclasses.
     |
     |  mro(self, /)
     |      Return a type's method resolution order.
     |
     |  ----------------------------------------------------------------------
     |  Class methods inherited from builtins.type:
     |
     |  __prepare__(...)
     |      __prepare__() -> dict
     |      used to create the namespace for the class statement
     |
     |  ----------------------------------------------------------------------
     |  Static methods inherited from builtins.type:
     |
     |  __new__(*args, **kwargs) class method of builtins.type
     |      Create and return a new object.  See help(type) for accurate signature.
     |
     |  ----------------------------------------------------------------------
     |  Data descriptors inherited from builtins.type:
     |
     |  __abstractmethods__
     |
     |  __dict__
     |
     |  __text_signature__
     |
     |  ----------------------------------------------------------------------
     |  Data and other attributes inherited from builtins.type:
     |
     |  __base__ = <class 'type'>
     |      type(object) -> the object's type
     |      type(name, bases, dict, **kwds) -> a new type
     |
     |
     |  __bases__ = (<class 'type'>,)
     |
     |  __basicsize__ = 920
     |
     |  __dictoffset__ = 264
     |
     |  __flags__ = 2156420608
     |
     |  __itemsize__ = 40
     |
     |  __mro__ = (<class 'yaml.YAMLObjectMetaclass'>, <class 'type'>, <class ...
     |
     |  __type_params__ = ()
     |
     |  __weakrefoffset__ = 368

FUNCTIONS
    add_constructor(tag, constructor, Loader=None)
        Add a constructor for the given tag.
        Constructor is a function that accepts a Loader instance
        and a node object and produces the corresponding Python object.

    add_implicit_resolver(tag, regexp, first=None, Loader=None, Dumper=<class 'yaml.dumper.Dumper'>)
        Add an implicit scalar detector.
        If an implicit scalar value matches the given regexp,
        the corresponding tag is assigned to the scalar.
        first is a sequence of possible initial characters or None.

    add_multi_constructor(tag_prefix, multi_constructor, Loader=None)
        Add a multi-constructor for the given tag prefix.
        Multi-constructor is called for a node if its tag starts with tag_prefix.
        Multi-constructor accepts a Loader instance, a tag suffix,
        and a node object and produces the corresponding Python object.

    add_multi_representer(data_type, multi_representer, Dumper=<class 'yaml.dumper.Dumper'>)
        Add a representer for the given type.
        Multi-representer is a function accepting a Dumper instance
        and an instance of the given data type or subtype
        and producing the corresponding representation node.

    add_path_resolver(tag, path, kind=None, Loader=None, Dumper=<class 'yaml.dumper.Dumper'>)
        Add a path based resolver for the given tag.
        A path is a list of keys that forms a path
        to a node in the representation tree.
        Keys can be string values, integers, or None.

    add_representer(data_type, representer, Dumper=<class 'yaml.dumper.Dumper'>)
        Add a representer for the given type.
        Representer is a function accepting a Dumper instance
        and an instance of the given data type
        and producing the corresponding representation node.

    compose(stream, Loader=<class 'yaml.loader.Loader'>)
        Parse the first YAML document in a stream
        and produce the corresponding representation tree.

    compose_all(stream, Loader=<class 'yaml.loader.Loader'>)
        Parse all YAML documents in a stream
        and produce corresponding representation trees.

    dump(data, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, **kwds)
        Serialize a Python object into a YAML stream.
        If stream is None, return the produced string instead.

    dump_all(documents, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, default_style=None, default_flow_style=False, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None, sort_keys=True)
        Serialize a sequence of Python objects into a YAML stream.
        If stream is None, return the produced string instead.

    emit(events, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None)
        Emit YAML parsing events into a stream.
        If stream is None, return the produced string instead.

    full_load(stream)
        Parse the first YAML document in a stream
        and produce the corresponding Python object.

        Resolve all tags except those known to be
        unsafe on untrusted input.

    full_load_all(stream)
        Parse all YAML documents in a stream
        and produce corresponding Python objects.

        Resolve all tags except those known to be
        unsafe on untrusted input.

    load(stream, Loader)
        Parse the first YAML document in a stream
        and produce the corresponding Python object.

    load_all(stream, Loader)
        Parse all YAML documents in a stream
        and produce corresponding Python objects.

    parse(stream, Loader=<class 'yaml.loader.Loader'>)
        Parse a YAML stream and produce parsing events.

    safe_dump(data, stream=None, **kwds)
        Serialize a Python object into a YAML stream.
        Produce only basic YAML tags.
        If stream is None, return the produced string instead.

    safe_dump_all(documents, stream=None, **kwds)
        Serialize a sequence of Python objects into a YAML stream.
        Produce only basic YAML tags.
        If stream is None, return the produced string instead.

    safe_load(stream)
        Parse the first YAML document in a stream
        and produce the corresponding Python object.

        Resolve only basic YAML tags. This is known
        to be safe for untrusted input.

    safe_load_all(stream)
        Parse all YAML documents in a stream
        and produce corresponding Python objects.

        Resolve only basic YAML tags. This is known
        to be safe for untrusted input.

    scan(stream, Loader=<class 'yaml.loader.Loader'>)
        Scan a YAML stream and produce scanning tokens.

    serialize(node, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, **kwds)
        Serialize a representation tree into a YAML stream.
        If stream is None, return the produced string instead.

    serialize_all(nodes, stream=None, Dumper=<class 'yaml.dumper.Dumper'>, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None)
        Serialize a sequence of representation trees into a YAML stream.
        If stream is None, return the produced string instead.

    unsafe_load(stream)
        Parse the first YAML document in a stream
        and produce the corresponding Python object.

        Resolve all tags, even those known to be
        unsafe on untrusted input.

    unsafe_load_all(stream)
        Parse all YAML documents in a stream
        and produce corresponding Python objects.

        Resolve all tags, even those known to be
        unsafe on untrusted input.

    warnings(settings=None)
        #------------------------------------------------------------------------------
        # XXX "Warnings control" is now deprecated. Leaving in the API function to not
        # break code that uses it.
        #------------------------------------------------------------------------------

DATA
    __with_libyaml__ = True

VERSION
    6.0.1

FILE
    /usr/lib/python3/dist-packages/yaml/__init__.py


yaml □✕
NAME PACKAGE CONTENTS CLASSES
class YAMLObject(builtins.object) class YAMLObjectMetaclass(builtins.type)
FUNCTIONS
add_constructor(tag, constructor, Loader=None) add_implicit_resolver(tag, regexp, first=None, Loader=None, Dumper=) add_multi_constructor(tag_prefix, multi_constructor, Loader=None) add_multi_representer(data_type, multi_representer, Dumper=) add_path_resolver(tag, path, kind=None, Loader=None, Dumper=) add_representer(data_type, representer, Dumper=) compose(stream, Loader=) compose_all(stream, Loader=) dump(data, stream=None, Dumper=, **kwds) dump_all(documents, stream=None, Dumper=, default_style=None, default_flow_style=False, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None, sort_keys=True) emit(events, stream=None, Dumper=, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None) full_load(stream) full_load_all(stream) load(stream, Loader) load_all(stream, Loader) parse(stream, Loader=) safe_dump(data, stream=None, **kwds) safe_dump_all(documents, stream=None, **kwds) safe_load(stream) safe_load_all(stream) scan(stream, Loader=) serialize(node, stream=None, Dumper=, **kwds) serialize_all(nodes, stream=None, Dumper=, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) unsafe_load(stream) unsafe_load_all(stream) warnings(settings=None)
DATA VERSION FILE

Generated by phpman v4.12.29 · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-12-02 00:47 @216.73.216.10
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^