Discovers the YAML format and registers it if available.

    Install YAML support via PIP::

        pip install PyYAML

    :param bank: The format bank to register the format in
    :param meta: Extra information associated with the format

def discover_yaml(bank=None, **meta):
    """Discovers the YAML format and registers it if available.

    Install YAML support via PIP::

        pip install PyYAML

    :param bank: The format bank to register the format in
    :param meta: Extra information associated with the format
    """
    try:
        import yaml
        if bank is None:
            bank = default_bank
        bank.register('yaml', yaml.load, yaml.dump, **meta)
    except ImportError:
        pass